Capture funds from the authorized 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 capture.
Request payload for capturing a payment using the payment ID. This simplified endpoint fetches payment details from the database.
Amount to capture in the escrow protocol.
"50.00"
Fee in basis points.
"50"
Address of the fee receiver.
"0x8078EB517712aAAdcCE9a0C5Ec04dC2DC5Ef8793"
List of rewards to distribute during payment capture.
[
{
"campaignAddress": "0x1234567890123456789012345678901234567890",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453
}
]Metadata for the payment operation that will be returned in the webhook.
{ "key": "value" }A successful response.
Response payload for payment capture 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"
}
]