---
title: "Gets a list of territories"
method: POST
path: "/api/v{version}/territories/search"
tags: ["orders"]
---

# Gets a list of territories

`POST /api/v{version}/territories/search`

Gets a list of territories with pagination and filtering support

## Path parameters

- `version` string, required

## Headers

- `X-Tenant` string, required

## Request body

- SearchTerritoriesRequest
  - `advancedSearch` Search
    - `fields` string[], nullable
    - `keyword` string, nullable
  - `keyword` string, nullable
  - `advancedFilter` Filter
    - `logic` string, nullable
    - `filters` Filter[], nullable
    - `field` string, nullable
    - `operator` string, nullable
    - `value` unknown
  - `pageSize` integer
  - `pageNumber` integer
  - `orderBy` string[], nullable
  - `expiration` string, date-span, nullable
  - `id` string, uuid, nullable
  - `deliveryType` DeliveryType
    - `value` string, nullable
  - `includeUnavailable` boolean

## Response `200`

OK

- PagedListTerritoryResponse
  - `items` TerritoryResponse[], nullable
    - `id` string, uuid
    - `code` integer
    - `name` string, nullable
    - `postalCode` string, nullable
    - `level` string, nullable
    - `parentId` string, uuid, nullable
    - `delivery` DeliveryCapability
      - `hasHomeDelivery` boolean
      - `hasPickupPoint` boolean
  - `pageNumber` integer
  - `pageSize` integer
  - `totalCount` integer
  - `totalPages` integer
  - `hasPrevious` boolean
  - `hasNext` boolean

---

[API](https://skmtc.net/zrexpress/apis/zrexpress-api.md) · [All operations](https://skmtc.net/zrexpress/apis/zrexpress-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zrexpress/zrexpress-api/versions/99b075e0b641/schema)
