Payezydevelopers
Sandbox

API reference / Webhooks and integrations

Update a webhook endpoint

PATCH/v1/orgs/{orgId}/webhooks/{webhookId}

Change the URL, events, or disabled state (webhooks:manage, AAL2). Enabling in production requires the production-API grant.

Before you call it

  • Permissionwebhooks:manage
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
webhookIdpath, uuidrequiredA webhook endpoint id.

Request body

FieldWhat it does
urlstring (uri)No description in the spec yet.
descriptionstringNo description in the spec yet.
eventsstring[]No description in the spec yet.
disabledbooleanNo description in the spec yet.

Response 200

Updated endpoint

FieldWhat it does
idstring (uuid)requiredNo description in the spec yet.
urlstringrequiredNo description in the spec yet.
descriptionstringNo description in the spec yet.
eventsstring[]requiredNo description in the spec yet.
disabled_atstring (date-time)No description in the spec yet.
failingbooleanrequiredNo description in the spec yet.
created_atstring (date-time)requiredNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
invalid_url422webhook URL must be https
invalid_event422unknown event:

Every error is a Problem document. Branch on code; quote request_id to support.