Orders

This documentation will show you how you can fetch all order details for orders booked via DeliverIt
Get Orders
GET /api/v1/order/{company}/{start}/{end}
Get orders within period
GET /api/v1/order/{company}/{start}/{end}

Use this to get the orders from a period of time.

Simply enter the date for the first day and date for the last day in the period you wish to fetch.

If you want the orders for 1 day, let “start” and “end” have the same value.

The start date has to be bigger then the end date.

Path variables

company
string required
start
string required

YYYY-MM-DD example 2016-01-31

end
string required

YYYY-MM-DD example 2016-01-31

Request headers

Authorization
string optional

Basic abcdefghicklmnopqrstuvxyz123456789

Responses

200 200

OK

Body
Object
error
boolean

Should be false

orders
Array

This array contains all orders returned.

Object
created_at
Object
date
string
Example:
2017-05-13 17:30:07.000000
timezone_type
integer
Example:
3
timezone
string
Example:
Europe/Berlin
name
string
Example:
Customer 1
telephone
string
Example:
+45123456789
address
string
Example:
Hovedgaden 1
city
string
Example:
Odense C
zip
string
Example:
5000
remarks
string
deliveryPrice
string
Example:
60
pickupTime
string
Example:
17:59
driverArrive
string
Example:
N/A
driverLeft
string
Example:
N/A
arriveAtCustomer
string
Example:
N/A
done
string
Example:
N/A
distance
string
Example:
1914
canceUrl
string

Url to follow if you wish to cancel a order

cancel
boolean

if canceled or not (1/0)

canceled_at
string

Time for cancellation

message
string
Example:
Here are the orders you are looking for
404 404

See the message for fix

Body
Object
error
boolean
Example:
true
message
string
Example:
No order is found. Are the dates correct?.
401 401

Wrong place at the wrong time

Body
Object
error
boolean
Example:
true
message
string
Example:
You should not be here