1. Help Center
  2. API
  3. Customer Information API

Contact/Address Association API

Create ContactAddress
URL /Address/AddContact
Method POST
Body
{
"ContactId":"2",
"AddressId":"2"
 }
Response

HTTP/1.1 400 Already exist

HTTP/1.1 400 Customer should be the same for Adress and Contact

HTTP/1.1 400 Incorrect Contact Id

HTTP/1.1 400 Incorrect Address Id

HTTP/1.1 200 OK

[
{
"AddressId": 2,
"ContactApiModel": 
{
"CarrierId": 32,
"ContactTypeId": 1,
"CustomerId": 0,
"Email": "some@mail.ru",
"Fax": "(234) 234-2342",
"FirstName": "admin",
"Id": 2,
"LastChangeDate": "/Date(-62135596800000+0000)/",
"LastName": "admin",
"MobilePhone": "(424) 234-2342",
"NotifyViaEmail": false,
"NotifyViaSms": false,
"Phone": "(342) 342-3423"
},
"ContactId": 2,
"Id": 7,
"MasterId": null,
"Position": 2
}
]

 



Comments  
  Get List of ContactAddress
URL /Address/ContactList/{addressId}
Method GET
Body  
Response

HTTP/1.1 200 OK

[
{
"AddressId": 6098,
"ContactApiModel": {
"CarrierId": null,
"ContactTypeId": 1,
"CustomerId": 2679,
"Email": "rick@5grentals.com1",
"Fax": "0076754395",
"FirstName": "5G",
"Id": 2812,
"LastChangeDate": "/Date(1542392758520+0300)/",
"LastName": "Equipment",
"MobilePhone": "0076754395",
"NotifyViaEmail": false,
"NotifyViaSms": false,
"Phone": "0076754395"
},
"ContactId": 2812,
"Id": 161,
"MasterId": null,
"Position": 1
},
{
"AddressId": 6098,
"ContactApiModel": {
"CarrierId": null,
"ContactTypeId": 1,
"CustomerId": 2679,
"Email": "clever4you@gmail.com",
"Fax": null,
"FirstName": "33333333",
"Id": 3935,
"LastChangeDate": "/Date(1558531743940+0300)/",
"LastName": "333333333",
"MobilePhone": null,
"NotifyViaEmail": false,
"NotifyViaSms": false,
"Phone": "1231231233"
},
"ContactId": 3935,
"Id": 162,
"MasterId": null,
"Position": 2
}
]

Comments In case if {addressId} not exist will return empty array
  Delete ContactAddress
URL /Address/RemoveContact/{id}
Method DELETE
Body  
Response

HTTP/1.1 200 OK

HTTP/1.1 400 No such item

Comments