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": "955047c2-5abc-45e6-b53c-8723aedff487", "firstname": "sample string 2", "lastname": "sample string 3", "company_id": "611fedbf-59e9-4273-b416-d853d1ac3661", "company_code": "sample string 5", "company": { "id": "1c2b1100-0488-4b01-a36c-1e18103b7dc7", "is_client": true, "is_supplier": true, "archived": true, "name": "sample string 5", "notes": "sample string 6", "create_date": "2024-04-24T19:04:01.4992963+00:00", "sales_territory_id": "d124cb92-dea6-4c3b-9ed1-65ee2cc49751", "sales_territory_code": "sample string 9", "sales_territory": { "id": "ede6fc9c-30f4-41c0-b0b5-c2c163899d32", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "1ee8c22b-cd69-4ee7-822f-ea09f8f5948c", "sales_organization_code": "sample string 5", "sales_organization": { "id": "16fb16a1-101f-45b9-a671-bc246281d188", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "3d3e83ae-1223-4e04-843b-a416c00005f8", "db_currency_id": "b94e94ca-4f13-4a87-9884-bda50b853b38", "db_language_id": "4eb1de69-a471-44d0-a76f-cd7f35ae3d20", "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-24T19:04:01.4992963+00:00" }, "modified_dateutc": "2024-04-24T19:04:01.4992963+00:00" }, "marketing_segment_id": "f5d2d2fd-553b-4cd2-bcc5-285bd15b9e2c", "marketing_segment_code": "sample string 11", "sales_organization_id": "2877a432-2bee-426c-acc5-4e405766b4d8", "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": "74f5875b-995f-4d50-acbf-44a4e0fdd19c", "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": "89c743ad-ee1d-485f-b468-0a12770be4b8", "db_country_code": "sample string 28", "feelist_id": "6a10105a-d96a-4e75-9388-d2500f81bb79", "feelist_reference_back_office": "sample string 30", "feelist": { "id": "b41bb72a-f44f-49bd-ade8-e56b445ec6ac", "name": "sample string 2", "description": "sample string 3", "is_default": true, "default_price": 1.0, "sales_organization_id": "81fa5852-ba50-485a-a06d-616226be0e7f", "sales_organization_code": "sample string 6", "reference_back_office": "sample string 7", "modified_dateutc": "2024-04-24T19:04:01.514922+00:00", "db_currency_id": "0ef65d77-2722-4a68-a423-4a0258d1c93d", "db_currency_code": "sample string 10" }, "company_type_id": "09eb4b71-2b6b-4d49-a8f8-57b92dc18ea4", "company_type_name": "sample string 32", "company_type": { "id": "9cad70f5-a817-4aca-869c-6be6f1d36212", "name": "sample string 2", "description": "sample string 3", "sales_organization_id": "9949f5b1-0920-49bb-a0d4-77f5db306eaf", "sales_organization_code": "sample string 5" }, "db_language_id": "8db9b4f7-bba4-4d05-b22f-b6653ae9b345", "db_language_code": "sample string 34", "code": "sample string 35", "article_price_label_id": "02d0c8c9-c9dd-4741-a2d7-31ed5c93ef90", "article_price_label_code": "sample string 37", "db_payment_method_id": "98de1222-861b-4f18-9e81-3f0475cd469e", "db_payment_method_reference_back_office": "sample string 39", "db_payment_methods": { "id": "3d1bc051-2eb3-47c8-80fb-db88b8b8c7c9", "name": "sample string 2", "description": "sample string 3", "reference_back_office": "sample string 4", "activated": true, "modified_dateutc": "2024-04-24T19:04:01.514922+00:00" }, "company_sector_id": "372caa3c-9ae3-4589-a051-6ff5251063ba", "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": "6387b8b0-5dd6-4fcc-9026-5ea2a79059df", "service_manager_user_code": "sample string 52", "finance_manager_user_id": "e2dd51a6-98ca-41b3-aea9-1bdde195f951", "finance_manager_user_code": "sample string 54", "account_manager_user_id": "fdb26761-bbe3-4f30-b8ef-b0094c468e42", "account_manager_user_code": "sample string 56", "company_status_id": "b2f5bd74-8540-4a67-8c84-a8f4ad9f9291", "invoice_email_to": "sample string 58", "modified_dateutc": "2024-04-24T19:04:01.514922+00:00", "id2": 60 }, "db_language_id": "d69bd3e6-5dbf-4734-bf35-4248cbf6c743", "db_language_code": "sample string 7", "db_title_id": "d318f27e-2b04-4b1b-a027-fc92e501586a", "archived": true, "functions": "sample string 10", "e_login": "sample string 11", "e_password": "sample string 12", "notes": "sample string 13", "birthdate": "2024-04-24T19:04:01.514922+00:00", "create_date": "2024-04-24T19:04:01.514922+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-24T19:04:01.514922+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.