Skip to main content

create booking

Endpoint
Endpoint Method
Authentication
/booking/delivery/user/create POST yes
Authentication
Type
Token source
Server
Bearer USAPI LOGIN usapi
Field Data Type Notes
package_info Array of Objects
- origin_id Integer
- destination_id Integer
- service_id Integer
- sender_name String
- sender_phone String
- sender_address String
- receiver_name String
- receiver_phone String
- receiver_address String
- goods_id Integer
- goods_desc String
- goods_weight Float
- length Float
- width Float
- height Float
- voucher String
- notes String
- insurance_exist Boolean
- koli Integer
- origin_city Integer
- destination_city Integer
- goods_value Float
- estimate_price Integer
- packing_value Integer
- payment_type String Possible values: 
"CASH", "COC", "TRANSFER", "QRIS"
department String
mode String
pickup_loc Object
- lat Float
- long Float
- urban_id Integer
- sub_district_id Integer
- city_id Integer
- full_address String
phone_number String
relation_mode String
Body request
{
    "package_info": [
        {
            "origin_id": 25207,
            "destination_id": 25208,
            "service_id": 2,
            "sender_name": "Test",
            "sender_phone": "000000",
            "sender_address": "test",
            "receiver_name": "Test",
            "receiver_phone": "000000",
            "receiver_address": "Test",
            "goods_id": 31,
            "goods_desc": "Test",
            "goods_weight": 4,
            "length": 0,
            "width": 0,
            "height": 0,
            "voucher": "",
            "notes": "",
            "insurance_exist": false,
            "koli": 1,
            "origin_city": 476,
            "destination_city": 156,
            "goods_value": 0,
            "estimate_price": 60000,
            "packing_value": 2000,
            "payment_type": "QRIS"
        }
    ],
    "department": "ONDELIVERY",
    "mode": "PICKUP",
    "pickup_loc": {
        "lat": -6.1613542,
        "long": 106.9257834,
        "urban_id": 0,
        "sub_district_id": 0,
        "city_id": 156,
        "full_address": "  Cakung Barat, Cakung Barat, "
    },
    "phone_number": "000000",
    "relation_mode": "1"
}


Result example

200 Ok

insert code here
Error example

Body request example

insert code here