API pricing for instant delivery services is flexible and scalable, with a tiered structure based on the volume of requests or deliveries
Our instant delivery API uses a different endpoint URL compared to the express API. It's important to ensure you are using the correct base URL for your requests. Additionally, the response format from the instant API has some differences compared to the production API. Please review the documentation for the specific details on these differences to ensure proper integration and handling of the responses.
| Param | Type | Values | Nullable | Remark |
|---|---|---|---|---|
service | array | gosend, borzo, grab_express | yes | Product type |
item_price | int | no | Goods value | |
origin | object | no | Origin object | |
destination | object | no | Receiver object | |
weight | int | no | Weight of parcels, in grams. The maximum amount is 40.000gr / 40kg | |
vehicle | string | motor (default), mobil | no | Vehicle option for shipment |
timezone | string | WIB (default), WIT, WITA | no | Timezone, due limited coverage area |
origin & destination object| Param | Type | Nullable | Remark |
|---|---|---|---|
lat | float | no | Latitude |
long | float | no | Longitude |
address | string | no | Complete address details |
curl --location 'https://tdev.kiriminaja.com/api/mitra/v4/instant/pricing' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data '{
"service" : ["gosend", "borzo", "grab_express"],
"item_price" : 20000,
"origin" : {
"lat" : -7.8032616,
"long" : 110.350244,
"address" : "Wirobrajan, Kota Yogyakarta, Daerah Istimewa Yogyakarta, Indonesia"
},
"destination" : {
"lat" : -7.734943400000001,
"long" : 110.405355,
"address" : "Minomartani, Kec. Ngaglik, Kabupaten Sleman, Daerah Istimewa Yogyakarta, Indonesia"
},
"weight" : 2,
"vehicle" : "motor",
"timezone" : "WIB"
}'
{
"status": true,
"text": "success",
"method": "mitra_pricing",
"result": [
{
"name": "gosend",
"costs": [
{
"service_type": "instant",
"estimation": "1-2 hours",
"price": {
"admin_fee": 1000,
"shipping_costs": 54000,
"total_price": 55000
}
},
{
"service_type": "sameday",
"estimation": "6-8 hours",
"price": {
"admin_fee": 1000,
"shipping_costs": 31500,
"total_price": 32500
}
}
],
"insurances": [
{
"value": 500,
"type": "silver"
},
{
"value": 1000,
"type": "gold"
}
]
},
{
"name": "borzo",
"costs": [
{
"service_type": "instant",
"estimation": null,
"price": {
"admin_fee": 1500,
"shipping_costs": 8800,
"total_price": 10300
}
}
],
"insurances": [
{
"value": 500,
"type": "silver"
},
{
"value": 1000,
"type": "gold"
}
]
}
],
"code": null
}