Skip to main content
Scopes: 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_exceeded with details: {"max": 5}.
  • The same text twice on one order or product, letter case aside (VIP and vip), answers 409 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-Key to retry safely. See Idempotency.
  • The answer’s Location header 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_at included.

Deleted orders and products

On a deleted order or product, every label endpoint answers 404 not_found. Its labels are kept, and come back if it is restored.

When the merchant removes your app

Your app’s labels disappear from the dashboard at once and are kept for 30 days. If the merchant installs your app again within that time, they come back as they were. After that they are deleted for good.