GET
/
api
/
v1
/
barcodes
/
{entity_type}
/
{entity_id}
curl --request GET \
  --url https://api.byblend.com/api/v1/barcodes/{entity_type}/{entity_id} \
  --header 'Authorization: Bearer <token>'
[
  {
    "barcode_value": "USER-3da03bd9-26cd-487c-9619-d4e1b0c26f24-7172173f",
    "created_at": "2025-04-29T02:47:19.835090",
    "entity_id": "3da03bd9-26cd-487c-9619-d4e1b0c26f24",
    "entity_type": "user",
    "expires_at": "2025-04-29T03:47:19.834495",
    "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2AQAAAACkPldwAAAAzklEQVR4nE2QQUpEMRBE609mIwSy8ApuhUAEEQLtkTyKRwpkG+k5gOAJhAwZmE1/WgSn2+weVUlVBTUIoeUD/k6iWgYNY4ZQ73LjrcXnl2v8MH1NjkNNx+TYJzkjpVEajHtKibS5H8iZo/vzr8nzg7Cy1Bsfcb9fxpO9d3j8huDL7m+6n3C98z1Fh3Ay/zZfPy8tep+aWVmNj6eH8wbx/C46xfMhhEzF9SQVYXmertpq+befZUr0fSEPYprWh96xh/3N88Isy/8bOhkL1vcH/sNf4bXmnzwAAAAASUVORK5CYII=",
    "is_active": true,
    "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

entity_type
enum<string>
required

The type of entity the barcode is for

Available options:
user,
order,
patient,
prescription,
prescription_product,
non_prescription_product,
order_material,
inventory
entity_id
string
required

The ID of the entity

Query Parameters

is_active
boolean

Whether to include only active barcodes. Default is true.

Example:

false

include_images
boolean

Whether to include the base64 image. Default is true.

Example:

false

Response

200 - application/json

Successful response with barcode details

The response is of type object[].