List webhook deliveries
curl --request GET \ --url 'https://api.ztlpay.io/api/webhooks/subscription/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deliveries?status=PENDING&limit=50' \ --header 'Authorization: Bearer <token>'Lists deliveries created within the last 30 days for an enabled or disabled subscription belonging to the authenticated partner, newest first by creation time and then delivery ID. Includes status events and test deliveries. Deliveries queued before subscription-linked history was introduced are not included. Use the returned nextCursor with the same filters to fetch the next page. Fix from and to for a consistent time window. When nextCursor is absent or null, no further page exists. See the webhook guide for status meanings and recovery steps.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”PENDING is queued for delivery or retry; IN_PROGRESS is claimed for an attempt; DELIVERED received a 2xx response; FAILED stopped after a non-retryable failure or exhausted attempts.
Optional, case-sensitive delivery status filter.
Inclusive delivery creation time with a timezone. Defaults to 30 days ago; earlier values are limited to that window. Must be before to.
Exclusive delivery creation time with a timezone. Defaults to now. Must be after from.
Opaque nextCursor returned by the previous page. Keep the same filters when continuing.
Maximum number of deliveries in this page.
Responses
Section titled “Responses”Delivery summaries and an optional continuation cursor.
object
object
Delivery ID, preserved across automatic and manual retries. Distinct from the event ID in the payload.
Delivered event type, such as PAYMENT_STATUS_COMPLETED, ONBOARDING_STATUS_ACCEPTED, or webhook.test.
PENDING is queued for delivery or retry; IN_PROGRESS is claimed for an attempt; DELIVERED received a 2xx response; FAILED stopped after a non-retryable failure or exhausted attempts.
Original delivery creation time, preserved across retries. Filters and the 30-day history window use this time.
Cumulative attempts across the initial delivery cycle and all manual retry cycles. Increases when an attempt is claimed.
Start time of the latest claimed attempt, when available.
Time a successful response was recorded, when delivered. Cleared when a manual replay is accepted and set to the new completion time if replay succeeds. Earlier successful attempts remain in history.
Scheduled attempt time, provided only for PENDING deliveries.
Last recorded HTTP response code, when available. After retry acceptance, still describes the previous attempt until another attempt finishes.
Safe diagnostic from the last failed attempt, when available. After retry acceptance, remains until another attempt finishes.
Opaque continuation cursor. Absent or null when there is no further page.
Example
{ "deliveries": [ { "eventType": "PAYMENT_STATUS_COMPLETED", "status": "PENDING" } ]}Invalid status, timestamp, cursor, limit, or time range.
Authentication failed.
Subscription was not found for the authenticated partner.