check_rates
Indonesia shipping courier rates — THE tool to call FIRST. Given an origin and a destination (each by 5-digit Indonesian postal code OR a Biteship area_id), the parcel items (name, value IDR, weight in GRAMS, quantity), and optionally which couriers to compare, it returns every available courier service (JNE, J&T, SiCepat, AnterAja, Gojek, Grab, Ninja, Pos Indonesia, Lion Parcel and more) with its shipping fee (IDR), estimated duration and service type, plus which one is cheapest — the Indonesia killer feature (cek ongkir). Read-only: quotes only, creates nothing and spends nothing. Bring your own Biteship API key via header x-biteship-key.
Parameters6
| origin_postal_code | string | optional | Origin 5-digit Indonesian postal code the parcel ships FROM. Provide this OR origin_area_id. |
| origin_area_id | string | optional | Biteship area_id for the origin (from the Maps/Areas lookup). Alternative to origin_postal_code. |
| destination_postal_code | string | optional | Destination 5-digit Indonesian postal code the parcel ships TO. Provide this OR destination_area_id. |
| destination_area_id | string | optional | Biteship area_id for the destination. Alternative to destination_postal_code. |
| couriers | string | optional | Comma-separated courier codes to compare, e.g. "jne,jnt,sicepat,anteraja,gojek,grab". Optional — defaults to a broad set of popular Indonesian couriers. |
| items | array | required | Parcel line items. At least one. Each: { name (required), value (required, IDR), weight (required, GRAMS), quantity (required int), length?/width?/height? (cm) }. |
Raw schema
{
"type": "object",
"properties": {
"origin_postal_code": {
"type": "string",
"description": "Origin 5-digit Indonesian postal code the parcel ships FROM. Provide this OR origin_area_id."
},
"origin_area_id": {
"type": "string",
"description": "Biteship area_id for the origin (from the Maps/Areas lookup). Alternative to origin_postal_code."
},
"destination_postal_code": {
"type": "string",
"description": "Destination 5-digit Indonesian postal code the parcel ships TO. Provide this OR destination_area_id."
},
"destination_area_id": {
"type": "string",
"description": "Biteship area_id for the destination. Alternative to destination_postal_code."
},
"couriers": {
"type": "string",
"description": "Comma-separated courier codes to compare, e.g. \"jne,jnt,sicepat,anteraja,gojek,grab\". Optional — defaults to a broad set of popular Indonesian couriers."
},
"items": {
"type": "array",
"description": "Parcel line items. At least one. Each: { name (required), value (required, IDR), weight (required, GRAMS), quantity (required int), length?/width?/height? (cm) }.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Product name."
},
"value": {
"type": "number",
"description": "Item value in IDR (used for insurance / COD)."
},
"weight": {
"type": "number",
"description": "Item weight in GRAMS (g). e.g. 1000 = 1 kg. Required."
},
"quantity": {
"type": "number",
"description": "Quantity (integer >= 1)."
},
"length": {
"type": "number",
"description": "Item length in CENTIMETRES (cm). Optional."
},
"width": {
"type": "number",
"description": "Item width in CENTIMETRES (cm). Optional."
},
"height": {
"type": "number",
"description": "Item height in CENTIMETRES (cm). Optional."
}
},
"required": [
"name",
"value",
"weight",
"quantity"
]
}
}
},
"required": [
"items"
]
}