Read the Event Log
The store's Business Events. With after, oldest first from that Sequence: follow the log by passing each page's nextCursor as the next after. Otherwise newest first, paged back with before.
query Parameters
afterRead forward, oldest first, from after this Sequence — how an integration follows the log (after=0 reads from the start).
Read forward, oldest first, from after this Sequence — how an integration follows the log (after=0 reads from the start).
beforeRead back, newest first, from before this Sequence.
Read back, newest first, from before this Sequence.
limitAt most this many events (1–100)
At most this many events (1–100)
typeOnly these Event Types, comma-separated, each named exactly (order.confirmed), by subject (order.*), or *.
Only these Event Types, comma-separated, each named exactly (order.confirmed), by subject (order.*), or *.
orderIdOnly the events of this order
Only the events of this order
Read the Event Log › Responses
A page of the Event Log
successcountNumber of items returned
nextCursorThe Sequence to pass as after (or before, the way this page was read) for the next page; null on the last page
Get a Business Event
path Parameters
idResource ID
Resource ID
Get a Business Event › Responses
The Business Event
successA Business Event as it is published: its envelope — id (the same on every delivery), Sequence, type and version, subject, order, when it happened and was recorded, who caused it and through what — and the data its type and version promise. Fields are only ever added.
List Consumers
Who receives the store's Business Events, with how many Deliveries are on their way and how many were given up on.
List Consumers › Responses
Every Consumer, oldest first
successcountNumber of items returned
Add a webhook
A webhook Consumer: an endpoint of the merchant's own that receives the Business Events it subscribes to, recorded from now on, each POSTed as JSON and signed per the Standard Webhooks specification. Its Signing Secret is in this answer and never shown in full again.
Add a webhook › Request Body
kindThe kind of Consumer: webhook, an endpoint of the merchant's own
nameWhat the merchant calls it
urlWhere Deliveries are POSTed: a public https URL
subscriptionThe Event Types it receives, each named exactly, by subject (order.*), or *
Add a webhook › Responses
The webhook, and its Signing Secret
successGet a Consumer
path Parameters
idResource ID
Resource ID
Get a Consumer › Responses
The Consumer
successChange a Consumer
Start or stop any Consumer; rename a webhook, point it at another URL or change what it subscribes to. Stopped, a Consumer receives nothing: its waiting Deliveries are skipped and new events are not delivered to it. Started again, it receives what is recorded from then on and its failing streak is cleared; replay what it missed. A new Subscription applies to what is recorded from then on; a new URL starts without a failing streak.
path Parameters
idResource ID
Resource ID
Change a Consumer › Request Body
enabledStart (true) or stop (false) delivering to it
nameWhat the merchant calls it
urlWhere Deliveries are POSTed: a public https URL
subscriptionThe Event Types it receives, each named exactly, by subject (order.*), or *
Change a Consumer › Responses
The Consumer as it now stands
successDelete a webhook
Rotate a webhook's Signing Secret
A new Signing Secret, in this answer and never shown in full again. For a day, Deliveries carry a signature by each secret, so the endpoint switches to the new one without refusing any; after that, only the new one signs.
path Parameters
idResource ID
Resource ID
Rotate a webhook's Signing Secret › Responses
The new Signing Secret
successSend a Test Event to a webhook
POSTs an example of an Event Type to the webhook now, signed like any Delivery, and answers what the endpoint did. A Test Event has Sequence 0 and an id starting test_; it is recorded in no Event Log and has no Delivery. It is sent to a stopped webhook too.
path Parameters
idResource ID
Resource ID
Send a Test Event to a webhook › Request Body
typeWhich Event Type's example to send; order.created when not said
Send a Test Event to a webhook › Responses
What the endpoint did with it
successReplay Business Events to a Consumer
Deliver the Business Events of a Sequence range again to this Consumer — those it subscribes to now. Settled Deliveries become due with their Attempts started over (their history is kept); events it never received, recorded while it was stopped or before it existed, get a Delivery. One already on its way is left alone. No Business Event is recorded again.
path Parameters
idResource ID
Resource ID
Replay Business Events to a Consumer › Request Body
fromSequenceThe first Business Event to deliver again, by Sequence
toSequenceThe last one; at most 1000 Sequences after the first
Replay Business Events to a Consumer › Responses
Accepted: the Deliveries are due and the store delivers them
successList Deliveries
A Consumer's Deliveries, newest event first and paged with before, or every Delivery of one Business Event. state=dead lists those given up on.
query Parameters
consumerIdA Consumer's Deliveries, newest event first
A Consumer's Deliveries, newest event first
eventIdEvery Delivery of one Business Event
Every Delivery of one Business Event
stateOnly Deliveries in this state — dead for those given up on
Only Deliveries in this state — dead for those given up on
beforeRead on from before this event Sequence: the previous page's nextCursor
Read on from before this event Sequence: the previous page's nextCursor
limitAt most this many (1–100)
At most this many (1–100)
List Deliveries › Responses
A page of Deliveries
successcountNumber of items returned
nextCursorPass as before for the next page; null on the last page
Get a Delivery
The Delivery with every Attempt it took and what the Consumer answered.
path Parameters
idResource ID
Resource ID
Get a Delivery › Responses
The Delivery
successRetry a Delivery
Make a settled Delivery — dead, skipped or delivered — due again now, its Attempts started over; its history is kept.
path Parameters
idResource ID
Resource ID
Retry a Delivery › Responses
Accepted: the Delivery is due and the store delivers it
success