novinzodevelopers
API referenceCore for pluginsOrders

Add Note

POST/api/storefront/orders/{orderId}/notes

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.

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})$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

level*string

Value in

  • "info"
  • "warning"
  • "success"
  • "error"
message*string
Match^(?:[^\p{Cc}]|\n)+$
Length1 <= length <= 500

Response 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"}