Driver API

post
Get Token

https://yourdomain.com/api/drivergettoken/
This endpoint get driver token
Request
Response
Request
Query Parameters
email
required
string
Driver's emaiil
password
required
string
Driver's password
Response
200: OK
Cake successfully retrieved.
{
"status": true,
"token": "THE_TOKEN",
"id": 3
}
401: Unauthorized

get
Get orders

https://yourdomain.com/api/driverorders
Get today's orders
Request
Response
Request
Query Parameters
api_token
optional
string
The authentication token
Response
200: OK

get
Order Update

https://yourdomain.com/api/updateorderstatus/:order_id/:status_id
Update order status
Request
Response
Request
Path Parameters
:status_id
required
string
the status id
:order_id
required
string
the order id
Query Parameters
comment
optional
string
api_token
optional
string
Response
200: OK

get
Update location of order

https://yourdomain.com/api/updateorderlocation/:order_id/:lat/:lng
Updates order location Since v1.1
Request
Response
Request
Path Parameters
lng
optional
string
lng
lat
optional
string
lat
order_id
required
number
the order id
Query Parameters
api_token
optional
string
Response
200: OK