Creates a new territory
Request Information
URI Parameters :
None.
Body Parameters :
sales_territoryName | Description | Type | Additional 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": "c73c716a-7e19-4964-b02f-b9e318be87f3", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "eec05397-5730-4b39-bc3c-106865e87cdd", "sales_organization_code": "sample string 5", "sales_organization": { "id": "1632e024-d758-4a6f-88d1-22e0472f6b63", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "26ae4c90-cffd-42c4-b1e5-f4c5b86ed4b8", "db_currency_id": "4250025a-dfe7-447d-b607-782ddef71dec", "db_language_id": "837ed633-524e-409a-8013-298902cda472", "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-12-27T16:10:31.726929+00:00" }, "modified_dateutc": "2024-12-27T16:10:31.726929+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.