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": "8063be50-b669-4b6f-8d32-2c76d8b4cfc1", "firstname": "sample string 2", "lastname": "sample string 3", "company_id": "789b5a88-c2f1-4bb8-bbf5-65754cabf5ee", "company_code": "sample string 5", "company": { "id": "c0293910-958d-4b88-b4c7-7879a2adfe6b", "is_client": true, "is_supplier": true, "archived": true, "name": "sample string 5", "notes": "sample string 6", "create_date": "2024-04-18T19:03:30.5170529+00:00", "sales_territory_id": "260e678e-cac5-4d83-973a-22ed0f98556c", "sales_territory_code": "sample string 9", "sales_territory": { "id": "f21a6c34-0b02-41e1-8a69-e251cf02f22e", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "402fe92f-9a12-4b5b-b603-29af3ef9e848", "sales_organization_code": "sample string 5", "sales_organization": { "id": "d0491df7-1558-48ca-983f-ef73d6f782fb", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "c8ca1404-d45c-4433-a0e1-1ef51cbca90d", "db_currency_id": "d1757294-0a4a-49b9-bbae-b408677b629e", "db_language_id": "c4ef47cd-9aa7-4137-a59b-f22b498c1b2a", "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-18T19:03:30.5170529+00:00" }, "modified_dateutc": "2024-04-18T19:03:30.5170529+00:00" }, "marketing_segment_id": "8858f1b2-748e-47ea-85a1-8a738a7d10c2", "marketing_segment_code": "sample string 11", "sales_organization_id": "5cdb3ba7-edd6-4f3b-a6f1-9131eb023d96", "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": "316e8c40-b4ab-4f16-9de5-c342ebb911b5", "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": "4e03443d-3fa9-4bd1-897f-082b1628a0e0", "db_country_code": "sample string 28", "feelist_id": "04947c1e-91b6-49e8-897b-97bcc60f906a", "feelist_reference_back_office": "sample string 30", "feelist": { "id": "325da88f-853a-45d4-810a-2a2adfd07f80", "name": "sample string 2", "description": "sample string 3", "is_default": true, "default_price": 1.0, "sales_organization_id": "21a0c676-9334-4162-bf06-18e3052636ce", "sales_organization_code": "sample string 6", "reference_back_office": "sample string 7", "modified_dateutc": "2024-04-18T19:03:30.5170529+00:00", "db_currency_id": "f7fb1630-2f27-4504-9de9-2801b32b8990", "db_currency_code": "sample string 10" }, "company_type_id": "5fcdc4af-4680-4b3e-8c31-a24bdf57c81b", "company_type_name": "sample string 32", "company_type": { "id": "b6e514d7-19f2-4d52-8201-129d517c9955", "name": "sample string 2", "description": "sample string 3", "sales_organization_id": "bb3249e9-56f7-4871-ae4a-b02778d22f72", "sales_organization_code": "sample string 5" }, "db_language_id": "c0fa24a8-0457-4f16-8ce5-b504c23e24fc", "db_language_code": "sample string 34", "code": "sample string 35", "article_price_label_id": "dad894de-e43b-49d3-95d5-e334c3ea4ef8", "article_price_label_code": "sample string 37", "db_payment_method_id": "d3bc78b1-4ff1-4c6e-b429-8bf889346b6c", "db_payment_method_reference_back_office": "sample string 39", "db_payment_methods": { "id": "ffe8c648-153c-4e7e-8a0d-174d9c19feff", "name": "sample string 2", "description": "sample string 3", "reference_back_office": "sample string 4", "activated": true, "modified_dateutc": "2024-04-18T19:03:30.5170529+00:00" }, "company_sector_id": "fffc7ccf-1cf1-408f-b5b0-953edbc8f894", "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": "64c59c73-18c4-443a-b3b0-8a33cc9f150c", "service_manager_user_code": "sample string 52", "finance_manager_user_id": "2f1a6c2d-77c6-4e8a-9ba8-d5841c828625", "finance_manager_user_code": "sample string 54", "account_manager_user_id": "ca29b979-b183-4d14-a108-394c83dad5bc", "account_manager_user_code": "sample string 56", "company_status_id": "6853c95b-5a0c-4a4b-8cc8-5a479ad4bebd", "invoice_email_to": "sample string 58", "modified_dateutc": "2024-04-18T19:03:30.5170529+00:00", "id2": 60 }, "db_language_id": "bed6f355-0f69-4d25-909d-74bcf6eca96c", "db_language_code": "sample string 7", "db_title_id": "a745eebd-185d-4205-a9bd-edb18cf8fba2", "archived": true, "functions": "sample string 10", "e_login": "sample string 11", "e_password": "sample string 12", "notes": "sample string 13", "birthdate": "2024-04-18T19:03:30.5170529+00:00", "create_date": "2024-04-18T19:03:30.5170529+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-04-18T19:03:30.5170529+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.