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": "1b7a99e0-4c13-43a3-b1df-ecf5b9abaaac",
  "code": "sample string 2",
  "description": "sample string 3",
  "sales_organization_id": "bb77965f-93d9-4328-bae8-ad36e1c6f44e",
  "db_address_id": "854159bd-efb0-4fb8-8530-e9a688624ae3",
  "modified_dateutc": "2026-09-16T08:37:33.8827056+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>854159bd-efb0-4fb8-8530-e9a688624ae3</db_address_id>
  <description>sample string 3</description>
  <id>1b7a99e0-4c13-43a3-b1df-ecf5b9abaaac</id>
  <modified_dateutc>2026-09-16T08:37:33.882Z</modified_dateutc>
  <sales_organization_id>bb77965f-93d9-4328-bae8-ad36e1c6f44e</sales_organization_id>
</sales_territory>