# create booking

##### Endpoint

<table border="1" id="bkmrk-endpoint-method-auth" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>**Endpoint**</td><td>**Method**  
</td><td>**Authentication**</td></tr><tr><td>/booking/delivery/user/create</td><td>POST</td><td>yes</td></tr></tbody></table>

##### Authentication

<table border="1" id="bkmrk-endpoint-method-serv" style="border-collapse: collapse; width: 100%; height: 59.757px;"><colgroup><col style="width: 29.5467%;"></col><col style="width: 45.5054%;"></col><col style="width: 24.9617%;"></col></colgroup><tbody><tr style="height: 29.8785px;"><td style="height: 29.8785px;">**Type**  
</td><td style="height: 29.8785px;">**Token source**  
</td><td style="height: 29.8785px;">**Server**  
</td></tr><tr style="height: 29.8785px;"><td style="height: 29.8785px;">Bearer</td><td style="height: 29.8785px;">[USAPI LOGIN](https://documentation.onindonesia.id/books/usapi/page/login "USAPI LOGIN")</td><td style="height: 29.8785px;">usapi</td></tr></tbody></table>

<table border="1" id="bkmrk-field-data-type-note" style="border-collapse: collapse; width: 915px; height: 1134.28px; border-width: 1px; border-style: solid;" width="144"><colgroup><col span="2" style="width: 9.66667px;" width="72"></col><col style="width: 10.1667px;"></col></colgroup><tbody><tr style="height: 31.7969px;"><td class="align-center" height="20" style="width: 54pt; height: 31.7969px;" width="72">**Field**</td><td class="align-center" style="width: 27pt; height: 31.7969px;" width="72">**Data Type**</td><td class="align-center" style="width: 27pt; height: 31.7969px;">**Notes**</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">package\_info</td><td style="height: 29.7969px;">Array of Objects</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- origin\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- destination\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- service\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- sender\_name</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- sender\_phone</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- sender\_address</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- receiver\_name</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- receiver\_phone</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- receiver\_address</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- goods\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- goods\_desc</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- goods\_weight</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- length</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- width</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- height</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- voucher</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- notes</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- insurance\_exist</td><td style="height: 29.7969px;">Boolean</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- koli</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- origin\_city</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- destination\_city</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- goods\_value</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- estimate\_price</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- packing\_value</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- payment\_type</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">Possible values: <div><div>"CASH", "COC", "TRANSFER", "QRIS"</div></div></td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">department</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">mode</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">pickup\_loc</td><td style="height: 29.7969px;">Object</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- lat</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- long</td><td style="height: 29.7969px;">Float</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- urban\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- sub\_district\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- city\_id</td><td style="height: 29.7969px;">Integer</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">- full\_address</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">phone\_number</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr><tr style="height: 29.7969px;"><td height="20" style="height: 29.7969px;">relation\_mode</td><td style="height: 29.7969px;">String</td><td style="height: 29.7969px;">  
</td></tr></tbody></table>


##### Body request

```json
{
    "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"
}
```

<details id="bkmrk-result-example-body-"><summary>Result example</summary>

<p class="callout info">200 Ok</p>

```javascript
insert code here
```

</details><details id="bkmrk-error-example-body-r"><summary>Error example</summary>

<p class="callout danger">Body request example</p>

```javascript
insert code here
```

</details>