Create contacts
This endpoint is deprecated.
POST
/api/RPC.common.Api.Contacts.set?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
id | Integer | Contact person ID |
namerequired | String | Name |
egn | String | ID |
phonerequired | String | Phone |
emailrequired | String | |
fax | String | Fax |
note | String | Note |
title | String | Title |
office | String | Office |
section | String | Department |
position | String | Position |
admin_questions | Boolean | Administrative matters |
trade_questions | Boolean | Business |
financial_questions | Boolean | Financial |
technical_questions | Boolean | Technology |
archive | Boolean | Archived |
partnerrequired | Object | Partner object. |
partner.id | String | Customer ID |
partner.is_company | Boolean | The customer is a Company |
partner.eik | String | UIC |
partner.egn | String | ID |
partner.dds_num | String | VAT Number |
partner.phone | String | Phone |
partner.email | String |
Request example
Set Contact:
{
"data" : [
{
"name" : "John Doe",
"email" : "johndoe@gmail.com",
"partner" : {
"email" : "janedoe@gmail.com",
"eik" : 999999999,
"phone" : "+359888209011",
"dds_num" : "BG999999999"
},
"phone" : "+359888902091"
}
]
}cURL
Set Contact:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "name" : "John Doe", "email" : "johndoe@gmail.com", "partner" : { "email" : "janedoe@gmail.com", "eik" : 999999999, "phone" : "+359888209011", "dds_num" : "BG999999999" }, "phone" : "+359888902091" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Contacts.set?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"result" : [
{
"id" : "Contact Id",
"name" : "John Doe",
"email" : "johndoe@gmail.com",
"phone" : "+359888902091",
"partner" : {
"id" : "Partner Id"
},
"title" : "title"
}
],
"status" : "OK",
"count" : 1,
"code" : 100
}