Create Webhook Endpoint
Register a new webhook endpoint to receive asynchronous payment notifications
Endpoint Validation
When you create a webhook endpoint, the system sends a validation ping to verify that the URL is publicly accessible. The endpoint must:- Use HTTPS protocol
- Be publicly reachable from the internet
- Respond with a
2xxstatus code to the ping request
Endpoint Limits
Each group can configure up to 16 webhook endpoints. Attempting to create more will return anENDPOINT_LIMIT_REACHED error.
Signing Secret
The response includes asecret field that is used to verify webhook signatures. This secret is only returned once during endpoint creation.
Event Types
Subscribe to one or more event types:| Event | Description |
|---|---|
payment.completed | Payment succeeded on the terminal |
payment.failed | Payment was declined or encountered an error |
payment.cancelled | User cancelled the payment |
payment.timeout | Terminal didn’t respond within 90 seconds |
Authorizations
HMAC-SHA256 authentication. Requires three headers: x-api-key (your API key), x-timestamp (ISO 8601 timestamp), and x-signature (Base64-encoded HMAC-SHA256 signature). See Authentication documentation for signature computation.
Body
Webhook endpoint configuration
The HTTPS URL where webhook payloads will be delivered. Must be publicly accessible.
Array of event types to subscribe to.
payment.completed, payment.failed, payment.cancelled, payment.timeout Human-readable description for this endpoint.
Custom key-value pairs to associate with this endpoint.
Response
Webhook endpoint created successfully
Unique identifier for the webhook endpoint.
The HTTPS URL where webhook payloads are delivered.
Event types this endpoint is subscribed to.
payment.completed, payment.failed, payment.cancelled, payment.timeout Webhook signing secret. Only returned on endpoint creation. Store securely for signature verification.
Endpoint status.
active, disabled ISO 8601 timestamp of when the endpoint was created.
ISO 8601 timestamp of the last update.
Human-readable description for this endpoint.
Custom key-value pairs associated with this endpoint.