Skip to main content

Barcodes API

The Barcodes API allows you to create, manage, and lookup barcodes and QR codes for your products and inventory items. This enables efficient tracking and quick identification using barcode scanners.

What is a Barcode?โ€‹

A barcode in EquipDash is a unique identifier that can be assigned to:

  • Products: Assign a barcode to identify a product type
  • Inventory Items: Assign individual barcodes to track specific inventory items

Barcode Typesโ€‹

TypeValueDescriptionBest For
QR Codeqr2D matrix barcodeMost versatile, mobile scanning
Code 128code128High-density linear barcodeGeneral purpose
Code 39code39Alphanumeric linear barcodeLegacy systems
EAN-13ean1313-digit product codeRetail products
EAN-8ean88-digit compact codeSmall items
UPC-Aupca12-digit US/Canada codeRetail products

API Endpointsโ€‹

Core Operationsโ€‹

MethodEndpointDescriptionScope Required
GET/v1/barcodesList all barcodesproducts:read
GET/v1/barcodes/{id}Get a single barcodeproducts:read
PATCH/v1/barcodes/{id}Update a barcodeproducts:write
DELETE/v1/barcodes/{id}Delete a barcodeproducts:write

Lookup & Validationโ€‹

MethodEndpointDescriptionScope Required
POST/v1/barcodes/lookupLookup barcode by valueproducts:read
POST/v1/barcodes/validateValidate a barcode valueproducts:read
GET/v1/barcodes/typesGet available barcode typesproducts:read

Create Barcodesโ€‹

MethodEndpointDescriptionScope Required
POST/v1/barcodes/productsCreate barcode for a productproducts:write
POST/v1/barcodes/inventoryCreate barcode for inventoryproducts:write
POST/v1/barcodes/products/auto-generateAuto-generate for productproducts:write
POST/v1/barcodes/inventory/auto-generateAuto-generate for inventoryproducts:write

Bulk Operationsโ€‹

MethodEndpointDescriptionScope Required
POST/v1/barcodes/generate-valueGenerate a value (without creating)products:read
POST/v1/barcodes/bulk-deleteDelete multiple barcodesproducts:write

Common Use Casesโ€‹

Scanning a Barcodeโ€‹

When a barcode is scanned, lookup the product or inventory item:

curl -X POST "https://app.equipdash.com/api/v1/barcodes/lookup" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"barcode_value": "RENT-001-ABC123"}'

Creating a Barcode for a Productโ€‹

curl -X POST "https://app.equipdash.com/api/v1/barcodes/products" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"product_id": 123,
"barcode_value": "BIKE-MTN-001",
"barcode_type": "code128"
}'

Auto-generating Barcodesโ€‹

Let the system generate a unique barcode value:

curl -X POST "https://app.equipdash.com/api/v1/barcodes/inventory/auto-generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"inventory_id": 456,
"barcode_type": "qr"
}'

Barcode Value Formatโ€‹

Auto-generated barcode values follow this format:

{PREFIX}-{IDENTIFIER}-{UNIQUE_ID}

Where:

  • PREFIX: Based on your supplier settings (default: "RENT")
  • IDENTIFIER: Short form based on product/inventory
  • UNIQUE_ID: Unique alphanumeric string

Example: RENT-001-A7B3C9

  • Products - Products can have barcodes
  • Inventory - Inventory items can have barcodes
  • Workshop - Scan barcodes for workshop operations