Headers
-
X-Correlation-Id string
Unique identifier to allow referencing a particular transaction or event chain
Minimum length is
1
.
Query parameters
-
id array[string]
ID(s) to be considered for filtering
At least
1
element. Minimum length of each is1
. -
code array[string]
Code(s) to be considered for filtering
At least
1
element. Minimum length of each is1
. -
level array[integer]
Level(s) to be considered for filtering
At least
1
element. Minimum value of each is0
. -
parent-id array[string]
Parent ID(s) to be considered for filtering
At least
1
element. Minimum length of each is1
. -
Country to be considered for filtering (ISO 3116)
Minimum length is
1
.
GET
/regions
curl \
-X GET https://api.development.pexipengage.com/enterprises/acme/regions?country-code=string \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c" \
-H "X-Correlation-Id: a4f0048e-c983-11ed-afa1-0242ac120002"
Response examples (200)
{
"data": [
{
"code": "9000",
"countryCode": "BE",
"id": "123",
"name": "New York",
"level": 42,
"parentId": "123"
}
]
}