Order history
order_historyThe shopper's earlier orders with this store, for a reference bound to their account (a confirmed email or a connection key). orders: a list with status (confirmed, shipped, open, abandoned, cancelled), dates and totals, filtered by status and date, paged by cursor; payable marks a placed order that is not paid yet. order: up to 20 orders in full (lines with live price and stock, totals, shipping, payment, tracking, addresses) by id; an unpaid order carries pay_link. Use it to reorder or answer questions about earlier orders. The answer states what it covers and how to get the rest. Needs the order reference from start_order (Authorization: Bearer mo1_… or the ref argument).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | orders: until date YYYY-MM-DD | |
| ids | No | order: order ids (at most 20) | |
| ref | No | Order reference (mo1_…) from start_order, only when the client cannot send it as Authorization: Bearer | |
| from | No | orders: from date YYYY-MM-DD | |
| view | Yes | ||
| limit | No | orders: rows per page (at most 100) | |
| cursor | No | orders: the next cursor from an earlier answer | |
| status | No | orders: statuses to list (default all) |