Payezydevelopers
Sandbox

API reference / Webhooks and integrations

Register a webhook endpoint

POST/v1/orgs/{orgId}/webhooks

Register an HTTPS endpoint (webhooks:manage, AAL2). Production requires the staff production-API grant. The signing secret is returned once.

When to use it

Once per receiving URL. Store the signing secret from the response; it is shown once. Private, loopback and link-local addresses are rejected.

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.

Request body

FieldWhat it does
urlstring (uri)requiredNo description in the spec yet.
descriptionstringNo description in the spec yet.
eventsenum[]requiredNo description in the spec yet.

One of payment.updated withdrawal.updated onboarding.updated platform_customer.updated

Response 201

The endpoint and its signing secret

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.
signing_secretstringrequiredNo description in the spec yet.

Errors to handle

CodeWhat it means and what to do
invalid_url422webhook URL must be https
events_required422choose at least one event
invalid_event422unknown event:

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

Used in guided journeys