Add Note
/api/storefront/orders/{orderId}/notesAdds 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.
Path Parameters
^([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})$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "info"
- "warning"
- "success"
- "error"
^(?:[^\p{Cc}]|\n)+$1 <= length <= 500Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/storefront/orders/string/notes" \ -H "Content-Type: application/json" \ -d '{ "level": "info", "message": "string" }'{ "noteId": "string", "createdAt": "string"}Send Email To Sellers POST
Queues a plain transactional notice to the store's own sellers, rendered like SendEmail. Core resolves the recipients from the store's team (audience team, the default) or its owner (audience owner), only verified addresses, and never returns them. The team is the owner and the members who may open the plugin's app; a member kept out of the app, or out of an area its granted permissions reach, such as orders, gets nothing: the answer is one email id per recipient and their count. Each recipient counts against the store's hourly budget, and the whole send is refused if it does not fit. A repeated idempotencyKey with different content is refused. Requires the store to have granted the plugin emails:send.
Completed By Visitor Ids POST
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.
