Create addresses
This endpoint is deprecated.
POST
/api/RPC.common.Api.Addresses.set?token=<TOKEN>Parameters
| Field | Type | Description |
|---|---|---|
countryrequired | String | Country |
district | String | County |
settlement | String | City |
street | String | Street |
num | String | Number |
address | String | Address |
nbh | String | District |
building | String | Building |
building_entrance | String | Entrance |
building_floor | String | Floor |
building_apartment | String | Apartment |
zip | String | Postal code |
zip_num | String | Mailbox |
tax | Boolean | Tax address |
email | String | |
phone | String | Phone |
fax | String | Fax |
note | String | Note |
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 Address:
{
"data" : [
{
"district" : "Sofia",
"address" : "str. Tri Ushi 27",
"zip" : 1000,
"settlement" : "Sofia",
"partner" : {
"eik" : 999999990,
"phone" : "+359885209213",
"id" : "Some Id not necessary if have eik or mail or phone",
"email" : "johndoe@gmail.com"
},
"country" : "Bulgaria"
}
]
}
Set Separate Address:
{
"data" : [
{
"settlement" : "Sofia",
"zip" : 1000,
"partner" : {
"id" : "Some Id not necessary if have eik or mail or phone",
"email" : "johndoe@gmail.com",
"eik" : 999999990,
"phone" : "+359885209213"
},
"country" : "Bulgaria",
"street" : "Tri Ushi",
"num" : 27,
"district" : "Sofia"
}
]
}cURL
Set Address:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "district" : "Sofia", "address" : "str. Tri Ushi 27", "zip" : 1000, "settlement" : "Sofia", "partner" : { "eik" : 999999990, "phone" : "+359885209213", "id" : "Some Id not necessary if have eik or mail or phone", "email" : "johndoe@gmail.com" }, "country" : "Bulgaria" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Addresses.set?token=<TOKEN>"
Set Separate Address:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -d '{ "data" : [ { "settlement" : "Sofia", "zip" : 1000, "partner" : { "id" : "Some Id not necessary if have eik or mail or phone", "email" : "johndoe@gmail.com", "eik" : 999999990, "phone" : "+359885209213" }, "country" : "Bulgaria", "street" : "Tri Ushi", "num" : 27, "district" : "Sofia" } ]}' "https://<DOMAIN_NAME>/api/RPC.common.Api.Addresses.set?token=<TOKEN>"Response example
HTTP/1.1 200 OK
{
"code" : 100,
"status" : "OK",
"result" : [
{
"num" : 27,
"id" : "address_id",
"district" : "Sofia",
"zip" : 1000,
"settlement" : "Sofia",
"country" : "Bulgaria",
"partner" : {
"eik" : 999999990,
"phone" : "+359885209213",
"email" : "johndoe@gmail.com",
"id" : "Some Id not necessary if have eik or mail or phone"
},
"street" : "Tri Ushi"
}
],
"count" : 1
}