Creates a new territory

Request Information

URI Parameters :

None.

Body Parameters :

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

Request Formats :

application/json, text/json

Sample:
{
  "id": "82bfb64d-33a2-4b6f-a6db-f6f49430f81c",
  "code": "sample string 2",
  "description": "sample string 3",
  "sales_organization_id": "ae0e851d-9a43-4b98-a5c2-e37b1aca05cd",
  "sales_organization_code": "sample string 5",
  "sales_organization": {
    "id": "3e03ccc1-f4c4-4902-8927-e06faff64793",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "db_country_id": "5ba9e3c5-e1d9-4014-8d30-1222c7db0249",
    "db_currency_id": "27c1914c-cf97-4980-b816-6d594c0a1892",
    "db_language_id": "ef53bfce-1b4d-462b-ae94-41aa6cb190de",
    "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": "2026-12-02T04:56:42.3507225+00:00"
  },
  "modified_dateutc": "2026-12-02T04:56:42.3507225+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.