curl --request PATCH \
--url http://localhost:3000/v1/receiving/products/{productId}/barcode \
--header 'Content-Type: application/json' \
--data '
{
"barcode": 12345678901
}
'{
"success": true,
"barcode": "<string>",
"scan_barcode": "<string>",
"norm_barcode": "<string>"
}Sets the barcode, scan_barcode, and norm_barcode fields on a scraped_product that is missing a barcode. Used during receiving when scanning a physical product for the first time.
curl --request PATCH \
--url http://localhost:3000/v1/receiving/products/{productId}/barcode \
--header 'Content-Type: application/json' \
--data '
{
"barcode": 12345678901
}
'{
"success": true,
"barcode": "<string>",
"scan_barcode": "<string>",
"norm_barcode": "<string>"
}Scraped product ID
Raw barcode string (UPC-A, EAN-13, etc.)
8 - 1412345678901