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 Subdistrict (Desa/Kelurahan) by District id

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

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params
district_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/subdistricts?district_id=1' \
--header 'Accept: application/json'

Responses

🟢200Success
application/json
Body
array of:
id
integer 
required
name
string 
required
postal_code
string 
required
district_id
integer 
required
city_id
integer 
required
province_id
integer 
required
Examples
[
    {
        "id": 17,
        "name": "ALUS ALUS",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 18,
        "name": "ANA AO",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 19,
        "name": "BADEGONG",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 20,
        "name": "BATU RALANG",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 21,
        "name": "BLANG SEBEL",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 22,
        "name": "KEBUN BARU",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 23,
        "name": "LABUHAN BAJAU",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 24,
        "name": "LABUHAN BAKTI",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 25,
        "name": "LABUHAN JAYA",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 26,
        "name": "LATALING",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 27,
        "name": "LATIUNG",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 28,
        "name": "PASIR TINGGI",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 29,
        "name": "PULAU BENGKALAK",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 69330,
        "name": "SEUNEUBOK",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 30,
        "name": "SUAK LAMATAN",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 69333,
        "name": "TRANS BARU",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 69331,
        "name": "TRANS JERNGE",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 69332,
        "name": "TRANS MARANTI",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 31,
        "name": "ULUL MAYANG",
        "postal_code": "23895",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    },
    {
        "id": 69334,
        "name": "ULUL MAYANG (MANYANG)",
        "postal_code": "23891",
        "district_id": 1,
        "city_id": 1,
        "province_id": 1
    }
]
🟢200Success But Empty Result
Previous
Get District by Keyword [Recommended use this]
Next
Get Shipping cost
Built with