Flavours Partner API
ProductModifierBarcode

Preview Barcode

GET
/api/v2/products/modifiers/{modifierId}/barcode

Stream a freshly rendered PNG for a modifier's stored barcode, or for a what-if value/type override, on a white (default) or transparent background. padding (boolean, default true) wraps the bars in a uniform quiet-zone margin (white or transparent to match the background); send padding=0 for bars flush to the edge. Nothing is stored. Responds with image/png bytes.

Authorization

API-TOKEN
API-TOKEN<token>

Your partner API key. Send it in the API-TOKEN header on every request.

In: header

Path Parameters

modifierId*string

Header Parameters

X-API-Version*string

API contract version to target. See the Changelog for what changed in each version.

Default"2.0.0"
Value in"2.3.0" | "2.2.0" | "2.1.0" | "2.0.0"

Request Body

application/json

white?|
background?|
Value in"white" | "transparent"
padding?|
type?|
Value in"CODE_128" | "EAN_13" | "EAN_8" | "CODE_39" | "CODE_39_VIN" | "CODABAR" | "UPC_A" | "UPC_E" | "INTERLEAVED_2_OF_5" | "STANDARD_2_OF_5" | "CODE_93"
value?|

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.flavours.sa/dev/api/v2/products/modifiers/facilis/barcode" \  -H "X-API-Version: 2.3.0" \  -H "Content-Type: application/json" \  -d '{}'
{
  "meta": {
    "code": 401,
    "status": "error",
    "message": "Unauthenticated."
  },
  "data": null
}
{
  "meta": {
    "code": 403,
    "status": "error",
    "message": "This action is unauthorized."
  },
  "data": null
}
{
  "meta": {
    "code": 404,
    "status": "error",
    "message": "Resource not found."
  },
  "data": null
}
{
  "meta": {
    "code": 500,
    "status": "error",
    "message": "Internal server error."
  },
  "data": null
}