Completed By Visitor Ids
/api/storefront/orders/completed-by-visitor-idsWhich 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.
items <= 1000Response 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" }]Add Note POST
Adds a note in the calling plugin's name to one of the store's orders, which the seller reads in the order's timeline: plain text of 1 to 500 characters, line breaks allowed, at level info, warning, success or error. The buyer never sees it. An order of another store, or one the store removed, is OrderNotInStore. A plugin adds at most 100 notes to one order; past that the call is OrderNotesLimitReached and writes nothing. Requires the store to have granted the plugin orders:annotate.
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.
