novinzodevelopers
API referenceCore for pluginsOrders

Order By Id

GET/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

orderId*string
Match^([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    }  ]}