KIRIMPAKET API DOCUMENTATION
  1. Area
KIRIMPAKET API DOCUMENTATION
  • Introduction
  • Area
    • Get Province
      GET
    • Get City by Province id
      GET
    • Get District by City id
      GET
    • Get District by Keyword [Recommended use this]
      GET
    • Get Subdistrict (Desa/Kelurahan) by District id
      GET
  • Get Shipping cost
    POST
  • Create Order
    POST
  • Track Order/AWB
    GET
  1. Area

Get City by Province id

GET
https://api-dev.kirimpaket.id/api/open/location/cities

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
province_id
string 
optional
Example:
1
Header Params
Accept
string 
optional
Example:
application/json

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://api-dev.kirimpaket.id/api/open/location/cities?province_id=1' \
--header 'Accept: application/json'

Responses

🟢200Success
application/json
Body
array of:
id
integer 
required
name
string 
required
province_id
integer 
required
Examples
[
    {
        "id": 7,
        "name": "KAB. ACEH BARAT",
        "province_id": 1
    },
    {
        "id": 12,
        "name": "KAB. ACEH BARAT DAYA",
        "province_id": 1
    },
    {
        "id": 8,
        "name": "KAB. ACEH BESAR",
        "province_id": 1
    },
    {
        "id": 16,
        "name": "KAB. ACEH JAYA",
        "province_id": 1
    },
    {
        "id": 3,
        "name": "KAB. ACEH SELATAN",
        "province_id": 1
    },
    {
        "id": 2,
        "name": "KAB. ACEH SINGKIL",
        "province_id": 1
    },
    {
        "id": 14,
        "name": "KAB. ACEH TAMIANG",
        "province_id": 1
    },
    {
        "id": 6,
        "name": "KAB. ACEH TENGAH",
        "province_id": 1
    },
    {
        "id": 4,
        "name": "KAB. ACEH TENGGARA",
        "province_id": 1
    },
    {
        "id": 5,
        "name": "KAB. ACEH TIMUR",
        "province_id": 1
    },
    {
        "id": 11,
        "name": "KAB. ACEH UTARA",
        "province_id": 1
    },
    {
        "id": 17,
        "name": "KAB. BENER MERIAH",
        "province_id": 1
    },
    {
        "id": 10,
        "name": "KAB. BIREUEN",
        "province_id": 1
    },
    {
        "id": 13,
        "name": "KAB. GAYO LUES",
        "province_id": 1
    },
    {
        "id": 15,
        "name": "KAB. NAGAN RAYA",
        "province_id": 1
    },
    {
        "id": 9,
        "name": "KAB. PIDIE",
        "province_id": 1
    },
    {
        "id": 18,
        "name": "KAB. PIDIE JAYA",
        "province_id": 1
    },
    {
        "id": 1,
        "name": "KAB. SIMEULUE",
        "province_id": 1
    },
    {
        "id": 19,
        "name": "KOTA BANDA ACEH",
        "province_id": 1
    },
    {
        "id": 21,
        "name": "KOTA LANGSA",
        "province_id": 1
    },
    {
        "id": 22,
        "name": "KOTA LHOKSEUMAWE",
        "province_id": 1
    },
    {
        "id": 20,
        "name": "KOTA SABANG",
        "province_id": 1
    },
    {
        "id": 23,
        "name": "KOTA SUBULUSSALAM",
        "province_id": 1
    }
]
🟢200Success But Empty Result
Previous
Get Province
Next
Get District by City id
Built with