Delivery Plan
Was this helpful?
Was this helpful?
Push given orders to delivery provider for the given tenant. In case of an unsuccessful route planning for given order (eg. due to invalid address) an email to the Merchant will be send.
POST /delivery-v2/{tenant}/planRoute HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 78
{
"orderStatus": "CREATED",
"siteCode": "main",
"orderIds": [
"B7016709",
"QAC6GQEF"
]
}
{
"orderId": "QAC6GQEF",
"deliveryProvider": "ONFLEET",
"errorMessage": "completeBefore must not be before creation time"
}