DispatchOne Solution
...
LogisticsOrder API
Integrate with Logistics Order

How to: Create Orders

5min

For information about prerequisites, see Integrate with LogisticsOrder.

Create Orders

To create an Order, call the following endpoint. and

JSON


Specify the required attributes in the request body.The request body is specified in JSON format and shows how to create a new Order:

Sample Request

JSON


Sample Response

JS


Note: While creating an order, users can provide location details either as a string (which could be a facility ID if they have facilities created) or as an object with more detailed information, including addressLine1, addressLine2, city, state, etc. This applies to pickup, drop-off, and return locations. The sample request above is the example of a location when passed as string. Now, let's see the sample request when the location is passed as an object.

Sample Request

JS