Skip to content

Labels document

GET/admin/v1/stores/{store_id}/documents/labels
  • products:read

Price and barcode labels for the shelf: each variant's title, option, price and a Code 128 barcode of its barcode number (or SKU), on an A4 sheet or a label printer's roll.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Query parameters

  • itemsstringrequired

    Comma-separated variant or product IDs (a product: each of its variants), each with *copies when more than one: var_1*3,prod_2. Up to 1,000 labels.

  • layoutenum

    sheet (A4, 3 × 7) or roll (50 × 30 mm); sheet by default.

    • sheet
    • roll
  • priceboolean

    Print prices; true by default.

  • langstring

    ar (right to left) or en; the store's language by default.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Returns

200 Print-ready HTML.

Errors

  • 403forbiddenMissing permission.
  • 404not_foundA variant that doesn't exist.
  • 422validation_failedNo, too many or malformed items.