Send rewards for a payment operation.
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 sending rewards.
Request payload for sending rewards.
The ID of the payment operation to associate rewards with.
"op-123456"
List of rewards to process.
[
{
"campaignAddress": "0x1234567890123456789012345678901234567890",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453
}
]Metadata for the reward operations that will be returned in the webhook.
{ "key": "value" }A successful response.
Response payload for sending rewards.
List of successful reward operations with detailed information.
[
{
"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 reward inputs that were invalid/unable to be processed with detailed reasoning.
[
{
"rewardInput": {
"campaignAddress": "0x1234567890123456789012345678901234567890",
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"chainId": 8453
},
"invalidReason": "invalid campaign address"
}
]