Skip to content

Count reschedulable orders

API v2 is in public beta: endpoints and fields can change before general availability. See the changelog

GET/preorders/offers/{id}/shipping/schedulable_orders

Costs 1 rate-limit point · Rate limits

How many of a preorder offer's latest 100 orders have fulfillments that reschedule_existing_orders on PATCH /preorders/offers/:id/shipping would move: the unfulfilled, uncancelled ones. checked_count is how many orders were looked at.

Call it before PATCH /preorders/offers/:id/shipping with reschedule_existing_orders: true to tell the merchant how many orders will move. Only the latest 100 uncancelled orders are checked, so a checked_count of 100 means there may be more; the reschedule itself is not capped. Read-only: nothing changes and no email is sent.

Also searched asorders to reschedulehow many orders will be rescheduledschedulable orders count

Path parameters

Returns

  • schedulable_orders_countinteger

    Of the orders checked, how many have unfulfilled, uncancelled fulfillments that reschedule_existing_orders would move.

  • checked_countinteger

    How many of the offer's latest orders were checked.

Errors

404
not_found

The path is valid but nothing with that id exists in this store.

422
validation_failed

The request failed validation.

Any request can also fail with auth_invalid (401) or rate_limited (429).

Every error has the same shape: see Errors and the list of error codes.

GET/preorders/offers/{id}/shipping/schedulable_orders
curl "https://app.stoqapp.com/api/v2/external/preorders/offers/73a74948-2b57-4cc3-971f-2b441828c977/shipping/schedulable_orders" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
{
  "schedulable_orders_count": 1,
  "checked_count": 1
}