novinzodevelopers
API referenceCore for pluginsOrders

List

GET/api/storefront/orders

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.

Query Parameters

createdAfter?string|null
createdBefore?string|null
cursor?string|null
limit?string|null
status?|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/storefront/orders"
{  "items": [    {      "orderId": "string",      "status": "draft",      "customer": {        "id": "string",        "email": "string"      },      "total": {        "amountMinorUnits": "string",        "currency": "AED"      },      "createdAt": "string",      "paidAt": "string",      "lines": [        {          "productId": "string",          "productVariantId": "string",          "productName": "string",          "variantName": "string",          "quantity": -9007199254740991,          "total": {            "amountMinorUnits": "string",            "currency": "AED"          }        }      ],      "adjustments": [        {          "type": "discount",          "description": "string",          "amount": {            "amountMinorUnits": "string",            "currency": "AED"          },          "productVariantId": "string"        }      ]    }  ],  "nextCursor": "string"}