Get regions

GET /regions

Get regions with filtering

Headers

  • Bearer token used for authorization

    Minimum length is 1.

  • 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 is 1.

  • code array[string]

    Code(s) to be considered for filtering

    At least 1 element. Minimum length of each is 1.

  • level array[integer]

    Level(s) to be considered for filtering

    At least 1 element. Minimum value of each is 0.

  • parent-id array[string]

    Parent ID(s) to be considered for filtering

    At least 1 element. Minimum length of each is 1.

  • country-code string Required

    Country to be considered for filtering (ISO 3116)

    Minimum length is 1.

Responses

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"
    }
  ]
}