novinzodevelopers
API referenceCore for pluginsOrders

Completed By Visitor Ids

POST/api/storefront/orders/completed-by-visitor-ids

Which of the store's completed orders carry the given visitor ids, oldest charge first. Core does not interpret a visitor id; the caller joins it to whatever wrote it. Scoped to the store the invocation token forwarded in x-novinzo-plugin-invocation was minted for. Requires the store to have granted the plugin orders:read.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

visitorIds*array<>
Itemsitems <= 1000
completedBetween*

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/storefront/orders/completed-by-visitor-ids" \  -H "Content-Type: application/json" \  -d '{    "visitorIds": [      "string"    ],    "completedBetween": {      "from": "string",      "to": "string"    }  }'
[  {    "orderId": "string",    "visitorId": "string",    "charged": {      "amountMinorUnits": "string",      "currency": "AED"    },    "completedAt": "string"  }]