put https://planning-service.beta.routific.com/v1/orders/
A PUT request to the /orders
endpoint allows you to update the order details for the orderId
specified in the request url.
[
{
"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"
}
],
"customerOrderNumber": "external-1"
}
]
Here are a set of fields that can be part of the request body when making a call to the update endpoint.
PUT v PATCH
Please note that this is a PUT request, rather than a PATCH, which means any user mutable field that's not part of the request will be assigned a null value.
Fields | Type | User Mutable |
---|---|---|
name | String | Yes |
locations | Location object | Yes |
phone | String | Yes |
String | Yes | |
duration | Number | Yes |
load | Number | Yes |
instructions | String | Yes |
timeWindows | TimeWindow object | Yes |
customerOrderNumber | String | Yes |