read_orders or read_products to list, write_orders or write_products to add and delete (a write_ scope includes its read_ scope). See Scopes.
The label
A label is a short word in a color that your app puts on an order or a product, to draw the merchant’s eye: a VIP customer, an order to call before shipping, a product running low.Who sees them
- The merchant sees every app’s labels next to each row of their orders and products tables, with the app’s name and icon. Whoever can see those tables sees the labels. The merchant cannot add or remove a label; only your app can.
- Your app sees only its own labels. Another app’s label answers
404, like one that does not exist. - Labels are not part of the order or product objects: read them with List order labels and List product labels.
Limits
- Up to 5 labels per app on one order or product. The sixth answers
422 limit_exceededwithdetails: {"max": 5}. - The same text twice on one order or product, letter case aside (
VIPandvip), answers409 label_exists. This is checked before the limit. - The lists are not paginated and take no query parameters.
Adding and deleting
- Add an order label and Add a product label take an
Idempotency-Keyto retry safely. See Idempotency. - The answer’s
Locationheader is the label’s path, used to delete it. There is no endpoint to read one label. - Deleting is for good.
- Adding or deleting a label sends no event and does not change the order or product, its
updated_atincluded.
Deleted orders and products
On a deleted order or product, every label endpoint answers404 not_found. Its labels are kept, and come back if it is restored.