API referenceEvents
List events
GET
Events in order. Poll with after set to next_after. An event younger than 2 seconds, or than a write still in progress, waits for the next poll.
storeKeyheader
AuthorizationBearer <vtk_...>A store API and MCP key
storeId*stringThe store id
after?integerOnly events after this id
Range
0 <= valuetype?stringOne type or several, comma separated
limit?integerRange
1 <= value <= 100Default
50OK
application/json- response
data*array<>pagination*curl -X GET 'https://starsell.app/api/v1/stores/string/events'Example Response
{ "data": [ { "id": "string", "type": "order.created", "subject_type": "string", "subject_id": "string", "created_at": "2019-08-24T14:15:22Z", "data": {} } ], "pagination": { "limit": 0, "next_after": "string", "has_more": true }}List checkouts GET
List checkouts, latest activity first.
Create a webhook POST
Add a webhook. The answer has the signing secret, shown once (and again to a repeat of its Idempotency-Key). Needs a key that can edit. Send an Idempotency-Key to make a retry safe: a repeat within 24 hours gets the first answer back instead of running again.