create booking
Endpoint
| Endpoint |
Method
|
Authentication |
| /booking/delivery/user/create |
POST |
yes |
Authentication
Type
|
Token source
|
Server
|
| Bearer |
usapi login |
usapi |
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"
}
Properties
|
Properties of |
Data type |
Required |
Description |
|
|
|
|
|
Result example
Body request example
insert code here
Error example
Body request example
insert code here