Order By Id
/api/storefront/orders/{orderId}One of the store's orders by id: whether it has been paid for, its customer's id and email, and its lines, oldest first, each with its order item id and the product and variant it was bought as. An order of another store, or one the store removed, is OrderNotInStore. Requires the store to have granted the plugin orders:read.
Path Parameters
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/storefront/orders/string"{ "orderId": "string", "paid": true, "customer": { "id": "string", "email": "string" }, "lines": [ { "orderItemId": "string", "productId": "string", "productVariantId": "string", "productName": "string", "variantName": "string", "quantity": -9007199254740991 } ]}List GET
The store's orders, newest first, at most 100 a page: each with its status, its customer's id and email, its total, when it was placed and paid, its lines, and the discounts, charge lines and surcharges that take the lines to a charged total. `createdAfter` (inclusive) and `createdBefore` (exclusive) bound when they were placed, and `status` keeps one status. Pass a page's `nextCursor` back as `cursor`, with the same filters, for the page after it; only a null `nextCursor` means the last page, since a page can hold fewer orders than `limit`. Orders placed while you page through are newer than the first page, so the pages after it neither skip nor repeat an order. Requires the store to have granted the plugin orders:list.
List GET
The ways to pay the store has connected and enabled, oldest first: each connection's id, its provider and the name the seller knows it by. A disabled or removed connection is left out, and so is store credit, which a buyer pays with only from a balance of their own. No credential or account detail of any connection. Scoped to the store the invocation token forwarded in x-novinzo-plugin-invocation was minted for. Requires the store to have granted the plugin payments:read.
