Register a webhook endpoint. The signing secret is returned only in this response.
create_webhook_endpointRegister a webhook endpoint to receive events and choose event subscriptions; the signing secret is returned only in this response for verifying payload signatures.
Instructions
Register a webhook endpoint. The signing secret is returned only in this response.
Register a publicly reachable endpoint to receive events (https is required for live mode; private network addresses are refused). Subscribe to specific enabled_events or * for all. The signing secret (whsec_…) is returned only in this response: store it to verify X-PletoPay-Signature. You can have up to 16 endpoints per mode (400 webhook_endpoint_limit_reached).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| description | No | ||
| enabled_events | Yes | ||
| idempotency_key | No | Optional. A unique key for this request; retrying with the same key returns the original result instead of acting twice. One is generated if omitted. |