Sifr Wahid Developers

API reference / Webhooks

Resend webhook delivery

Send a delivery's data again, as a new delivery (a new X-Zo-Delivery)

POST https://s.zo.sa/api/public/v1/webhooks/{id}/deliveries/{delivery}/resend
Scope webhooks.read_write

The send is queued: the answer is the new delivery with status pending. Read its outcome later with GET /webhooks/{id}/deliveries/{delivery}. Up to 20 a minute.

Request

Path parameters

NameTypeRequiredDescription
idintegerrequiredAt least 1
deliveryintegerrequiredAt least 1

cURL

curl -sS -X POST "https://s.zo.sa/api/public/v1/webhooks/7/deliveries/3305/resend" \
  -H "Authorization: Bearer $ZO_API_KEY" \
  -H "Accept: application/json"

JavaScript

const response = await fetch('https://s.zo.sa/api/public/v1/webhooks/7/deliveries/3305/resend', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.ZO_API_KEY}`,
    Accept: 'application/json',
  },
});
console.log(response.status, await response.json());

PHP

<?php

$ch = curl_init('https://s.zo.sa/api/public/v1/webhooks/7/deliveries/3305/resend');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('ZO_API_KEY'),
        'Accept: application/json',
    ],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);

echo $status, PHP_EOL, $body, PHP_EOL;

Python

import os

import requests

response = requests.post(
    "https://s.zo.sa/api/public/v1/webhooks/7/deliveries/3305/resend",
    headers={
        "Authorization": f"Bearer {os.environ['ZO_API_KEY']}",
        "Accept": "application/json",
    },
    timeout=30,
)
print(response.status_code, response.json())
Response 202
{
  "data": {
    "id": 1,
    "uuid": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
    "event": "string",
    "is_test": false,
    "status": "pending",
    "attempts": 1,
    "response_status": null,
    "error": null,
    "duration_ms": null,
    "next_attempt_at": null,
    "created_at": "2026-11-23T06:01:53Z",
    "payload": {},
    "response_body": null,
    "queued": false
  }
}

Example generated from the schema.

Responses

202The new delivery, queued, with the body it will send.
Response schema
  • dataobjectrequired
    One send of a webhook, kept 30 days. payload and response_body only on a single delivery (detail, test, resend).
    14 fields
    • idintegerrequired
    • uuidstring (uuid)required
      The X-Zo-Delivery header the receiver saw.
    • eventstringrequired
    • is_testbooleanrequired
    • statusstringrequired
      One of pending, success, failed
    • attemptsintegerrequired
    • response_statusintegerrequirednullable
    • errorstringrequirednullable
      Why it failed: timeout, connection_failed, blocked_url, http_{status}, webhook_disabled, or feature_locked (the store no longer has the public API, so a key's webhook stopped).
    • duration_msintegerrequirednullable
    • next_attempt_atstring (date-time)requirednullable
    • created_atstring (date-time)required
    • payloadobject
      The body sent: {event, merchant, created_at, data}.
    • response_bodystringnullable
      The first 10 KB of the answer.
    • queuedboolean
      Only on a test send that could not run at once (every outbound slot busy): true, and the delivery waits on the queue with status pending.
401Missing, unknown, revoked or expired key.

An error object: {"error": {"code", "message", "fields"}}.

402The store's plan does not include this feature (error code feature_locked, with the feature and the plan that has it). Every operation answers it with feature public_api when the key's store is not on the Pro plan.

An error object: {"error": {"code", "message", "fields"}}.

403The key lacks the scope (code insufficient_scope, naming it in scope), the caller's address is not allowed (ip_not_allowed), or the store is suspended (store_suspended: reads stay allowed, every write answers this).

An error object: {"error": {"code", "message", "fields"}}.

404No such row in this store (code not_found).

An error object: {"error": {"code", "message", "fields"}}.

429Too many requests (code rate_limited); see Retry-After.

An error object: {"error": {"code", "message", "fields"}}.