API Reference
Webhook Endpoints
Configure merchant webhook delivery.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure merchant webhook delivery.
curl -X POST https://nombasub.oluwadunsin.dev/auth/set-webhook-url \
-H "Content-Type: application/json" \
-H "X-Api-Key: sub_xxx" \
-d '{
"webhookUrl": "https://merchant.example.com/webhooks/nombasub"
}'
| Field | Type | Required | Description |
|---|---|---|---|
webhookUrl | string | Yes | Public HTTPS endpoint that receives webhooks. |
{
"status": "success",
"message": "Webhook URL set successfully",
"data": {
"webhookSecret": "whsec_64_character_secret"
}
}
| Header | Description |
|---|---|
x-nombasub-event | Event type, such as invoice.paid. |
x-nombasub-webhook-id | Unique delivery ID. |
x-nombasub-tenant-id | Tenant ID. |
x-nombasub-timestamp | Delivery timestamp. |
x-nombasub-signature | Signature when a webhook secret is configured. |