post https://planning-service.beta.routific.com/v1/orders
A POST request to the \orders
endpoint allows you to upload an array of orders into Routific under a specific workspace.
[
{
"name": "Metro",
"locations": [
{
"address": "510 W 8th Ave, Vancouver, BC V5Z 1C5",
"latitude": 49.26413,
"longitude": -123.11499
}
],
"phone": "+16043215582",
"email": "[email protected]",
"duration": 600,
"load": 1,
"instructions": "Deliver at loading bay at the back of the building.",
"timeWindows": [
{
"startTime": "9:00",
"endTime": "10:00"
}
],
"displayOrderId": "external-1"
}
]
The body of the payload accepts an array of order entities, where each order consists of following properties and attributes.
Fields | Type | Required |
---|---|---|
name | String | No |
locations | Location object | Yes |
phone | String | No |
String | No | |
duration | Number | No |
load | Number | No |
instructions | String | No |
timeWindows | TimeWindow object | No |
displayOrderId | String | No |