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": "dcd249d7-7d8a-4fc3-8e95-475d876e01ed", "firstname": "sample string 2", "lastname": "sample string 3", "company_id": "635d7837-fb40-4e5f-ae89-0cbacdbdc991", "company_code": "sample string 5", "company": { "id": "3f501b3b-13d7-4c39-ad07-1255cbc7d398", "is_client": true, "is_supplier": true, "archived": true, "name": "sample string 5", "notes": "sample string 6", "create_date": "2024-11-21T09:01:39.7299121+00:00", "sales_territory_id": "5298be8f-5b34-41bf-8c0f-2eee688b42fc", "sales_territory_code": "sample string 9", "sales_territory": { "id": "8e6af297-af64-4300-b4a8-3b7320a1349c", "code": "sample string 2", "description": "sample string 3", "sales_organization_id": "4d62a52e-2d69-49bc-9590-7e59ff57bac1", "sales_organization_code": "sample string 5", "sales_organization": { "id": "b5d9da80-4534-4eb1-a8fd-e49d82f70fb4", "code": "sample string 2", "name": "sample string 3", "description": "sample string 4", "db_country_id": "14764cc8-39fc-4a38-988b-ebe29c1d7863", "db_currency_id": "7086531b-be8e-4c59-b327-63594f98a729", "db_language_id": "0b6d9286-0e8b-4f30-ba9e-90312bae388d", "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-11-21T09:01:39.7299121+00:00" }, "modified_dateutc": "2024-11-21T09:01:39.7299121+00:00" }, "marketing_segment_id": "5cd22699-c49a-4d84-9c14-75479aa1ad3d", "marketing_segment_code": "sample string 11", "sales_organization_id": "640a5ac0-d1a9-4e85-8f3b-4ed73dcd819d", "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": "928b676f-a92b-44e2-808e-6e7e61dfc24b", "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": "2038d286-99aa-442f-8451-d9a244112841", "db_country_code": "sample string 28", "feelist_id": "da2223d8-b67e-4994-b1ac-027066a7e494", "feelist_reference_back_office": "sample string 30", "feelist": { "id": "5fbb816c-d004-41b7-bcd9-e4229b93eb2e", "name": "sample string 2", "description": "sample string 3", "is_default": true, "default_price": 1.0, "sales_organization_id": "95f4921b-2ffd-4085-acb6-d9b5b4afa38d", "sales_organization_code": "sample string 6", "reference_back_office": "sample string 7", "modified_dateutc": "2024-11-21T09:01:39.7299121+00:00", "db_currency_id": "700a95b5-30da-44ab-bbf7-871e5129ff37", "db_currency_code": "sample string 10" }, "company_type_id": "4576b622-a26b-4c55-9c0f-42049595689f", "company_type_name": "sample string 32", "company_type": { "id": "5126a5f8-04e7-48c9-b768-35af81c3baaf", "name": "sample string 2", "description": "sample string 3", "sales_organization_id": "656d5e4f-051d-4a9d-be41-9f255ef73d48", "sales_organization_code": "sample string 5" }, "db_language_id": "9d1d10f5-0bb8-468b-b793-1d334bde0b42", "db_language_code": "sample string 34", "code": "sample string 35", "article_price_label_id": "d55111b7-5a2b-428e-a0f4-80a12bb5cef4", "article_price_label_code": "sample string 37", "db_payment_method_id": "d0b535f6-6335-4a62-a630-a98dd7470c35", "db_payment_method_reference_back_office": "sample string 39", "db_payment_methods": { "id": "6dbb8f9c-d36b-4f59-ad70-7d97bc1ffb01", "name": "sample string 2", "description": "sample string 3", "reference_back_office": "sample string 4", "activated": true, "modified_dateutc": "2024-11-21T09:01:39.7299121+00:00" }, "company_sector_id": "23e66a0c-7649-4c87-8932-2e384dc6bbe7", "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": "f88681c0-0bee-46df-aaa1-86e3012fdba4", "service_manager_user_code": "sample string 52", "finance_manager_user_id": "1a991fe3-adc3-4c1a-bc56-ad5bbc84eb59", "finance_manager_user_code": "sample string 54", "account_manager_user_id": "00c6e79a-9a3a-4fcf-8f38-6b68278710ca", "account_manager_user_code": "sample string 56", "company_status_id": "5aefc36b-6e90-4265-9a62-bcd08efd54bf", "invoice_email_to": "sample string 58", "modified_dateutc": "2024-11-21T09:01:39.7299121+00:00", "id2": 60 }, "db_language_id": "25de4b7e-593f-4e96-adc2-72d220cdd5c6", "db_language_code": "sample string 7", "db_title_id": "86f6c501-a764-4d82-aedd-3b9f11672bef", "archived": true, "functions": "sample string 10", "e_login": "sample string 11", "e_password": "sample string 12", "notes": "sample string 13", "birthdate": "2024-11-21T09:01:39.7299121+00:00", "create_date": "2024-11-21T09:01:39.7299121+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-11-21T09:01:39.7299121+00:00" }
Response Information
Resource Description :
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.