Creates a new company

Request Information

URI Parameters :

None.

Body Parameters :

company
NameDescriptionTypeAdditional information
id

Primary Key

globally unique identifier

Required

is_client

SALES : Indicate if can be used for ordering

boolean
is_supplier

SERVICES : indicate if this company is a supplier

boolean
archived

Archive this company to not have it anymore on the search

boolean
name

string

Required

Max length: 64

notes

Notes/Remark field

string
create_date

Creation date+time

date
sales_territory_id

Territory of the company (Sales+Services).If more than one sales_territory exists, then it must be filled

globally unique identifier
sales_territory_code

Embedded entity "sales_territory" using ERP PK when adding/updating company

string
sales_territory

Embedded entity "sales_territory" using node when adding/updating company

sales_territory
marketing_segment_id

Marketing Segment of the company (Sales (Visit frequency logic) +Services (Planning Jobs To Be Planned) )

globally unique identifier
marketing_segment_code

Embedded entity "marketing_segment" using ERP PK when adding/updating company

string
marketing_segment

Embedded entity "marketing_segment" using node when adding/updating company

marketing_segment
sales_organization_id

Organization on which belongs the company.If more than one sales_organization exists, then it must be filled

globally unique identifier
sales_organization_code

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

string
sales_organization

Embedded entity "sales_organization" using node when adding/updating company

sales_organization
company_sales_status_code

Foreign key of company_sales_status using code. Use "Normal,CreditRisk, BlockedbyCM or OrderBlocked"

string
vat_reg_code

VAT number

string

Max length: 50

is_working_address

Services : If False, you cannot create project/installation on this company.Default=true

boolean
parent_id

Reference to a parent company (in case of Child/Parent) when adding/updating company

globally unique identifier
parent_company_code

Embedded entity "company" for parent (in case of Child/Parent) using ERP PK when adding/updating company

string
parent_company

Embedded entity "company" for parent (in case of Child/Parent) when adding/updating company

company
phone

Phone number of the company

string

Max length: 50

fax

Fax number of the company

string

Max length: 50

url

URL of the company website

string

Max length: 255

email

email

string

Max length: 250

street

Address:Street

string

Max length: 100

street_number

Address:Street Number. If your ERP doesn't have this field, then only use field "street" and disable the street number on Odyssee/Admin/Impl Settings/Global Settings:Hide Street Number

string

Max length: 50

city

Address:City

string

Max length: 50

zip

Address:Zip

string

Max length: 50

db_country_id

Address:Country

globally unique identifier
db_country_code

Address:CountryCode entity using international code when adding/updating company

string
feelist_id

FeeList activated for the company (On Service, Feelist determines the price of the invoicable timesheets)

globally unique identifier
feelist_reference_back_office

Embedded entity "feelist" using ERP PK when adding/updating company

string
feelist

Embedded entity "feelist" using node when adding/updating company

feelist
company_type_id

Company Type

globally unique identifier
company_type_name

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

string
company_type

Embedded entity "company_type" using node when adding/updating company

company_type
db_language_id

Language of the company.If empty, will use the default on the system

globally unique identifier
db_language_code

Language code entity using international isocode when adding/updating company

string
code

Field used for Embedded entity (store there your ERP PK)

string

Max length: 50

article_price_label_id

Foreign key of article price label

globally unique identifier
article_price_label_code

Embedded entity "article price label" using ERP PK when adding/updating

string
article_price_label

Embedded entity "article price label" when adding/updating

article_price_label
db_payment_method_id

Embedded entity "db payment methods" using ERP PK when adding/updating company

globally unique identifier
db_payment_method_reference_back_office

Embedded entity "db payment methods" using ERP PK when adding/updating company

string
db_payment_methods

Embedded entity "db payment methods" using ERP PK when adding/updating company

db_payment_methods
company_sector_id

Foreign key to company_sector

globally unique identifier
company_sector_code

Embedded code for the company_sector using ERP PK when adding/updating

string
company_sector

Embedded entity for the company_sector using the key from an external system when adding/updating object

company_sector
is_lead

Indicate that company is not already a customer

boolean
is_subcontractor

For Service, that company is one of your subcontractors

boolean
latitude

Decimal coordonate for the latitude. (-1;-1) means invalid and (0;0) means not already geo-encoded

decimal number
longitude

Decimal coordonate for the longitude. (-1;-1) means invalid and (0;0) means not already geo-encoded

decimal number
street2

Additional information on the address not part of the postal address

string
bic_code

bic code

string
specialities

specialities

string
register_number

register_number

string
register_city

register_city

string
bankaccount

Bank account of the company.

string
mobile

Mobile number of the company

string

Max length: 50

service_manager_user_id

ID of the service manager. Auto selected user when creating location, installation. Used also inside communication and tags

globally unique identifier
service_manager_user_code

Embedded code of the service manager. Auto selected user when creating location, installation. Used also inside communication and tags

string
service_manager_user

Embedded entity of the service manager. Auto selected user when creating location, installation. Used also inside communication and tags

user
finance_manager_user_id

ID of the finance manager. Only used inside communication and tags

globally unique identifier
finance_manager_user_code

Embedded code of the finance manager. Only used inside communication and tags

string
finance_manager_user

Embedded entity of the finance manager. Only used inside communication and tags

user
account_manager_user_id

ID of the account manager. Only used inside communication and tags

globally unique identifier
account_manager_user_code

Embedded code of the account manager. Only used inside communication and tags

string
account_manager_user

Embedded entity of the account manager. Only used inside communication and tags

user
company_status_id

Company Status

globally unique identifier
invoice_email_to

Email to send invoice

string
modified_dateutc

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

date
id2

Internal ID (numeric)

integer

Request Formats :

application/json, text/json

Sample:
{
  "id": "65a445c9-2abb-4526-9b57-b4a3ce4b7543",
  "is_client": true,
  "is_supplier": true,
  "archived": true,
  "name": "sample string 5",
  "notes": "sample string 6",
  "create_date": "2022-12-05T04:46:54.8396225+01:00",
  "sales_territory_id": "34754209-d1b9-4583-810e-6a4cbfe76e53",
  "sales_territory_code": "sample string 9",
  "sales_territory": {
    "id": "e2fe3e7a-dfb1-45f3-b3d8-b4d255e08c04",
    "code": "sample string 2",
    "description": "sample string 3",
    "sales_organization_id": "0401cc39-77ac-4158-b56e-dc01191fcf68",
    "sales_organization_code": "sample string 5",
    "sales_organization": {
      "id": "466df641-4520-41f8-b4f0-cf7ae90dae20",
      "code": "sample string 2",
      "name": "sample string 3",
      "description": "sample string 4",
      "db_country_id": "441d99e3-ffa4-4806-9f71-970f2bc2a085",
      "db_currency_id": "8fa083f8-1026-4831-b274-d95b3565f7fc",
      "db_language_id": "372eccb4-fb20-4a64-8b0d-ce3cb3141655",
      "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": "2022-12-05T04:46:54.8396225+01:00"
    },
    "modified_dateutc": "2022-12-05T04:46:54.8396225+01:00"
  },
  "marketing_segment_id": "48bc8c31-47db-4731-8a31-2083a33c3fc6",
  "marketing_segment_code": "sample string 11",
  "sales_organization_id": "09ab3dbd-ea33-4f71-a3f6-ddffad295597",
  "sales_organization_code": "sample string 13",
  "company_sales_status_code": "sample string 14",
  "vat_reg_code": "sample string 15",
  "is_working_address": true,
  "parent_id": "ae630d79-be48-42ea-9930-7fff59e64898",
  "parent_company_code": "sample string 18",
  "phone": "sample string 19",
  "fax": "sample string 20",
  "url": "sample string 21",
  "email": "sample string 22",
  "street": "sample string 23",
  "street_number": "sample string 24",
  "city": "sample string 25",
  "zip": "sample string 26",
  "db_country_id": "e5489ff8-8f2f-4e52-a4a1-38dddf771b09",
  "db_country_code": "sample string 28",
  "feelist_id": "38ad18db-c8f7-4011-a30f-8c988b84b068",
  "feelist_reference_back_office": "sample string 30",
  "feelist": {
    "id": "2c302483-a4c3-4e5e-bf00-4af569344e1a",
    "name": "sample string 2",
    "description": "sample string 3",
    "is_default": true,
    "default_price": 1.0,
    "sales_organization_id": "8522689e-278c-473a-accc-15800a9869c3",
    "sales_organization_code": "sample string 6",
    "reference_back_office": "sample string 7",
    "modified_dateutc": "2022-12-05T04:46:54.8396225+01:00"
  },
  "company_type_id": "b8ac8ae6-8623-46ea-8544-052c30bf2b59",
  "company_type_name": "sample string 32",
  "company_type": {
    "id": "e83ad02a-9662-42c3-bf76-64dcab151fa0",
    "name": "sample string 2",
    "description": "sample string 3",
    "sales_organization_id": "a77a0db3-b9fb-470c-8c29-ca9c48cc5002",
    "sales_organization_code": "sample string 5"
  },
  "db_language_id": "108d4fce-6fa8-4c4a-a3f2-f67ad30b9a3f",
  "db_language_code": "sample string 34",
  "code": "sample string 35",
  "article_price_label_id": "2f6e132e-f1ec-4af5-bcda-cb339082381d",
  "article_price_label_code": "sample string 37",
  "db_payment_method_id": "37368fb8-177a-476c-9cdb-b2057a2c94d5",
  "db_payment_method_reference_back_office": "sample string 39",
  "db_payment_methods": {
    "id": "68621c86-380e-4372-b9bc-4e88eb0993e8",
    "name": "sample string 2",
    "description": "sample string 3",
    "reference_back_office": "sample string 4",
    "activated": true,
    "modified_dateutc": "2022-12-05T04:46:54.8396225+01:00"
  },
  "company_sector_id": "4101e473-cabe-4707-a1fe-c0c2638ffc6a",
  "company_sector_code": "sample string 41",
  "is_lead": true,
  "is_subcontractor": true,
  "latitude": 1.0,
  "longitude": 1.0,
  "street2": "sample string 44",
  "bic_code": "sample string 45",
  "specialities": "sample string 46",
  "register_number": "sample string 47",
  "register_city": "sample string 48",
  "bankaccount": "sample string 49",
  "mobile": "sample string 50",
  "service_manager_user_id": "12e2f803-ffb2-43e7-a1eb-39d33a81d10f",
  "service_manager_user_code": "sample string 52",
  "finance_manager_user_id": "0d966b4d-b600-4971-a3fe-a26c2709743b",
  "finance_manager_user_code": "sample string 54",
  "account_manager_user_id": "6c1b96d1-f9ae-4fcd-9e2d-135cb0f4af43",
  "account_manager_user_code": "sample string 56",
  "company_status_id": "196adce1-26d5-4bf6-9661-8b968aef598e",
  "invoice_email_to": "sample string 58",
  "modified_dateutc": "2022-12-05T04:46:54.8396225+01:00",
  "id2": 60
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.