Sendi-Api

Server URL: https://sendimanapi.com

POST Create Delivery
https://sendimanapi.com/delivery/createDelivery

create delivery into sendi’s system
use Basic-Auth to authenticate your request

BODY formdata

client_name
John Smith

client's full name *required

client_phone
0512323693

client's phone number *required

client_city
Tel Aviv

client's city *required

client_street
Alenbi

client's street *required

client_building
29

client's street number *required

client_latitude
32.072561

client's latitude, if not provided we will generate it from google maps api

client_longitude
34.769003

client's longitude (not required), if not provided we will generate it from google maps api

rest_username
transit

Sendi's rest_username, which is associated with the Resteraunt, in Sendi's DB

client_entry
1

client's building entry (not required)

client_floor
3

client's floor (not required)

client_apartment
8

client's apartment (not required)

client_comment
bulding entry code: *1948

client's notes (not required)

order_delay
15

delivery preparation time in minutes, if not set, default is 10 (not required)

store_id
770

restaurant store id (not required if rest_username provided)

order_id
44597

source order id

Example Request
                                                
POST https://sendimanapi.com/delivery/createDelivery

                                            
Example Response
200 - OK
                                                
POST https://sendimanapi.com/delivery/createDelivery

                                            
Example Response
200 - OK
POST Delivery Details
https://sendimanapi.com/delivery/getApiDeliveryDetails

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

HEADERS

Content-Type
application/json

None

BODY raw

                                                  
                                                    
[44596,44597]
                                                  
                                              
Example Request
                                                
POST https://sendimanapi.com/delivery/getApiDeliveryDetails
[44596,44597]
                                            
Example Response
200 - OK
POST Cancel Delivery
https://sendimanapi.com/delivery/cancelDelivery

if sendi orderid is provided, isbyapiid=0
if your orderid is provided, isbyapiid=1

BODY formdata

order_id
44596

order id

is_by_api_id
1

1 - Your order_id, 0 - Sendi's order_id

cancel_status
4

4=cancel - delete order, 0=reset - rest to pending status - waiting to be assigned

Example Request
                                                
POST https://sendimanapi.com/delivery/cancelDelivery

                                            
Example Response
200 - OK
                                                    
{
    "data": null,
    "msg": "order has been taken from restaurant and cant been canceled"
}
                                                
                                                
POST https://sendimanapi.com/delivery/cancelDelivery

                                            
Example Response
200 - OK
                                                    
{
    "data": null,
    "msg": "order has been canceled successfully"
}
                                                
POST Create Rest
https://sendimanapi.com/rest/createRest

Send with a Json list. Each item in list is a restaurant dictionary.

HEADERS

Content-Type
application/json

None

BODY raw

Example Request
Example Response
200 - OK
                                                    
{
    "data": {
        "username": "[email protected]",
        "branch_name": "Tlv-Runners"
    },
    "msg": "restaurant created successfully"
}
                                                
Example Response
200 - OK
                                                    
{
    "data": {
        "username": "[email protected]",
        "branch_name": "Tlv-Runners"
    },
    "msg": "restaurant created successfully"
}
                                                
Example Response
500 - Internal Server Error
                                                    
{
    "data": [],
    "msg": "branch is missing"
}
                                                
POST Webhook
Example of webhook recieved.

The Webhook sent by the server.

BODY raw

Example Request