Update webhook endpoint
Response contract
The successful wire shape and errors an integration should branch on.
Webhook endpoint
application/jsonidstringrequired- Unique endpoint identifier.
object"webhook_endpoint"required- Stable resource discriminator.
urlstringrequired- Delivery destination.
descriptionstring | nullrequired- Optional endpoint description.
enabledEventsstring[]required- Subscribed event types.
statusstringrequired- Endpoint state.
secretLast4stringrequired- Last four characters of the signing secret.
createdAtstringrequired- ISO 8601 creation timestamp.
Example response
{
"id": "whe_01JEXAMPLE",
"object": "webhook_endpoint",
"url": "https://example.com/webhooks/myela",
"description": null,
"enabledEvents": [
"invoice.paid",
"payment.settled"
],
"status": "enabled",
"secretLast4": "m9Qx",
"createdAt": "2026-08-10T20:49:51.653Z"
}Error responses
401
authentication_failedThe key is missing, malformed, revoked, or invalid for this environment.
403
permission_deniedThe key does not have webhookEndpoints.update.
404
not_foundThe resource does not exist for this merchant.
422
invalid_requestOne or more request fields are invalid.