List webhook deliveries
The webhook's deliveries of the last 30 days, ordered by (created_at, id)
GET
https://s.zo.sa/api/public/v1 /webhooks/{id}/deliveries Scope
webhooks.readA delivery's row changes while it is retried, so this list pages by creation time and refuses updated_since (422).
Request
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | required | At least 1 |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
per_page | integer | Rows per page, 1 to 100 (default 50; more is capped at 100). Default 50 At least 1 | |
cursor | string | The meta.next_cursor of the previous page. Opaque. Up to 200 characters | |
created_since | string (date-time) | Only rows created at or after this time (ISO 8601, inclusive to the second; no offset means UTC). | |
filter[status] | string | One of pending, success, failed |
cURL
curl -sS "https://s.zo.sa/api/public/v1/webhooks/7/deliveries" \
-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', {
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');
curl_setopt_array($ch, [
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.get(
"https://s.zo.sa/api/public/v1/webhooks/7/deliveries",
headers={
"Authorization": f"Bearer {os.environ['ZO_API_KEY']}",
"Accept": "application/json",
},
timeout=30,
)
print(response.status_code, response.json()){
"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
}
],
"meta": {
"per_page": 1,
"next_cursor": null
}
}Example generated from the schema.
Responses
200A page.
Response schema
dataarray of objectsrequired14 fields
idintegerrequireduuidstring (uuid)requiredThe X-Zo-Delivery header the receiver saw.eventstringrequiredis_testbooleanrequiredstatusstringrequiredattemptsintegerrequiredresponse_statusintegerrequirednullableerrorstringrequirednullableWhy 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_msintegerrequirednullablenext_attempt_atstring (date-time)requirednullablecreated_atstring (date-time)requiredpayloadobjectThe body sent: {event, merchant, created_at, data}.response_bodystringnullableThe first 10 KB of the answer.queuedbooleanOnly 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.
metaobjectrequired2 fields
per_pageintegerrequirednext_cursorstringrequirednullablePass as cursor for the next page; null on the last page.
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"}}.
422A query parameter is invalid (code validation_failed, with fields).
An error object: {"error": {"code", "message", "fields"}}.
429Too many requests (code rate_limited); see Retry-After.
An error object: {"error": {"code", "message", "fields"}}.