Error: 404 API error product with reference [x]
About this article
This article describes error 404, and how to troubleshoot it.
Troubleshooting
When you use ChannelEngine's Merchant API to create shipments on ChannelEngine, you might encounter a 404 error with the message "A product with merchant reference [value] could not be found in order".
{
"StatusCode":404,
"LogId":null,
"Success":false,
"Message":"A product with merchant reference 0 could not be found in order"
}
This error message means that the shipment exported via the Merchant API contains a shipment line for a product that is unknown to the original order. E.g.:
- A product with the SKU/Merchant product number '10' is ordered. This value can be found below the GTIN (in this case, the EAN).
- To ship this product, you must include the
MerchantProductNo
:
{
"MerchantShipmentNo": "[SHIPMENT NUMBER]",
"MerchantOrderNo": "[MERCHANT ORDER NUMBER]",
"Lines": [
{
"MerchantProductNo": "10",
"Quantity": 1
}
],
"TrackTraceNo": "[TRACK & TRACE NUMBER]",
"TrackTraceUrl": "",
"Method": "[SHIPMENT METHOD]"
} - If lines on the shipment contain any other Merchant product number, such as '9' or 't-shirt', it cannot be matched with the original order lines on ChannelEngine and the API returns the 404 error.
To solve this, make sure to ship exactly the same Merchant product number/SKU as was placed in the original order lines.
Comments
0 comments
Article is closed for comments.