Overview
Webhook configuration goes through three endpoints:GET /api/webhooks-config— list active webhooksPOST /api/webhooks-config— create/configure a webhookDELETE /api/webhooks-config/{id}— remove a webhook
Create Webhook
Request
Response (201)
Fields
HTTPS endpoint URL to receive webhooks. Plain HTTP is rejected.
List of 1 to 5 events. Accepted values:
cash_in, cash_out, refund_in, refund_out, internal_transfer.HMAC secret to validate signature. Minimum 8 characters, maximum 128. If omitted, NTX Pay generates one.
List Webhooks
The list response does not include the
secret — it’s only shown on creation.Remove Webhook
Multiple Webhooks
You can configure multiple webhooks at the same time, each with its own event set. Useful for:- Separating logs/audit (receives all events) from processing (only
cash_in/cash_out) - Internal homologation vs production environment
- Multiple services consuming different events
Testing the Endpoint
Before configuring in production, validate your endpoint:- Configure in sandbox first
- Use webhook.site or ngrok to inspect the traffic
- Verify your application:
- Validates
X-NTXPay-Signaturecorrectly - Returns
200in under 10 seconds - Deduplicates by
X-NTXPay-Delivery
- Validates
Next Steps
Implementation
HMAC validation in Node, Python and PHP
Events
Payload of each event type