Prerequisites
Before using this collection, ensure you have:- Coinbase Business account
- CDP API key using ECDSA signature algorithm
- Downloaded the following files (we will use these to setup Postman):
- Payment Links collection: Pre-configured API requests for creating, listing, and managing payment links
- Environment configuration: Authentication setup and variables for CDP API access
Recommended: Use ECDSA keys for reliable testing with this Postman collection. While the Payment Link API itself supports both ECDSA and Ed25519 keys, ECDSA provides the most consistent experience in Postman.
The Payment Link APIs use the same authentication environment as other Coinbase Business APIs. You can reuse the Coinbase Developer Platform environment file.
1. Setup Postman
1
Access Postman
Use Postman Web to sign in (no installation needed)..
2
Import files
Once you are logged into Postman, you can import the files into your workspace through the web interface.Under “Get Started”, click on Import APIs and collections.
Select both JSON files you downloaded and import them into your Postman workspace.
If you already have a Postman workspace, you can select Import in the upper-left corner of the screen.

2. Configure your environment
Set up authentication by adding your CDP API key details to Postman.1
Add your API credentials
In the left sidebar, click on Environments. Select the Coinbase Developer Platform Postman Environment option to see your environment variables.
Add these two variables exactly as shown:

| Variable | Value | Where to find it |
|---|---|---|
name | Your full API key name (with quotes) | From the JSON file downloaded when creating your API key |
privateKey | Your ECDSA private key (with quotes) | From the JSON file downloaded when creating your API key |
Example values
Example values
Example environment variable values:Important:
- Include the quotes as part of the value
- Keep the privateKey on one line with
\nfor line breaks - Use an ECDSA key (starts with
-----BEGIN EC PRIVATE KEY-----)
3. Authenticate and test endpoints
The Postman collection automatically generates a JWT token before each request using your environment variables.1
Prep the collection
Navigate to the Collections tab in Postman and expand the “Coinbase Business Payment Links Collection” we added earlier.From the Environment dropdown in the upper-right corner, select the Coinbase Developer Platform Postman Environment we just configured.

2
Send your first request
Start with the List Payment Links request and click the Send button.You should receive a response similar to the following:
3
Create a payment link
- Select the Create Payment Link request
- Review the pre-filled request body (you can modify amounts, description, etc.)
- Click Send
- Copy the
urlfrom the response - this is your payment link!
Available endpoints
The Payment Links collection includes the following endpoints:- Create Payment Link - Creates a new payment link for accepting cryptocurrency payments
- List Payment Links - Retrieves a paginated list of payment links with optional filtering
- Get Payment Link - Retrieves details of a specific payment link by ID
- Deactivate Payment Link - Deactivates a payment link to prevent further payments
Troubleshooting
Common issues and solutions
| Issue | Solution |
|---|---|
| Using Ed25519 key instead of ECDSA | Use ECDSA key - starts with -----BEGIN EC PRIVATE KEY----- |
| Missing quotes in environment values | Include quotes around name and privateKey values |
| Invalid JSON | Check the environment dropdown is set to your CDP environment |
| 401 Unauthorized errors | Check JWT generation in Postman Console and verify credentials |
Need additional help?
- Documentation: Review the Authentication Guide
- Community: Join the CDP Discord for support
- Support: Contact Coinbase Business support with your
X-Request-Idfrom failed requests
What to read next
- Payment Link API Reference - Detailed API documentation with all request/response schemas
- Authentication Guide - Learn more about CDP API key authentication
- Getting Started Guide - Set up your Coinbase Business account and create API keys
- Migrate from Commerce - If you’re moving from the Commerce Charge API