Creates a new contact object
Request Information
URI Parameters :
None.
Body Parameters :
contactName | Description | Type | Additional information |
---|---|---|---|
id |
Primary key |
globally unique identifier |
Required |
firstname |
Firstname of the contact |
string |
Max length: 50 |
lastname |
Lastname of the contact. If you have one single field available for firstname+lastname then use Lastname |
string |
Required Max length: 50 |
company_id |
Company of the contact |
globally unique identifier |
Optionally required : company_id,company_code or company must be provided |
company_code |
Embedded entity "company" using ERP PK when adding/updating contact |
string |
Optionally required : company_id,company_code or company must be provided |
company |
Embedded entity "company" when adding/updating contact |
company |
Optionally required : company_id,company_code or company must be provided |
db_language_id |
Language of the contact.If empty, will use the default on the system |
globally unique identifier | |
db_language_code |
Language code entity using international isocode when adding/updating contact |
string | |
db_title_id |
The title of the contact |
globally unique identifier | |
archived |
Archive this contact to not have it anymore on the search |
boolean | |
functions |
Function of the contact (ServiceManager,...) |
string |
Max length: 64 |
e_login |
Login of the contact (if have access to ServiceDesk) |
string |
Max length: 50 |
e_password |
Password in clear text of the contact (if have access to ServiceDesk) |
string |
Max length: 50 |
notes |
Notes/Remark field |
string | |
birthdate |
Birthday date |
date | |
create_date |
Creation date+time |
date | |
phone |
Phone number of the contact |
string |
Max length: 50 |
mobile |
a number of the contact |
string |
Max length: 50 |
|
string |
Max length: 250 |
|
skype |
skype |
string |
Max length: 250 |
private_phone |
Private phone number of the contact |
string |
Max length: 50 |
private_mobile |
Private mobile number of the contact |
string |
Max length: 50 |
private_email |
Private email |
string |
Max length: 250 |
reference_back_office |
Field used for Embedded entity (store there your ERP PK) |
string |
Max length: 50 |
modified_dateutc |
Readonly system field managed by database, filled with GetUtcDate when adding,updating |
date |
Request Formats :
application/json, text/json
{ "id": "5a50b71e-f46e-41af-a3ef-4192ccc83a67", "firstname": "sample string 2", "lastname": "sample string 3", "company_id": "d1661920-d08d-42a9-bba2-271d97d99fa8", "company_code": "sample string 5", "company": { "id": "76ba91f4-aba2-4f49-9143-6194c1cd3fb8", "is_client": true, "is_supplier": true, "archived": true, "name": "sample string 5", "notes": "sample string 6", "create_date": "2024-12-21T17:05:29.9091631+00:00", "sales_territory_id": "527792ac-f765-4b23-a9e4-b3b2019de1bf", "sales_territory_code": "sample string 9", "sales_territory": { "id": "0531e88f-7dc0-440f-b7f6-e0d9ece50da3", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "6066553f-4b25-4af5-9098-f279e061470d", "sales_organization_code": "sample string 5", "sales_organization": { "id": "81e01de9-8a90-43b0-9389-fb46160a81f4", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "6350e746-49f5-4472-b567-73149ce076e9", "db_currency_id": "b9718dc7-98a4-4754-9cd4-12bcdf7e161d", "db_language_id": "f92af09e-7217-4ed7-a6d3-d4d77bca7a9f", "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-21T17:05:29.9091631+00:00" }, "modified_dateutc": "2024-12-21T17:05:29.9091631+00:00" }, "marketing_segment_id": "17a28255-45f3-4a76-8fcc-f3fd2e037dd4", "marketing_segment_code": "sample string 11", "sales_organization_id": "0897406a-cbac-41c2-827b-a9f43a2a6315", "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": "42cd60a8-4a36-4b23-bf8d-e9eb45b72b6d", "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": "79bf1482-c86c-4f67-844c-6a38860e3f4c", "db_country_code": "sample string 28", "feelist_id": "239d9eb6-770c-434c-bc3d-22ed65b3e04f", "feelist_reference_back_office": "sample string 30", "feelist": { "id": "30dfa925-284b-4f42-be12-38b4006d8f60", "name": "sample string 2", "description": "sample string 3", "is_default": true, "default_price": 1.0, "sales_organization_id": "c6cd90e9-51c3-4d64-a42d-c4b600f16c01", "sales_organization_code": "sample string 6", "reference_back_office": "sample string 7", "modified_dateutc": "2024-12-21T17:05:29.9091631+00:00", "db_currency_id": "2799720c-c7f5-4fac-8686-678cb0599367", "db_currency_code": "sample string 10" }, "company_type_id": "8dee2d16-19d3-4f37-aabc-bcfc377c889d", "company_type_name": "sample string 32", "company_type": { "id": "dda0532d-c910-4bec-b61c-cfd1280083b9", "name": "sample string 2", "description": "sample string 3", "sales_organization_id": "82f91c4d-5d96-4025-8cdf-2ae3d10969dc", "sales_organization_code": "sample string 5" }, "db_language_id": "44c9a6d0-6749-48f7-976f-2c1d467f3925", "db_language_code": "sample string 34", "code": "sample string 35", "article_price_label_id": "dcc31eae-464a-4d9c-9258-3933a0ec6aa3", "article_price_label_code": "sample string 37", "db_payment_method_id": "dedb475f-6b6a-4c35-9bb0-a569ba36b503", "db_payment_method_reference_back_office": "sample string 39", "db_payment_methods": { "id": "b1c23682-43aa-492f-8e21-99cde19eb77a", "name": "sample string 2", "description": "sample string 3", "reference_back_office": "sample string 4", "activated": true, "modified_dateutc": "2024-12-21T17:05:29.9091631+00:00" }, "company_sector_id": "e67d8831-03d4-4641-b2c0-3e4854533842", "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": "dbf16c96-9fa1-491d-9543-8953490bdc07", "service_manager_user_code": "sample string 52", "finance_manager_user_id": "1b27a934-743e-4e64-b145-c2b88b334fdc", "finance_manager_user_code": "sample string 54", "account_manager_user_id": "dbe6197c-f173-448c-b96b-130dbf03670d", "account_manager_user_code": "sample string 56", "company_status_id": "8cf82279-e1df-400e-ba04-b07aa0102b59", "invoice_email_to": "sample string 58", "modified_dateutc": "2024-12-21T17:05:29.9091631+00:00", "id2": 60 }, "db_language_id": "715b9098-f549-42e3-a42d-9815f3c4cb6b", "db_language_code": "sample string 7", "db_title_id": "39004325-1efc-44bb-8799-3781c3ca1bcf", "archived": true, "functions": "sample string 10", "e_login": "sample string 11", "e_password": "sample string 12", "notes": "sample string 13", "birthdate": "2024-12-21T17:05:29.9091631+00:00", "create_date": "2024-12-21T17:05:29.9091631+00:00", "phone": "sample string 16", "mobile": "sample string 17", "email": "sample string 18", "skype": "sample string 19", "private_phone": "sample string 20", "private_mobile": "sample string 21", "private_email": "sample string 22", "reference_back_office": "sample string 23", "modified_dateutc": "2024-12-21T17:05:29.9091631+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.