Create a new payment.
Authorization header using the Bearer scheme. Learn more about JWT tokens in the Coinbase Developer Portal.
Unique identifier to ensure request idempotency
Request payload for creating a payment.
The max amount to be signed by the buyer, in USD with up to 2 decimal places.
"100.00"
Identifier for the blockchain network.
"8453"
The receiver's wallet address (on Base).
"0xreceiver"
The operator's smart account address for processing payments.
"0xoperator"
The token address used for the payment. (Default: USDC address for the specified network_id, e.g. 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for Base Mainnet)
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Whether to automatically authorize the transaction once the payer completes the checkout process. (Default: true, unless auto_capture is set). Cannot be true if auto_capture is also true.
"true"
Whether to auto capture the payment. (Default: false). Cannot be true if auto_authorize is also true.
"false"
Min Fee in basis points. (Default: 0)
"50"
Max Fee in basis points. (Default: 0)
"50"
Address that receives the fee. (Default: 0x0000000000000000000000000000000000000000)
"0xfee789"
Timestamp (in seconds) when the pre-approval expires. After this expiration, the payment can no longer be authorized or captured. Must be at least 1 minute from now. (Default: now() + 1 day)
"1843954582"
Timestamp (in seconds) when the authorization expires. After this expiration, the payment can no longer be captured. Must be at least 1 minute from now. (Default: now() + 7 days)
"1843954582"
Timestamp (in seconds) when the refund expires. Must be at least 1 minute from now. (Default: now() + 7 days)
"1843954582"
URL to redirect on successful payment.
"https://example.com/success"
URL to redirect on failed payment.
"https://example.com/fail"
Contract address of the Commerce protocol (PaymentEscrow.sol). (Default: PaymentEscrow address for the specified network_id, e.g. 0xBdEA0D1bcC5966192B070Fdf62aB4EF5b4420cff for Base Mainnet)
"0xBdEA0D1bcC5966192B070Fdf62aB4EF5b4420cff"
Additional merchant metadata. Does not impact the actual payment transaction.
{
"name": "MerchantName",
"logoUrl": "https://example.com/logo.png",
"locale": "en-US",
"metadata": "{}"
}Additional customer metadata. Does not impact the actual payment transaction.
{ "locale": "en-US", "metadata": "{}" }Additional fiat currency metadata. Does not impact the actual payment transaction.
{
"amount": "10.00",
"currency": "USD",
"metadata": "{}"
}External reference ID provided by the client.
"ext-ref-123"
A successful response.
Response containing the payment ID.
The payment information.
{
"entity": "payment",
"id": "payment123",
"maxAmount": "100.00",
"networkId": 8453,
"receiver": "0xreceiver",
"minFeeBps": 50,
"maxFeeBps": 50,
"feeReceiver": "0xcccccccccccccccccccccccccccccccccccccccc",
"salt": "2334324235415445346745646",
"paymentInfoHash": "2334324235415445346745646",
"nonce": "2334324235415445346745646",
"authorizationExpiry": 1843954582,
"preApprovalExpiry": 0,
"refundExpiry": 1843954582,
"createdAt": "2024-03-20T00:00:00Z",
"updatedAt": "2024-03-20T00:00:00Z",
"operator": "0xoperator"
}