Orders

Add a single label to an order

Attaches the given Label to the order. If the label is already attached the request is a no-op and the endpoint still returns 201. The label must belong to the same site as the order — a 422 is returned otherwise. Use this endpoint when you want to incrementally add a label without replacing the order's full label set (use POST /shop/orders/{orderId}/labels for the replace-all behaviour).

put/shop/orders/{orderId}/labels/{labelId}

Response

The label that was attached to the order.

Example response

{
  "data": {
    "color": "#FF0000",
    "name": "VIP"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.