Retrieves all sales territories, optionally filtered via OData query options.

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult containing the list of sales territories.

sales_territory
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier
code

Field used for Embedded entity (store there your ERP PK)

string

Max length: 50

description

Description of the territory

string

Required

sales_organization_id

FK of sales_organization. Filled if specific of one SO, empty if can be used by all

globally unique identifier
db_address_id

Address of territory

globally unique identifier
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date
archived

Flag for checking archived

boolean

Response Formats

application/json, text/json

Sample:
{
  "id": "dbd136ba-cb46-408a-93ec-819343b496e0",
  "code": "sample string 2",
  "description": "sample string 3",
  "sales_organization_id": "fd6a7e45-6f8d-4a67-86cf-3c01b54d910f",
  "db_address_id": "d373b41f-494d-4c82-acb8-f48ddfcc156c",
  "modified_dateutc": "2026-11-12T14:29:02.0260967+00:00",
  "archived": true
}

application/xml, text/xml

Sample:
<sales_territory xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <archived>true</archived>
  <code>sample string 2</code>
  <db_address_id>d373b41f-494d-4c82-acb8-f48ddfcc156c</db_address_id>
  <description>sample string 3</description>
  <id>dbd136ba-cb46-408a-93ec-819343b496e0</id>
  <modified_dateutc>2026-11-12T14:29:02.026Z</modified_dateutc>
  <sales_organization_id>fd6a7e45-6f8d-4a67-86cf-3c01b54d910f</sales_organization_id>
</sales_territory>