curl --request POST \
--url http://localhost:3000/v1/receiving/products/{productId}/merge-into/{canonicalId}{
"success": true,
"canonical_product_id": "<string>",
"merged_product_id": "<string>"
}Re-points all foreign key references from the duplicate product to the canonical product, then deactivates the duplicate. Used when a barcode scan reveals two products are the same.
curl --request POST \
--url http://localhost:3000/v1/receiving/products/{productId}/merge-into/{canonicalId}{
"success": true,
"canonical_product_id": "<string>",
"merged_product_id": "<string>"
}The duplicate scraped product ID (will be deactivated)
The canonical scraped product ID (will be kept)