This method is used to update and send fulfillment of shipments that were previously marked-as-shipped.
Method | URI | Headers |
---|---|---|
POST | update-orders |
default |
Field | Required | Type | Description |
---|---|---|---|
send_fulfillment | No | Boolean | Default is false, decides if a fulfillment will be passed on to related platform |
orders | Yes | Array | An array container for draft shipment orders |
+id | Yes* | Number | ID of the order, required if ecommerce_id is empty |
+ecommerce_id | Yes* | String | Ecommerce ID of the order, required if id is empty, can not co-exist with id |
+tracking_number | No | String | Required if send_fulfillment . Sets the tracking number of order |
+carrier | No | String | Required if send_fulfillment . Sets the carrier of order. Available values are [Carriers are only available to registered users , Carriers are only available to registered users ] |
{
"send_fulfillment": true,
"orders": [
{
"id": 123123123,
"tracking_number": "1Z123123123123",
"carrier": "fedex"
},
{
"ecommerce_id": "AC-1-23453",
"tracking_number": "1Z1231234234",
"carrier": "fedex"
}
]
}
Field | Type | Description |
---|---|---|
success | Boolean | true or false |
message | String | Message |
Successful
{
"success": true,
"data": [],
"message": "Orders updated"
}
Failed
{
"success": false,
"message": "The given data was invalid.",
"data": {
"orders.0.id": [
"The selected orders.0.id is invalid."
],
"orders.1.id": [
"The selected orders.1.id is invalid."
]
}
}