tariff_id
, which is valid for 5 minutes. This tariff_id
can be used in the Order Instant API to place an order, ensuring the pricing and courier data remain consistent with the results from the tariff check request.Property Name | Data Type | Required | Notes |
---|---|---|---|
origin | Object | Yes | Origin address details. See table below. |
destination | Object | Yes | Destination address details. See table below. |
stop | Object | No | Optional stop/waypoint details. See table below. |
package | Object | Yes | Package details. See table below. |
vehicle_type | String | Yes | Type of vehicle used for delivery. Allowed values: bike , sedan , mpv , van , truck175 , truck330 , engkelbak , engkelbox , cddbak , cddbox , fusobak , fusobox . |
origin
ObjectProperty Name | Data Type | Required | Notes |
---|---|---|---|
id | String | Yes | The subdistrict_id (from Post Code API or Subistrict API) or the id (from Search Region API). |
lat | String | Yes | Latitude. Must be between -90 and 90 . |
lng | String | Yes | Longitude. Must be between -180 and 180 . |
alamat_lengkap | String | Yes | Full address text. |
alamat_google | String | Yes | Google formatted address. |
destination
ObjectProperty Name | Data Type | Required | Notes |
---|---|---|---|
id | String | Yes | The subdistrict_id (from Post Code API or Subistrict API) or the id (from Search Region API). |
lat | String | Yes | Latitude. Must be between -90 and 90 . |
lng | String | Yes | Longitude. Must be between -180 and 180 . |
alamat_lengkap | String | Yes | Full destination address. |
alamat_google | String | Yes | Destination Google formatted address. |
stop
Object (Optional)Property Name | Data Type | Required | Notes |
---|---|---|---|
id | String | No | The subdistrict_id (from Post Code API or Subistrict API) or the id (from Search Region API) for stop/waypoint. |
lat | String | No | Latitude. Must be between -90 and 90 . |
lng | String | No | Longitude. Must be between -180 and 180 . |
alamat_lengkap | String | No | Full stop point address. |
alamat_google | String | No | Stop point Google formatted address. |
package
ObjectProperty Name | Data Type | Required | Notes |
---|---|---|---|
package_value | Number | Yes | Total value of the package. |
package_items | Array<Object> | Yes | List of items in the package. Each follows the structure below. |
package_items
ObjectProperty Name | Data Type | Required | Notes |
---|---|---|---|
name | String | Yes | Name/description of the item. |
length | Number | Yes | Length of a single item in centimeters. |
width | Number | Yes | Width of a single item in centimeters. |
height | Number | Yes | Height of a single item in centimeters. |
weight | Number | Yes | Weight of a single item in grams. |
quantity | Number | Yes | Number of this item in the shipment. |
[
{
"tariff_id": "018f3b7c-b868-763b-99d5-26b4f714b152",
"nama_kurir": "GO-SEND",
"kode_kurir": "gosend",
"layanan": "Instant",
"kode_service": "instant",
"estimasi": "1-2 jam",
"harga": 25000,
"diskon_persen": 0,
"diskon": 0,
"harga_diskon": 25000,
"is_cod": false,
"is_pickup": true,
"is_dropoff": true,
"logo": "https://api.fastrac.id/assets/images/kurir/gosend.png",
"logo_kotak": "https://api.fastrac.id/assets/images/kurir/kotak/gosend.png",
"bg_color": "#00AA13",
"quotation_id": "some-quotation-id",
"stop_id_pengirim": "some-stop-id",
"stop_id_penerima": "some-stop-id",
"request_at": "2024-05-15T08:00:00.000Z"
}
]
curl --location --request POST '/tariff/instant' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"origin": {
"id": "3171090001", // id_region
"lat": "-6.231144", // range between -90 and 90
"lng": "106.839824", // range between -180 and 180
"alamat_lengkap": "Full address here",
"alamat_google": "Google formatted address"
},
"destination": {
"id": "3172060001", // id_region
"lat": "-6.230059", // range between -90 and 90
"lng": "106.866389", // range between -180 and 180
"alamat_lengkap": "Destination full address",
"alamat_google": "Destination google formatted address"
},
"stop": { //optinal
"id": "3171080002", // id_region
"lat": "-6.258761",// range between -90 and 90
"lng": "106.854823", // range between -180 and 180
"alamat_lengkap": "Stop point full address",
"alamat_google": "Stop point google formatted address"
},
"package": {
"package_value": 100000, //total value package
"package_items": [
{
"name": "Contoh Barang 1",
"length": 50, //cm
"width": 15, //cm
"height": 10, //cm
"weight": 720, //gram
"quantity": 1
},
{
"name": "Contoh Barang 2",
"length": 30, //cm
"width": 20, //cm
"height": 15, //cm
"weight": 150, //gram
"quantity": 2
}
]
}
// "vehicle_type": "bike"
}'
{
"success": true,
"message": "success",
"data": [
{
"tariff_id": "0198c17d-61cc-7136-b782-cfc6c0aa2986",
"logo": "https://apps.fastrac.id/assets/images/logo_kurir/logo_lalamove.png",
"logo_kotak": "https://apps.fastrac.id/assets/images/logo_kurir/logokotak_lalamove.png",
"bg_color": "ee5223",
"dimension": "30x30x50",
"kurir": "LalaMove",
"kode_kurir": "lalamove",
"kode_service": "MOTORCYCLE",
"service": "LALAMOVE: MOTOR",
"berat_max": "Maks.20 Kg",
"estimasi": "Etd: 1-2 Jam",
"harga": 24100,
"diskon_persen": 2,
"diskon": 482,
"total": 23618,
"is_cod": false,
"mapping": "instant",
"quotation_id": "3300849797472616621",
"stop_id_pengirim": "3300891040692994144",
"stop_id_penerima": "3300891040692994145",
"stop_id_penerima_2": "3300891040692994146",
"request_at": "2025-08-19 08:41:16"
}
],
"timestamp": "2025-08-19T08:41:16.532Z"
}