Skip to main content
PUT
/
api
/
v1
/
webhooks
/
{id}
Update webhook
curl --request PUT \
  --url https://payments.coinbase.com/api/v1/webhooks/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "events": [
    "EVENT_TYPE_PAYMENT_AUTHORIZED"
  ],
  "status": "WEBHOOK_STATUS_ACTIVATED",
  "identifier": "<string>",
  "description": "<string>"
}
'
{
  "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"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The unique identifier of the webhook to update.

Body

application/json

Request to update an existing webhook.

url
string

The updated URL where webhook events will be sent.

events
enum<string>[]

Updated types of events this webhook should receive.

List of supported events.

Available options:
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
status
enum<string>

Updated status of the webhook.

Available options:
WEBHOOK_STATUS_ACTIVATED,
WEBHOOK_STATUS_DEACTIVATED
identifier
string

Updated external identifier for clients.

description
string

Updated human-readable description of the webhook's purpose.

Response

A successful response.

Webhook configuration details.

entity
string

Type of the entity, always "webhook".

id
string

Unique identifier for the webhook.

operatorCoinbaseUserId
string

Coinbase user ID of the operator this webhook belongs to.

identifier
string

External identifier for clients.

description
string

Human-readable description of the webhook's purpose.

url
string

The URL where webhook events will be sent.

events
enum<string>[]

Types of events this webhook should receive.

List of supported events.

Available options:
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
string

Secret used for webhook signature verification.

status
enum<string>

Status of the webhook (active, inactive).

Available options:
WEBHOOK_STATUS_ACTIVATED,
WEBHOOK_STATUS_DEACTIVATED
createdAt
string<date-time>

When the webhook was created.

updatedAt
string<date-time>

When the webhook was last updated.