Look up a postal code
Returns every subdistrict that uses a postal code, with its full region hierarchy. One postal code often covers several subdistricts, so let the user pick one.
No authentication is required. Note that subdistrictId is a number here; send it as a
string in rate requests.
postCode*stringFive-digit Indonesian postal code.
^[0-9]{5}$Subdistricts with this postal code.
application/json- response
statusCode*integermessage*stringdata*array<>curl -X GET 'https://sandbox-api.fastrac.example/b2b/region/postCode?postCode=string'{ "statusCode": 200, "message": "Request successful.", "data": [ { "provinceId": 32, "provinceName": "Jawa Barat", "cityId": 3273, "cityName": "Kota Bandung", "districtId": 327301, "district": "Sumur Bandung", "subdistrictId": 3273011003, "subdistrict": "Braga", "postCode": 40111 }, { "provinceId": 32, "provinceName": "Jawa Barat", "cityId": 3273, "cityName": "Kota Bandung", "districtId": 327301, "district": "Sumur Bandung", "subdistrictId": 3273011004, "subdistrict": "Merdeka", "postCode": 40111 } ]}Was this page helpful?
List subdistricts GET
Returns the subdistricts (kelurahan/desa) of one district. The `id` of a subdistrict is the `subdistrictId` you send in rate requests. No authentication is required.
List couriers GET
Returns the couriers you can quote, with branding for your checkout UI. Use `code` as `courierCode` in **Get shipping rates**. A courier is usable only when `isOperational` is `true` (the courier is enabled and has at least one enabled service). Requires the `READ_SHIPPING_RATES` permission. Results are cached for up to 15 minutes.