Replay webhook delivery
POST/webhook-deliveries/{id}/replay
Resend the same event (same webhook-id). Never creates a financial event.
Sandbox: test money only. No request moves real money.
Authenticate with your sandbox key as a bearer token: Authorization: Bearer nbk_test_..
Re-arms the same delivery: the same event and webhook-id, a new timestamp and signature, its attempts numbered on and
its retry schedule started again. It never creates an event, an order or a balance movement. A delivery whose endpoint
is disabled is 400 invalid_request (nothing would be sent: enable the endpoint first), as a test event to it is; one of
an event created more than 30 days ago is 400 invalid_request, and an endpoint's deliveries are replayed at most 10 times in any hour
and one delivery at most 3 times in any day (429 rate_limited with Retry-After). A delivery being attempted right
now is left to finish. Each replay is audited.
Request
| Header | Value | Sent |
|---|---|---|
Authorization | Bearer nbk_test_... | Required |
Idempotency-Key | 3f1c9a52-7d4e-4b8a-9c21-5e6f7a8b9c0d | Optional |
Parameters
| Field | Description |
|---|---|
| IDid · path string · required | Pattern ^whd_[0-9A-HJKMNP-TV-Z]{26}$. |
| Idempotency keyIdempotency-Key · header string | Bound permanently, in the database, to what the first request made (a quote, an endpoint, a rotation, a delivery replay), as a money operation's key is: a retry with the same key and request answers 200 with Idempotent-Replayed: true and repeats nothing, and the same key with another request or on another operation is 422 idempotency_key_reused. A replay never returns a secret. Without a key, every request is performed. Pattern ^[A-Za-z0-9_-]{16,64}$. |
const response = await fetch( 'https:// sandbox-api. nasfampay. com/ v1/ webhook-deliveries/ whd_ 01K7SAMP000000000000000001/ replay', { method: 'POST', headers: { Authorization: `Bearer ${process. env. NASFAM_ SANDBOX_ KEY}`, },});if ( !response. ok) { const problem = await response. json(); throw new Error( `${problem. status} ${problem. code}: ${problem. title} ( request ${problem. request_ id})`);}const result = await response. json();console. log( response. status, result);// npm install axiosimport axios from 'axios';try { const { status, data: delivery } = await axios. post( 'https:// sandbox-api. nasfampay. com/ v1/ webhook-deliveries/ whd_ 01K7SAMP000000000000000090/ replay', null, { headers: { Authorization: `Bearer ${process. env. NASFAM_ SANDBOX_ KEY}`, }, }, ); console. log( status, delivery);} catch ( error) { if ( !axios. isAxiosError( error) || !error. response) throw error; const problem = error. response. data; throw new Error( `${problem. status} ${problem. code}: ${problem. title} ( request ${problem. request_ id})`);}Responses
| Status | Meaning | Body |
|---|---|---|
| OK200 | A replay of an earlier request with the same Idempotency-Key: the delivery, as it is now. Nothing is re-armed again. Headers: RateLimit (draft-ietf-httpapi-ratelimit-headers-11. the same buckets, each "<bucket>";r=<whole requests remaining, never negative>;t=<seconds until the quota is fully available again>.
), RateLimit-Policy (draft-ietf-httpapi-ratelimit-headers-11. a structured field list with one item per bucket the request drew on (orders, quotes, quotes_daily, reads, webhooks, lookups, lookups_org, lookups_daily), each "<bucket>";q=<quota>;w=<window seconds>. no partition key (pk) is sent.
), Idempotent-Replayed. | WebhookDelivery object |
| Accepted202 | Replay scheduled. Headers: RateLimit (draft-ietf-httpapi-ratelimit-headers-11. the same buckets, each "<bucket>";r=<whole requests remaining, never negative>;t=<seconds until the quota is fully available again>.
), RateLimit-Policy (draft-ietf-httpapi-ratelimit-headers-11. a structured field list with one item per bucket the request drew on (orders, quotes, quotes_daily, reads, webhooks, lookups, lookups_org, lookups_daily), each "<bucket>";q=<quota>;w=<window seconds>. no partition key (pk) is sent.
). | WebhookDelivery object |
| Too many requests429 | Too many requests (rate_limited), or your queued orders are at your cap (queue_limit). A bucket that cannot be read at once because of contention is answered here too, never waited on. Honour Retry-After.
. Headers: Request-Id, Retry-After (seconds to wait before retrying), RateLimit (draft-ietf-httpapi-ratelimit-headers-11. the same buckets, each "<bucket>";r=<whole requests remaining, never negative>;t=<seconds until the quota is fully available again>.
), RateLimit-Policy (draft-ietf-httpapi-ratelimit-headers-11. a structured field list with one item per bucket the request drew on (orders, quotes, quotes_daily, reads, webhooks, lookups, lookups_org, lookups_daily), each "<bucket>";q=<quota>;w=<window seconds>. no partition key (pk) is sent.
). | Problem object |
| Any other statusdefault | Error (RFC 9457). A 503 service_unavailable with Retry-After means the request was not processed: the rate limiter or the database could not answer, and the API refuses rather than serve unlimited (reads included). For a money-moving operation, retrying with the same Idempotency-Key is always safe.
. Headers: Request-Id, Retry-After (on 429 and some 503 responses). | Problem object |
The webhook delivery object
| Field | Description |
|---|---|
| IDid · string · required | Pattern ^whd_[0-9A-HJKMNP-TV-Z]{26}$. |
| Event IDevent_ | |
| Attemptattempt · integer · required | At least 1. |
| Statusstatus · string · required | One of pending, succeeded, failed, abandoned. |
| Response statusresponse_ | |
| Duration msduration_ | |
| Failure classfailure_ | Null when accepted (2xx) or not yet attempted, and for a stored answer with no class (a 101 recorded before such answers were recorded as connection failures). |
| Next attempt atnext_ | Format date-time. |
| Created atcreated_ | Format date-time. |
Responses are extensible: ignore fields, enum values and event types you do not know. Any other status is a Problem (see Errors).
{ "id": "whd_ 01K7SAMP000000000000000001", "event_ id": "string", "attempt": 1, "status": "pending", "response_ status": null, "duration_ ms": null, "failure_ class": null, "next_ attempt_ at": null, "created_ at": "2026-10-10T10:05:02Z"}Not finished. Only a final status means it is done: read it again or wait for its webhook. An outcome that is not known yet is held, never a failure.
{ "id": "whd_ 01K7SAMP000000000000000091", "event_ id": "evt_ 01K7SAMP000000000000000090", "attempt": 1, "status": "pending", "created_ at": "2026-10-10T10:30:00.000Z"}{ "type": "about:blank", "title": "Too many requests", "status": 429, "code": "rate_ limited", "category": "rate_ limit", "detail": "Too many requests. Retry after the time in Retry-After. ", "param": null, "request_ id": "req_ 01K7SAMP000000000000000090"}How it behaves
| What to expect | |
|---|---|
| Authentication | Your key as a bearer token in the Authorization header: a nbk_test_ key on the sandbox host. |
| Idempotency | Optional. Sent, it is bound permanently to what the first request made, and a retry repeats nothing. |
| In the sandbox | Served, on your own test records. |
| On Live | The same request, on the Live host with a live key, which exists only for a workspace activated for Live. See Go live. |
| Funding | None. This request does not touch your balance. |
| Status changes | Schedules the delivery again. It never creates a financial event. |
| Webhook events | The same event, with the same webhook-id. |
Error responses
This operation can also answer with not_found, idempotency_key_reused.
Any request can answer with invalid_request, invalid_api_key, key_expired, key_environment_mismatch, insufficient_scope, rate_limited, service_unavailable, internal_error. Errors says what to do about each one.
