Sendi-Api
Server URL: https://sendimanapi.com
create delivery into sendi’s system
use Basic-Auth to authenticate your request
client's full name *required
client's phone number *required
client's city *required
client's street *required
client's street number *required
client's latitude, if not provided we will generate it from google maps api
client's longitude (not required), if not provided we will generate it from google maps api
Sendi's rest_username, which is associated with the Resteraunt, in Sendi's DB
client's building entry (not required)
client's floor (not required)
client's apartment (not required)
client's notes (not required)
delivery preparation time in minutes, if not set, default is 10 (not required)
restaurant store id (not required if rest_username provided)
source order id
POST https://sendimanapi.com/delivery/createDelivery
{
"data": {
"order_id": "2854905",
"order_ready_at": "2022-02-22 18:54:30",
"supplier": "יפו",
"supplier_type": 1,
"status": 0
},
"msg": "Create order successfully"
}
return’s an updated list of the deliveries details by the source order id’s supplied in the body of the request
param: delivery_status 0 - waiting to assign 1 - assigned and the driver is on the way to the restaurant 2 - picked up the delivery and on the way to client 3 - delivered 4 - canceled
use Basic-Auth to authenticate your request
None
[44596,44597]
POST https://sendimanapi.com/delivery/getApiDeliveryDetails
[44596,44597]
{
"data": [
{
"order_id": 44596,
"sendi_order_id": 2854905,
"delivered_at": null,
"picked_up_at": null,
"driver_latitude": null,
"driver_longitude": null,
"driver_name": null,
"driver_phone": null,
"driver_id": null,
"delivery_status": 0,
"rest_eta": null,
"client_eta": null
},
{
"order_id": 44597,
"sendi_order_id": 2854906,
"delivered_at": null,
"picked_up_at": null,
"driver_latitude": null,
"driver_longitude": null,
"driver_name": null,
"driver_phone": null,
"driver_id": null,
"delivery_status": 0,
"rest_eta": null,
"client_eta": null
}
],
"msg": "success"
}
if sendi orderid is provided, isbyapiid=0
if your orderid is provided, isbyapiid=1
order id
1 - Your order_id, 0 - Sendi's order_id
4=cancel - delete order, 0=reset - rest to pending status - waiting to be assigned
POST https://sendimanapi.com/delivery/cancelDelivery
{
"data": null,
"msg": "order has been taken from restaurant and cant been canceled"
}
Send with a Json list. Each item in list is a restaurant dictionary.
None
[
{
"branch": "Tlv-Runners",
"rest_name": "burger's", // This will return "branch name is missing, because it can't parse the json with the comments"
"mail": "[email protected]", // This will be used as the restaurant's username -- rest_username
"phone": "036666666",
"city": "tel aviv",
"street": "hachashmonaim",
"street_number": "100",
"latitude": "32.0692075",
"longitude": "34.786733",
"rest_logo_link": "data/files/770",
"tracker_sms": "1", // -- Do you want Sendi to send an sms link to the end customer, to track his delivery?
"feedback_sms": "0" // -- Do you want Sendi to send a feedback survey to the end customer?
},
{
"branch": "Tlv-Runners",
"rest_name": "burger's",
"mail": "[email protected]", // -- This will be used as the restaurant's username --- rest_username
"phone": "036666666",
"city": "tel aviv",
"street": "hachashmonaim",
"street_number": "100",
"latitude": "32.0692075",
"longitude": "34.786733",
"rest_logo_link": "data/files/770",
"tracker_sms": "1", // -- Do you want Sendi to send an sms link to the end customer, to track his delivery?
"feedback_sms": "0" // -- Do you want Sendi to send a feedback survey to the end customer?
}
]
POST https://sendimanapi.com/rest/createRest
[
{
"branch": "Tlv-Runners",
"rest_name": "burger's",
"mail": "[email protected]",
"phone": "036666666",
"city": "tel aviv",
"street": "hachashmonaim",
"street_number": "100",
"latitude": "32.0692075",
"longitude": "34.786733",
"rest_logo_link": "data/files/770",
"tracker_sms": "1",
"feedback_sms": "0"
}
]
{
"data": {
"username": "[email protected]",
"branch_name": "Tlv-Runners"
},
"msg": "restaurant created successfully"
}
The Webhook sent by the server.
[
{
"sendi_order_id":2854578,
"delivery_status":1,
"driver_name":"Eli",
"driver_phone":"0512342052",
"driver_id":3,
"driver_latitude":32.0782612,
"driver_longitude":34.8646054,
"pickup_eta":"2022-02-19 22:14:50"
},
{
"sendi_order_id":2854579,
"delivery_status":2,
"driver_name":"Moshe",
"driver_phone":"0547642052",
"driver_id":4,
"driver_latitude":32.0532612,
"driver_longitude":34.7546099,
"delivery_eta":"2022-02-19 23:14:54"
}
]
POST Example of webhook recieved.
[
{
"sendi_order_id":2854578,
"delivery_status":1,
"driver_name":"Eli",
"driver_phone":"0512342052",
"driver_id":3,
"driver_latitude":32.0782612,
"driver_longitude":34.8646054,
"pickup_eta":"2022-02-19 22:14:50"
},
{
"sendi_order_id":2854579,
"delivery_status":2,
"driver_name":"Moshe",
"driver_phone":"0547642052",
"driver_id":4,
"driver_latitude":32.0532612,
"driver_longitude":34.7546099,
"delivery_eta":"2022-02-19 23:14:54"
}
]