Skip to main content

Get Subscription Orders

Returns the subscription’s current state and every order under it, including each order’s ID, state, pickup date, pickup window, and the time of its last state change. Use it to track order progress after activation. It is also how you discover the order IDs that belong to a subscription.
Headers
No customer token is required. This endpoint is server-to-server, so your backend can call it with just your API key. It is a GET request, so no Idempotency-Key is needed.
Path Parameters Response
Orders are sorted by pickup_date, earliest first. Timestamps are ISO 8601 in Riyadh time (+03:00). state_changed_at is null while an order is still in its initial scheduled state. cancelled_at is set only when an order was cancelled.

Subscription States

Order States


Errors

Not found (404): the subscription ID does not exist, or it does not belong to your integration:

Polling Guidance

  • States are effectively real-time: responses are briefly cached, but the cache is refreshed the moment an order changes state.
  • Poll every 5 to 15 minutes during service hours. Polling more often than every 5 minutes per subscription brings no benefit.
  • Only poll subscriptions that are not yet final. Stop polling once the subscription is completed or cancelled, or when all of its orders are delivered or cancelled.