Authorize funds for a payment using the payment ID. This simplified endpoint fetches payment details from the database.
Authorization header using the Bearer scheme. Learn more about JWT tokens in the Coinbase Developer Portal.
Unique identifier to ensure request idempotency
The unique identifier of the payment to authorize.
Request payload for authorizing a payment using the payment ID. This simplified endpoint fetches payment details from the database.
Amount to authorize in the escrow protocol.
"50.00"
List of rewards to allocate during payment authorization.
[
{
"campaignAddress": "0x1234567890123456789012345678901234567890",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453
}
]Custom merchant ID, which will be returned in the webhook.
"merchant123"
Metadata for the payment operation that will be returned in the webhook.
{ "key": "value" }A successful response.
Response payload for payment authorization requests.
Identifier for the payment operation.
"op-2341434"
List of reward operations with detailed information, if rewards were processed.
[
{
"id": "ro-5678901",
"reward": {
"id": "rw-123456",
"campaignAddress": "0x1234567890123456789012345678901234567890",
"paymentInfoHash": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
"recipientAddress": "0x8078EB517712aAAdcCE9a0C5Ec04dC2DC5Ef8793",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453,
"createdAt": "2024-03-20T00:00:00.000Z",
"updatedAt": "2024-03-20T00:30:00.000Z"
},
"action": "REWARD_OPERATION_ACTION_ALLOCATE",
"amount": "100.00",
"status": "REWARD_OPERATION_STATUS_PENDING",
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"createdAt": "2024-03-20T00:00:00.000Z",
"updatedAt": "2024-03-20T00:30:00.000Z",
"metadata": { "key": "value" }
}
]List of rewards that were invalid/unable to be processed with detailed reasoning
[
{
"rewardInput": {
"campaignAddress": "0x1234567890123456789012345678901234567890",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453
},
"invalidReason": "invalid campaign address"
}
]