Skip to main content
PATCH
/
v1
/
scanner
/
receiving
/
products
/
{productId}
/
barcode
Add barcode to a product missing one
curl --request PATCH \
  --url http://localhost:3000/v1/scanner/receiving/products/{productId}/barcode \
  --header 'Content-Type: application/json' \
  --data '
{
  "barcode": 12345678901
}
'
{
  "success": true,
  "barcode": "<string>",
  "scan_barcode": "<string>",
  "norm_barcode": "<string>"
}

Path Parameters

productId
string<uuid>
required

Scraped product ID

Body

application/json
barcode
string
required

Raw barcode string (UPC-A, EAN-13, etc.)

Required string length: 8 - 14
Example:

12345678901

Response

Barcode added successfully, or conflict detected requiring merge

success
enum<boolean>
required
Available options:
true
barcode
string
required
scan_barcode
string
required
norm_barcode
string
required