List and read scheduled events, run one now, or remove one before it runs.
Events are actions scheduled to run later, such as an order cancellation with a future date. You can list and read them, run one straight away, or remove one so it never runs. This area has 4 endpoints, and all seven SDKs call every one.
Executing an event runs its scheduled action straight away. Use remove instead if the action should not happen.
Register your API credentials once when your app starts, as shown in
Authentication. Every SDK sample on these pages then gets its client in one line.
With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.
A scheduled change creates an event. Cancelling an order with a future effective_date adds an Order Cancel event whose executed_on is null until it runs.
Execute and remove take an empty body. Send {}; the event is named in the path.
A removed event cannot be removed again. A second remove returns 404.
One event comes back under event. A listing puts its records under data.
Listings page by cursor. Records sit under data; pass pagination.next_cursor as cursor to read the next page, and stop when pagination.has_more is false.