Managing Subscriptions
List delivery logs
List the delivery attempts for a webhook subscription to debug failures.
GET
List the delivery attempts for a webhook subscription, newest first. Use this to confirm that events reached your endpoint, and to debug failures by inspecting the response status code and any error message.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The webhook subscription ID |
Query parameters
| Parameter | Type | Description |
|---|---|---|
filter[event] | string | Only return deliveries for this event (e.g. points.earned) |
filter[success] | string | Filter by outcome: true for successful deliveries, false for failures |
page[number] | integer | Page number (default: 1) |
page[size] | integer | Results per page (default: 20, max: 100) |
Delivery log fields
| Field | Type | Description |
|---|---|---|
event | string | The event that was delivered |
status_code | integer | null | The HTTP status code your endpoint returned, or null if no response was received |
success | boolean | Whether the delivery was considered successful |
error | string | null | An error message when the delivery failed, otherwise null |
delivered_at | string | null | ISO 8601 timestamp of delivery, or null if it was never delivered |
created_at | string | ISO 8601 timestamp of when the attempt was recorded |
Errors
| Status | Scenario |
|---|---|
401 | Missing or invalid API key |
404 | No subscription with this ID exists for the shop |
429 | Rate limit exceeded (6 requests/second) |