curl --request POST \
--url https://app.sahlfinancial.com/api/v1/partner/webhook-deliveries/{delivery_id}/replay \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/webhook-deliveries/{delivery_id}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/webhook-deliveries/{delivery_id}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotency_key": "<string>",
"delivered": true,
"status": "delivered",
"signature_timestamp": 123,
"attempt_count": 123,
"http_status_code": 123,
"response_excerpt": "<string>",
"next_retry_at": "2023-11-07T05:31:56Z"
}{
"detail": {
"code": "partner_identity_rejected",
"message": "The key is bound to a service account and X-Partner-Identity was missing or did not verify for it."
}
}{
"detail": "API key lacks the required scope"
}{
"detail": {
"code": "not_found",
"message": "No such object in this workspace (another workspace's object answers the same)."
}
}{
"detail": {
"code": "endpoint_disabled",
"message": "The delivery's webhook endpoint is switched off. Switch it back on to replay."
}
}{
"detail": {
"code": "invalid_environment",
"message": "environment / X-Sahl-Environment must be 'sandbox' or 'production'."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "Too many calls a minute: per API key on the partner routes, or per key / per address at the edge. Wait for Retry-After."
}
}{
"detail": {
"code": "commit_failed",
"message": "The change could not be saved; nothing changed. Retry."
}
}Replay a webhook delivery
Required scope: webhooks:manage.
Send a delivery again now: same payload and X-Sahl-Delivery id, fresh signature.
One attempt, answered here. A failed replay goes back on the automatic
retry schedule while attempts remain. 409 endpoint_disabled when the
endpoint is switched off (a deleted endpoint’s deliveries are gone: 404),
409 delivery_in_progress while the first send is under way, 429
replay_rate_limited past 10 replays a minute per key or 5 an hour per
delivery.
Choose the environment with the X-Sahl-Environment header or the environment parameter or field; the Sandbox is the default. Two values that disagree are refused (422 environment_conflict).
curl --request POST \
--url https://app.sahlfinancial.com/api/v1/partner/webhook-deliveries/{delivery_id}/replay \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/webhook-deliveries/{delivery_id}/replay', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/webhook-deliveries/{delivery_id}/replay"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotency_key": "<string>",
"delivered": true,
"status": "delivered",
"signature_timestamp": 123,
"attempt_count": 123,
"http_status_code": 123,
"response_excerpt": "<string>",
"next_retry_at": "2023-11-07T05:31:56Z"
}{
"detail": {
"code": "partner_identity_rejected",
"message": "The key is bound to a service account and X-Partner-Identity was missing or did not verify for it."
}
}{
"detail": "API key lacks the required scope"
}{
"detail": {
"code": "not_found",
"message": "No such object in this workspace (another workspace's object answers the same)."
}
}{
"detail": {
"code": "endpoint_disabled",
"message": "The delivery's webhook endpoint is switched off. Switch it back on to replay."
}
}{
"detail": {
"code": "invalid_environment",
"message": "environment / X-Sahl-Environment must be 'sandbox' or 'production'."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "Too many calls a minute: per API key on the partner routes, or per key / per address at the edge. Wait for Retry-After."
}
}{
"detail": {
"code": "commit_failed",
"message": "The change could not be saved; nothing changed. Retry."
}
}Authorizations
API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.
Headers
Response
OK