novinzodevelopers
API referenceCore for pluginsViewed order

Viewed

GET/api/storefront/orders/viewed

The order whose viewer the storefront proved the calling plugin acts for. The order comes from the invocation token, never from the request, so a plugin cannot read any other.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/storefront/orders/viewed"
{  "orderId": "string",  "paid": true,  "customer": {    "id": "string",    "email": "string"  },  "items": [    {      "orderItemId": "string",      "productId": "string",      "productVariantId": "string",      "productName": "string",      "variantName": "string",      "quantity": -9007199254740991    }  ]}