boscod OpenAPI
  1. Coverage Area
boscod OpenAPI
  • Introduction
  • Shipping label
  • Errors
  • Changelog
  • API
    • Coverage Area
      • Provinces
        GET
      • Cities
        GET
      • Districts
        GET
      • Search Area
        GET
    • Rates
      • List Courier
      • Shipping Fee
      • Shipping Fee (SSE)
    • Orders
      • Create Order
      • Cancel Order
      • Detail Order
      • Tracking
      • Estimation Rates
  • Webhook
  1. Coverage Area

Provinces

Developing
GET
/v1/address/provinces
Retrieves a paginated list of provinces/states in Indonesia with their unique identifiers and names. Results are alphabetically sorted by province name.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
start
integer 
optional
Pagination offset (default: 0)
Example:
0
limit
integer 
optional
Number of records per page (default: 10)
Example:
10

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://demo.boscod.com:4004/v1/address/provinces?start=0&limit=10'

Responses

🟢200Success
application/json
Body
total
integer 
required
data
array [object {2}] 
required
name
string 
required
Province name
id
integer 
required
Province ID
Example
{
    "total": 34,
    "data": [
        {
            "name": "BALI",
            "id": 28
        },
        {
            "name": "BANTEN",
            "id": 2
        },
        {
            "name": "BENGKULU",
            "id": 7
        },
        {
            "name": "D.I. ACEH",
            "id": 8
        },
        {
            "name": "DI YOGYAKARTA",
            "id": 5
        },
        {
            "name": "DKI JAKARTA",
            "id": 1
        },
        {
            "name": "GORONTALO",
            "id": 22
        },
        {
            "name": "JAMBI",
            "id": 9
        },
        {
            "name": "JAWA BARAT",
            "id": 3
        },
        {
            "name": "JAWA TENGAH",
            "id": 4
        }
    ]
}
Previous
Coverage Area
Next
Cities
Built with