OrderState (v1)
Polling result that tells whether a specific order or a specific delivery date is still actionable for the client. Can be used by shops to decide if a stale (old, modified) cart needs to reload data (a order may have changes on server side). For a complete overview about possible dates and orders, use the dates endpoint.
| # | Field | Type | Description |
|---|---|---|---|
| 0 | state | string | polling result: ok (no change), changed (order was modified server-side), over (order stop time passed), deleted (order no longer exists), cancelled (order was cancelled), done (order is fulfilled), order (a new order was found for the requested date), tover (the tour does not fit the customer schedule anymore), error (request could not be processed) |
| 1 | oid | string | order id; set when a new order was found for the requested date (state=order), 0 otherwise |
| 2 | age | string | minutes elapsed since the order was last changed server-side based in the lastchanged input; only set when state=changed |