curl --request GET \
--url https://payments.coinbase.com/api/v1/webhook-events/payment-operation/{operationId} \
--header 'Authorization: <api-key>'{
"webhookEvents": [
{
"entity": "<string>",
"id": "<string>",
"eventType": "EVENT_TYPE_PAYMENT_AUTHORIZED",
"operationType": "OPERATION_TYPE_PAYMENT",
"paymentOperation": {
"entity": "<string>",
"id": "<string>",
"transactionHash": "<string>",
"params": {},
"status": "PAYMENT_OPERATION_STATUS_SUCCEEDED",
"action": "PAYMENT_OPERATION_ACTION_AUTHORIZE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"payment": {
"entity": "<string>",
"id": "<string>",
"maxAmount": "<string>",
"token": "<string>",
"networkId": 123,
"payer": "<string>",
"signature": "<string>",
"receiver": "<string>",
"maxFeeBps": 123,
"minFeeBps": 123,
"feeReceiver": "<string>",
"salt": "<string>",
"paymentInfoHash": "<string>",
"nonce": "<string>",
"authorizationExpiry": "<string>",
"preApprovalExpiry": "<string>",
"refundExpiry": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"operator": "<string>",
"contractAddress": "<string>",
"authorizedAmount": "<string>",
"capturedAmount": "<string>",
"voidedAmount": "<string>",
"refundedAmount": "<string>",
"chargedAmount": "<string>",
"merchantId": "<string>"
},
"output": "<string>",
"error": "<string>",
"errorCode": "<string>",
"revertReason": "<string>",
"blockNumber": "<string>",
"metadata": {}
},
"rewardOperation": {
"id": "<string>",
"action": "REWARD_OPERATION_ACTION_ALLOCATE",
"status": "REWARD_OPERATION_STATUS_PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reward": {
"id": "<string>",
"campaignAddress": "<string>",
"paymentInfoHash": "<string>",
"recipientAddress": "<string>",
"tokenAddress": "<string>",
"chainId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"amount": "<string>",
"transactionHash": "<string>",
"error": "<string>",
"errorCode": "<string>",
"revertReason": "<string>",
"blockNumber": "<string>"
},
"webhook": {
"entity": "<string>",
"id": "<string>",
"operatorCoinbaseUserId": "<string>",
"identifier": "<string>",
"description": "<string>",
"url": "<string>",
"events": [
"EVENT_TYPE_PAYMENT_AUTHORIZED"
],
"secret": "<string>",
"status": "WEBHOOK_STATUS_ACTIVATED",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"source": "WEBHOOK_SOURCE_OPERATOR",
"attempts": 123,
"maxRetries": 123,
"apiVersion": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
],
"pagination": {
"limit": 123,
"next": "<string>"
}
}Retrieve a list of webhook events by its payment operation ID.
curl --request GET \
--url https://payments.coinbase.com/api/v1/webhook-events/payment-operation/{operationId} \
--header 'Authorization: <api-key>'{
"webhookEvents": [
{
"entity": "<string>",
"id": "<string>",
"eventType": "EVENT_TYPE_PAYMENT_AUTHORIZED",
"operationType": "OPERATION_TYPE_PAYMENT",
"paymentOperation": {
"entity": "<string>",
"id": "<string>",
"transactionHash": "<string>",
"params": {},
"status": "PAYMENT_OPERATION_STATUS_SUCCEEDED",
"action": "PAYMENT_OPERATION_ACTION_AUTHORIZE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"payment": {
"entity": "<string>",
"id": "<string>",
"maxAmount": "<string>",
"token": "<string>",
"networkId": 123,
"payer": "<string>",
"signature": "<string>",
"receiver": "<string>",
"maxFeeBps": 123,
"minFeeBps": 123,
"feeReceiver": "<string>",
"salt": "<string>",
"paymentInfoHash": "<string>",
"nonce": "<string>",
"authorizationExpiry": "<string>",
"preApprovalExpiry": "<string>",
"refundExpiry": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"operator": "<string>",
"contractAddress": "<string>",
"authorizedAmount": "<string>",
"capturedAmount": "<string>",
"voidedAmount": "<string>",
"refundedAmount": "<string>",
"chargedAmount": "<string>",
"merchantId": "<string>"
},
"output": "<string>",
"error": "<string>",
"errorCode": "<string>",
"revertReason": "<string>",
"blockNumber": "<string>",
"metadata": {}
},
"rewardOperation": {
"id": "<string>",
"action": "REWARD_OPERATION_ACTION_ALLOCATE",
"status": "REWARD_OPERATION_STATUS_PENDING",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reward": {
"id": "<string>",
"campaignAddress": "<string>",
"paymentInfoHash": "<string>",
"recipientAddress": "<string>",
"tokenAddress": "<string>",
"chainId": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"amount": "<string>",
"transactionHash": "<string>",
"error": "<string>",
"errorCode": "<string>",
"revertReason": "<string>",
"blockNumber": "<string>"
},
"webhook": {
"entity": "<string>",
"id": "<string>",
"operatorCoinbaseUserId": "<string>",
"identifier": "<string>",
"description": "<string>",
"url": "<string>",
"events": [
"EVENT_TYPE_PAYMENT_AUTHORIZED"
],
"secret": "<string>",
"status": "WEBHOOK_STATUS_ACTIVATED",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"source": "WEBHOOK_SOURCE_OPERATOR",
"attempts": 123,
"maxRetries": 123,
"apiVersion": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"deliveredAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
],
"pagination": {
"limit": 123,
"next": "<string>"
}
}Authorization header using the Bearer scheme. Learn more about JWT tokens in the Coinbase Developer Portal.
The unique identifier of the payment operation.
Limit
Maximum number of webhook events to return. Default is 10, Max is 25.
Next
Next item to use for pagination.
A successful response.
Response to get a list of webhook events by its payment operation ID.
List of webhook events.
Show child attributes
List of supported events.
EVENT_TYPE_PAYMENT_AUTHORIZED, EVENT_TYPE_PAYMENT_CAPTURED, EVENT_TYPE_PAYMENT_VOIDED, EVENT_TYPE_PAYMENT_REFUNDED, EVENT_TYPE_PAYMENT_CHARGED, EVENT_TYPE_REWARD_ALLOCATED, EVENT_TYPE_REWARD_DISTRIBUTED, EVENT_TYPE_REWARD_DEALLOCATED, EVENT_TYPE_REWARD_SENT, EVENT_TYPE_PAYMENT_RECONCILED Type of operation that triggered the webhook.
OPERATION_TYPE_PAYMENT, OPERATION_TYPE_REWARD Event details related to a payment including transaction hash, status, and associated payment information.
Show child attributes
Entity type, e.g., 'payment-operation'.
Unique event ID.
Blockchain transaction hash.
Payment Operation status.
PAYMENT_OPERATION_STATUS_SUCCEEDED, PAYMENT_OPERATION_STATUS_FAILED, PAYMENT_OPERATION_STATUS_PENDING Type of action (e.g., PAYMENT_OPERATION_ACTION_AUTHORIZE).
PAYMENT_OPERATION_ACTION_AUTHORIZE, PAYMENT_OPERATION_ACTION_CAPTURE, PAYMENT_OPERATION_ACTION_CHARGE, PAYMENT_OPERATION_ACTION_RECLAIM, PAYMENT_OPERATION_ACTION_REFUND, PAYMENT_OPERATION_ACTION_VOID Event creation timestamp.
Event update timestamp.
Detailed payment object.
Show child attributes
Entity type, e.g., 'payment'.
Unique payment ID.
Max payment amount approved by the buyer.
Token address used.
Identifier for the blockchain network.
Payer's EVM address.
Digital signature of the preapproved amount signed by the buyer.
Receiver's EVM address.
Max fee in basis points.
Min fee in basis points.
Fee recipient address.
Unique salt to prevent duplicate preapproval authorizations.
Hash of the payment info.
Nonce in the Preapproval Authorization.
Expiry time for the authorization.
Expiry time for preapproval
Expiry time for refund
Creation timestamp.
Last update timestamp.
Operator handling the payment.
Smart contract address of the Commerce PaymentEscrow protocol
Authorized payment amount.
Captured payment amount.
Voided payment amount.
Refunded payment amount.
Charged payment amount.
Merchant ID.
Output of the payment operation.
Error of the payment operation.
Error code of the payment operation.
Blockchain revert reason of the payment operation.
Block number of the payment operation.
Additional metadata as a free-form object.
Operation details related to a reward including transaction hash, status, and associated reward information.
Show child attributes
Unique identifier for the reward operation.
Type of reward operation (e.g., REWARD_OPERATION_ACTION_DISTRIBUTE).
REWARD_OPERATION_ACTION_ALLOCATE, REWARD_OPERATION_ACTION_DEALLOCATE, REWARD_OPERATION_ACTION_DISTRIBUTE, REWARD_OPERATION_ACTION_SEND Current status of the reward operation.
REWARD_OPERATION_STATUS_PENDING, REWARD_OPERATION_STATUS_SUCCEEDED, REWARD_OPERATION_STATUS_FAILED Timestamp when the reward operation was created.
Timestamp when the reward operation was last updated.
Detailed reward object associated with this operation.
Show child attributes
Unique identifier for the reward.
Onchain address of the campaign contract.
Hash of the payment info that this reward is associated with.
Blockchain address that will receive the reward.
Address of the token contract used for the reward.
The blockchain network identifier where the reward is processed.
Timestamp when the reward was created.
Timestamp when the reward was last updated.
Amount involved in this reward operation.
Blockchain transaction hash for this reward operation.
Error message if the reward operation failed.
Error code of the reward operation.
Blockchain revert reason of the reward operation.
Block number of the reward operation.
Webhook configuration details.
Show child attributes
Type of the entity, always "webhook".
Unique identifier for the webhook.
Coinbase user ID of the operator this webhook belongs to.
External identifier for clients.
Human-readable description of the webhook's purpose.
The URL where webhook events will be sent.
Types of events this webhook should receive.
List of supported events.
EVENT_TYPE_PAYMENT_AUTHORIZED, EVENT_TYPE_PAYMENT_CAPTURED, EVENT_TYPE_PAYMENT_VOIDED, EVENT_TYPE_PAYMENT_REFUNDED, EVENT_TYPE_PAYMENT_CHARGED, EVENT_TYPE_REWARD_ALLOCATED, EVENT_TYPE_REWARD_DISTRIBUTED, EVENT_TYPE_REWARD_DEALLOCATED, EVENT_TYPE_REWARD_SENT, EVENT_TYPE_PAYMENT_RECONCILED Secret used for webhook signature verification.
Status of the webhook (active, inactive).
WEBHOOK_STATUS_ACTIVATED, WEBHOOK_STATUS_DEACTIVATED When the webhook was created.
When the webhook was last updated.
List of webhook sources.
WEBHOOK_SOURCE_OPERATOR, WEBHOOK_SOURCE_INDEXER Was this page helpful?