delivery

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

Booking details

Endpoint
Endpoint Method
Authentication
/booking/delivery/user/detail GET yes
Authentication
Type
Token source
Server
Bearer USAPI LOGIN USAPI
Param request
Properties
Required Description
booking_id yes booking code generated from 

{{demo}}/booking/delivery/user/detail?booking_id=11113BE

Result example

OK (200)

{
    "package_info": [
        {
            "id": 4062,
            "booking_onapps_id": 4080,
            "destination_id": 25208,
            "origin_id": 25207,
            "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,
            "koli": 1,
            "notes": "",
            "insurance_exist": false,
            "goods_value": 0,
            "packing_value": 0,
            "estimate_price": 60000,
            "voucher": null,
            "voucher_id": null,
            "discount_value": null,
            "voucher_type": null,
            "payment_type": "QRIS",
            "payment_note": "00020101021226570011ID.DANA.WWW011893600915060486424802096048642480303UKE51440014ID.CO.QRIS.WWW0215ID20243148326170303UKE5204899953033605405600005802ID5925PT OnIndonesia Sistem Tek6015Kota Jakarta Ut610514240627201156QVVSAkXzjPkQaR60490011ID.DANA.WWW0425MER20210714007745096086410501163042741",
            "createdAt": "2024-05-15T09:53:02.732Z",
            "updatedAt": "2024-05-15T09:53:02.732Z",
            "insurance_fee": 0,
            "fee_after_discount": 60000,
            "total_fee": 60000
        }
    ],
    "type": "PICKUP",
    "user": "usernew1",
    "address": {
        "lat": -6.1613542,
        "long": 106.9257834,
        "urban_id": 0,
        "sub_district_id": 0,
        "city_id": 156,
        "full_address": "  Cakung Barat, Cakung Barat, "
    },
    "timestamp": "2024-05-15T09:53:02.325Z",
    "phone_number": "000000",
    "status": "BOOKING_CANCELLED",
    "booking_id": "11113BE",
    "driver_id": null,
    "kurir_name": null,
    "kurir_phone": null,
    "exp_payment_time": "2024-05-15T09:53:32.324Z"
}
Error example

Body request example

insert code here

Booking check QRIS

Endpoint
Endpoint Method
Authentication
/booking/delivery/user/detail/qr GET yes
Authentication
Type
Token source
Server
Bearer USAPI LOGIN USAPI
Param request
Properties
Required Description
booking_id yes booking code generated from 

{{demo}}/booking/delivery/user/detail/qr?booking_id=11113BE

Result example

OK (200)

{
    "qr_status": "EXPIRED"
}
Error example

Body request example

insert code here