API reference
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.
districtId*integerid from List districts.
Subdistricts of the district.
application/json- response
statusCode*integermessage*stringdata*array<>curl -X GET 'https://sandbox-api.fastrac.example/b2b/region/subdistrict?districtId=0'Example Response
{ "statusCode": 200, "message": "Request successful.", "data": [ { "id": "3174091001", "name": "Tebet Barat", "districtId": 317409, "postCode": 12810 }, { "id": "3174091002", "name": "Tebet Timur", "districtId": 317409, "postCode": 12820 } ]}Was this page helpful?
List districts GET
Returns the districts (kecamatan) of one city. No authentication is required.
Look up a postal code GET
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.