Langsung ke konten utama
GET
/
v3
/
pages
/
{page_unique_id}
/
locations
/
subdistricts
List HTML Mode delivery subdistricts
curl --request GET \
  --url https://api.scalev.com/v3/pages/{page_unique_id}/locations/subdistricts \
  --header 'X-Scalev-Page-Api-Key: <x-scalev-page-api-key>'
{
  "data": [
    {
      "id": 123,
      "subdistrict_name": "<string>",
      "city_name": "<string>",
      "province_name": "<string>",
      "display": "Cempaka Putih, Kota Jakarta Pusat, DKI Jakarta"
    }
  ],
  "is_paginated": true,
  "has_next": true,
  "has_previous": true,
  "next_cursor": "<string>",
  "previous_cursor": "<string>",
  "page_size": 123
}

Header

X-Scalev-Page-Api-Key
string
wajib

Publishable page public API key for the page_unique_id path page. Storefront public API keys are not accepted on page-scoped public routes.

Parameter Path

page_unique_id
string
wajib

Public page unique ID.

Contoh:

"page_540f48019f525f41"

Parameter Query

city_id

City ID from /locations/cities.

Optional subdistrict name search within the selected city.

Respons

Subdistrict list

data
object[]
wajib
is_paginated
boolean
wajib
has_next
boolean
has_previous
boolean
next_cursor
string | null
previous_cursor
string | null
page_size
integer