Set order status or confirm order.
When changing order status from shipping to shipped, you also must add the package tracking number and tracking url.
Tracking number can contain following characters 0-9a-zA-Z-_.
When changing order status to delivered, you must add parameters delivered_at (actual date the order was delivered to the customer) and first_delivery_attempt (first attempt to deliver the order to the customer).
First delivery attempt is an optional field and it equals to delivery to the branch (order being able to be picked up by customer) when delivering to pick-up points.
ℹ NOTE
When delivering to pick-up points please mind parameter branch_id which is identifying delivery point of your carrier.
In this case, address parameters (street, city, zip, country, company) equals to customer address not to delivery address.
⚠ Attention
Required fields change with status the order is being set to. Please see schemas for all combinations. To only confirm the order, do not send any status.
Body
Required
-
Information if the order is confirmed by partner or not
-
Order status (shipping, shipped, delivered, returned)
Values are
shipping,shipped,delivered, orreturned. -
Date when first attempt at delivery to the customer has been made
-
Date when order has been delivered to customer
-
Package tracking number. Partners can send it when changing the order status to shipped.
-
url for package tracking
curl \
-X PUT https://mpapi.proxy.omnicado.com/v1/orders/{orderId}?client_id=api_token_value \
-H "Content-Type: application/json" \
-d '{"confirmed":true,"status":"shipping","first_delivery_attempt":"2018-01-13 08:13:00","delivered_at":"2018-01-14 08:13:00","tracking_number":"abc123","tracking_url":"https://www.exampletracker.com/track/abc123"}'
{
"confirmed": true,
"status": "shipping",
"first_delivery_attempt": "2018-01-13 08:13:00",
"delivered_at": "2018-01-14 08:13:00",
"tracking_number": "abc123",
"tracking_url": "https://www.exampletracker.com/track/abc123"
}
{
"confirmed": true,
"status": "shipping",
"first_delivery_attempt": "2018-01-13 08:13:00",
"delivered_at": "2018-01-14 08:13:00",
"tracking_number": "abc123",
"tracking_url": "https://www.exampletracker.com/track/abc123"
}
{
"result": {
"code": 200,
"status": "OK"
}
}
{
"result": {
"code": 200,
"status": "OK"
}
}