Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Headers
Body
The payment amount as a string for precise decimal representation. Must be between 0.01 and 100000000 (100 million).
"100.50"
The currency code for the payment. Only USDC is currently supported.
1 - 10"USDC"
The blockchain network for the payment. Defaults to base if not specified. More networks will be added in the future.
base "base"
Human-readable description of the payment.
500"Payment for order #12345"
Optional expiration timestamp for the payment link in RFC 3339 format. Must be a future timestamp. After this time, the link will be automatically expired and cannot accept new payments. If not provided, defaults to 1 year from creation time.
"2026-03-20T10:30:00Z"
Optional metadata as key-value pairs to be passed through the payment flow.
{
"invoiceId": "12345",
"reference": "Payment for invoice #12345",
"customerId": "cust_abc123"
}URL to redirect to on successful payment. Must use HTTPS protocol.
2048"https://example.com/success"
URL to redirect to on failed payment. Must use HTTPS protocol.
2048"https://example.com/failed"
Response
Payment link created successfully.
Unique payment link identifier.
"68f7a946db0529ea9b6d3a12"
The generated payment link URL.
"https://pay.coinbase.com/pl_01h8441j23abcd1234567890ef"
The status of the payment link.
ACTIVEThe payment link is active and can accept payments.DEACTIVATEDThe payment link has been manually deactivated.EXPIREDThe payment link has expired based on the expiresAt timestamp.COMPLETEDThe payment link has been successfully paid.
ACTIVE, DEACTIVATED, EXPIRED, COMPLETED "ACTIVE"
Numeric value representing the amount.
"100.50"
The currency code for the amount.
"USDC"
The blockchain network for the payment. Defaults to base if not specified. More networks will be added in the future.
base "base"
The blockchain address where funds should be sent.
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
Timestamp in RFC 3339 format.
"2024-03-20T10:30:00Z"
Timestamp in RFC 3339 format.
"2024-03-20T10:30:00Z"
The token contract address (for ERC-20 tokens).
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Human-readable description of the payment.
"Payment for order #12345"
Timestamp in RFC 3339 format.
"2024-03-20T10:30:00Z"
Optional metadata as key-value pairs to be passed through the payment flow.
{
"invoiceId": "12345",
"reference": "Payment for invoice #12345",
"customerId": "cust_abc123"
}Optional URL to redirect the user to after successful payment authorization. This indicates the user has successfully authorized the payment, not that the payment has been completed.
"https://example.com/success"
Optional URL to redirect the user to after failed payment authorization.
"https://example.com/failed"
Financial breakdown of the payment link transaction showing the total amount charged, fees deducted, and net amount received.