| Variable | Type | Description |
|---|---|---|
| list_id | string|int | The ID of the list linked to the website for which to save the orders |
| orders_xml | string | An XML-formatted string containing one or more customer orders to be imported in bulk. The XML must contain a single root element
|
| Parameter | Description |
|---|---|
| array | Associative array with each key being the order id and the value being an associative array with the keys saved (boolean) and errors (array). |
{ "125811": { "saved": 1, "errors": [] }, "125812": { "saved": 0, "errors": [ "missing products" ] } }
| Code | Message | Description |
|---|---|---|
| 407 | Missing required param list_id | list_id param is required |
| 101 | Not allowed for list_id = %s | Invalid access to list_id |
| 407 | Missing required param orders | orders param is required |
| 1507 | No valid purchases | No valid purchases sent |
| 1508 | List does not have remarketing enabled | List does not have remarketing enabled |
{ "err": true, "message": "Missing required param list_id", "code": 407 }
{ "err": true, "message": "Not allowed for list_id %s", "code": 101 }
{ "err": true, "message": "Missing required param orders", "code": 407 }
{ "err": true, "message": "No valid purchases sent", "code": 1507 }