List Indonesian Districts
Changed onDescription
List Indonesian provinces, cities, and districts as paginated district records. Use districtId when creating a manual order. This feature is in testing and has not been released to production.
Use the existing merchant-tenant Bearer token. Results are sorted lexicographically by districtId. A page beyond the last page returns an empty results array while retaining the totals. No request body is required.
Example: GET /api/region/list?pageNumber=1&pageSize=500
The shared pagination fields are pageNumber, pageSize, totalCount, totalPages, and results.
{"code":"0","msg":null,"data":{"pageNumber":1,"pageSize":500,"totalCount":1,"totalPages":1,"results":[{"districtId":"<actual district ID>","province":"Demo province","city":"Demo city","district":"Demo district"}]},"success":true}
Errors
- INVALID_PARAMETER: pageNumber is below 1, pageSize is outside 1–500, or a parameter has an invalid format.
- INVALID_TOKEN: authentication failed.
- LIMIT_REQUEST: existing request rate limit exceeded.
- SERVER_ERROR: downstream service unavailable or another server error.
Business, authentication, and rate-limit errors use HTTP 200; unexpected exceptions use HTTP 500. Always inspect the response code.
Request
- Base URLhttps://api.desty.app
- Authnone declared. Required headers: Authorization
Query parameters
Page number; defaults to 1, minimum 1.
Page size; defaults to 500, range 1–500.
Headers
Authorization (Only:Bearer <access_token>)
Request body text/plain
Response
successful operation
Changes
- info
endpoint added
- info