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": "5c1308fe-5625-4af3-9f4a-a2c9c39ab021",
  "code": "sample string 2",
  "description": "sample string 3",
  "sales_organization_id": "1e685f08-99e8-4c9c-b80f-8432a944acda",
  "sales_organization_code": "sample string 5",
  "sales_organization": {
    "id": "8fa22b1e-d7d3-464b-9be3-28c84d8eacc5",
    "code": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "db_country_id": "97a0d402-df6b-40dd-8e3d-1b8f26b1b582",
    "db_currency_id": "46194f97-1f0c-4d21-b858-4f94bf9f90e8",
    "db_language_id": "aa44518b-c763-4485-92b6-b8c30bc2af51",
    "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-04-22T01:50:39.710164+00:00"
  },
  "modified_dateutc": "2024-04-22T01:50:39.710164+00:00"
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.