Skip to main content

Shipping Rates

Shipping Rates​

Calculates shipping rates from all couriers for a single route. Each successful call costs Rp 5, deducted from your balance.

GET /courier/v2/rates

Query Parameters​

ParameterTypeRequiredDescription
origin_district_codestringnoOrigin district code. Required if sender_address_id is not sent.
sender_address_idstringnoSaved sender address ID. Required if origin_district_code is not sent.
destination_district_codestringyesDestination district code (from the Locations endpoints).
weightintegeryesPackage weight in grams (min 1).
item_valueintegernoItem value in Rupiah (basis for insurance calculation).
insurancebooleannoSet true to include the insurance fee in the rate.
sender_typestringnoShipping method: picked up (courier pickup, default) or dropped (drop-off at an outlet). dropped only shows couriers that accept drop-off.
lengthintegernoPackage length (cm) for volumetric weight calculation.
widthintegernoPackage width (cm).
heightintegernoPackage height (cm).

Example Request​

curl -X GET 'https://use.api.co.id/courier/v2/rates?origin_district_code=3374010&destination_district_code=3173040&weight=1000' \
-H 'x-api-co-id: YOUR_API_KEY'

Example Response​

{
"is_success": true,
"message": "OK",
"data": {
"quote_id": "qt_9f2a7c1b8e3d4a5f",
"rates": [
{
"courier_code": "ninja",
"courier_name": "Ninja Xpress",
"courier_image": "https://use.api.co.id/assets/couriers/ninja.png",
"service_code": "STANDARD",
"service_name": "Standard",
"service_type": "regular",
"etd": "2 - 3 hari",
"est": "2026-08-10",
"is_cod": false,
"normal_price": 12000,
"is_cheapest": true,
"is_fastest": false,
"price": 12000,
"handling_fee": 2000,
"insurance_fee": 0,
"total_price": 14000
}
]
}
}
  • Save the quote_id — it is required when creating an order so the price is locked in.
  • If your balance is insufficient for the Rp 5 fee, the endpoint returns 402.
  • Send origin_district_code or sender_address_id; one of them is required.
  • The shipping method (sender_type) is tied to the quote_id. For dropped, picked_up_time is not needed when creating the order. Check each courier's drop-off support via sender_types in the List Couriers endpoint.
info

COD (cash on delivery) is coming soon. For now, all rates and orders are non-COD (is_cod: false).

Try it out​

  • GET/courier/v2/ratesShipping Rates
Was this page helpful?