Skip to main content
GET
/
api
/
v1
/
webhook-events
/
reward-operation
/
{operationId}
Get webhook events by reward operation ID
curl --request GET \
  --url https://payments.coinbase.com/api/v1/webhook-events/reward-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>"
  }
}

Authorizations

Authorization
string
header
required

Authorization header using the Bearer scheme. Learn more about JWT tokens in the Coinbase Developer Portal.

Path Parameters

operationId
string
required

The unique identifier of the reward operation.

Query Parameters

limit
integer<int32>

Limit

Maximum number of webhook events to return. Default is 10, Max is 25.

next
string

Next

Next item to use for pagination.

Response

A successful response.

Response to get a list of webhook events by its reward operation ID.

webhookEvents
WebhookEvent · object[]
required

List of webhook events.

pagination
Pagination · object
required

Pagination information for the response.