Retrieves all territories

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult

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
sales_organization_code

Embedded entity "sales_organization" using ERP PK when adding/updating company_type

string
sales_organization

Embedded entity "sales_organization" when adding/updating company_type

sales_organization
modified_dateutc

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

date

Response Formats

application/json, text/json

Sample:
{
  "id": "48e53ca0-fb42-4ef0-b629-1f4fc6abfe0f",
  "code": "sample string 2",
  "description": "sample string 3",
  "sales_organization_id": "54c5ffe3-0e89-4d85-8a9d-20e03b6574b5",
  "sales_organization_code": "sample string 5",
  "sales_organization": {
    "id": "8984f3fb-dad6-417e-8ea1-9b26dff9b53f",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "db_country_id": "997dfb29-d3ae-46a6-afc2-0f536c31d72b",
    "db_currency_id": "c1367130-a554-48ab-a3ac-1d86487ea9fe",
    "db_language_id": "bd8b7d55-3154-4d77-99d1-23df65e155aa",
    "accountancy_code": "sample string 8",
    "archived": true,
    "default_unit_of_measure_system_type": "sample string 10",
    "street": "sample string 11",
    "street2": "sample string 12",
    "street_number": "sample string 13",
    "zip": "sample string 14",
    "city": "sample string 15",
    "email": "sample string 16",
    "phone": "sample string 17",
    "fax": "sample string 18",
    "url": "sample string 19",
    "vat_reg_code": "sample string 20",
    "modified_dateutc": "2024-03-27T08:40:17.8590997+00:00"
  },
  "modified_dateutc": "2024-03-27T08:40:17.8590997+00:00"
}