Audit
The account's API request log, available on the Enterprise plan. Filter requests by date, API client and HTTP status code.
The endpoints in this group are not yet available. This page documents the contract as currently defined.
{
"request_id": "req_01J9KV1A2B",
"timestamp": "2026-09-13T06:00:04+03:00",
"environment": "live",
"client_id": "cl_01J9KQ7X4M",
"client_name": "Power BI הנהלת חשבונות",
"key_id": "key_01J9KQ8Y5N",
"method": "GET",
"path": "/v2/documents",
"query": "updated_since=2026-09-12T06:00:00+03:00&limit=200",
"status": 200,
"error_code": null,
"latency_ms": 412,
"ip": "203.0.113.24",
"user_agent": "Microsoft.Data.Mashup (https://go.microsoft.com/fwlink/?LinkID=304225)",
"request_bytes": 0,
"response_bytes": 184220,
"scope_used": "buyer.purchases:read"
}
GET
/audit/requestsQuery parameters
Opaque cursor returned as next_cursor in a previous response. Pass it to fetch the next page.
Start of the date range, inclusive, matched against the document date or the order date.
Responses
200A page of request log entries.
Show 17 child attributesHide child attributes
403The credential is valid but is not allowed to make this request. The code is scope_missing, plan_required, ip_not_allowed or client_suspended.
curl "https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/audit/requests?from=2026-09-13&to=2026-09-13&client_id=cl_01J9KQ7X4M&limit=3" \
-H "Authorization: Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…"const res = await fetch("https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/audit/requests?from=2026-09-13&to=2026-09-13&client_id=cl_01J9KQ7X4M&limit=3", {
method: "GET",
headers: {
Authorization: "Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…",
},
});
const data = await res.json();import requests
res = requests.get(
"https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/audit/requests?from=2026-09-13&to=2026-09-13&client_id=cl_01J9KQ7X4M&limit=3",
headers={
"Authorization": "Bearer zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…",
},
)
data = res.json()using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "zk_test_XXXXXXXX_…zk_live_XXXXXXXX_…");
var res = await http.GetAsync("https://sandbox-api.zester.co.il/v2https://api.zester.co.il/v2/audit/requests?from=2026-09-13&to=2026-09-13&client_id=cl_01J9KQ7X4M&limit=3");
var data = await res.Content.ReadAsStringAsync();
{
"data": [
{
"request_id": "req_01J9KV1A2B",
"timestamp": "2026-09-13T06:00:04+03:00",
"environment": "live",
"client_id": "cl_01J9KQ7X4M",
"client_name": "Power BI הנהלת חשבונות",
"key_id": "key_01J9KQ8Y5N",
"method": "GET",
"path": "/v2/documents",
"query": "updated_since=2026-09-12T06:00:00+03:00&limit=200",
"status": 200,
"error_code": null,
"latency_ms": 412,
"ip": "203.0.113.24",
"user_agent": "Microsoft.Data.Mashup (https://go.microsoft.com/fwlink/?LinkID=304225)",
"request_bytes": 0,
"response_bytes": 184220,
"scope_used": "buyer.purchases:read"
},
{
"request_id": "req_01J9KV1B7C",
"timestamp": "2026-09-13T06:00:05+03:00",
"environment": "live",
"client_id": "cl_01J9KQ7X4M",
"client_name": "Power BI הנהלת חשבונות",
"key_id": "key_01J9KQ8Y5N",
"method": "GET",
"path": "/v2/orders",
"query": "updated_since=2026-09-12T06:00:00+03:00&limit=200",
"status": 200,
"error_code": null,
"latency_ms": 238,
"ip": "203.0.113.24",
"user_agent": "Microsoft.Data.Mashup (https://go.microsoft.com/fwlink/?LinkID=304225)",
"request_bytes": 0,
"response_bytes": 96114,
"scope_used": "buyer.purchases:read"
},
{
"request_id": "req_01J9KV1C3D",
"timestamp": "2026-09-13T06:00:05+03:00",
"environment": "live",
"client_id": "cl_01J9KQ7X4M",
"client_name": "Power BI הנהלת חשבונות",
"key_id": "key_01J9KQ8Y5N",
"method": "GET",
"path": "/v2/documents/5520931",
"query": "expand=lines,files",
"status": 429,
"error_code": "rate_limited",
"latency_ms": 3,
"ip": "203.0.113.24",
"user_agent": "Microsoft.Data.Mashup (https://go.microsoft.com/fwlink/?LinkID=304225)",
"request_bytes": 0,
"response_bytes": 318,
"scope_used": "buyer.purchases:read"
}
],
"next_cursor": "eyJhZnRlciI6InJlcV8wMUo5S1YxQzNEIn0",
"has_more": true
}{
"type": "https://developers.zester.co.il/errors/ip_not_allowed",
"title": "IP address not allowed",
"status": 403,
"code": "ip_not_allowed",
"detail": "Requests from 203.0.113.77 are not in the IP allowlist of client cl_01J9KQ7X4M.",
"request_id": "req_01J9KV6N2W"
}