Skip to Content
FastracDocs
API reference

Look up a postal code

GET
/b2b/region/postCode

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.

Query Parameters

postCode*string

Five-digit Indonesian postal code.

Match^[0-9]{5}$

Response Body

Subdistricts with this postal code.

application/json
  1. response
statusCode*integer
message*string
data*array<>
Example Request
curl -X GET 'https://sandbox-api.fastrac.example/b2b/region/postCode?postCode=string'
Example Response
{  "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?