Error: 404 API error product with reference [x]
When you use the merchant API to create shipments in ChannelEngine (this API is also used if you use our plugin for Woocommerce or Magento 1), you might encounter a 404 error with the message " A product with merchant reference [SOMETHING] 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 that is being exported to our API contains a shipment(line) for a product that is unknown on the original order. To clarify this with an example:
- A product is ordered with SKU / Merchant Product No 10 (this is always the value listed below the EAN).
- To ship this item, we 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 MerchantProductNo, say for example '9' or 'T-shirt', it cannot be matched with the original orderlines in ChannelEngine and the API returns the 404 error.
To resolve this, make sure that you ship exactly the same MerchantProductNo (/ SKU) on a shipment as was placed on the original orderlines.
Comments
0 comments
Article is closed for comments.