Contacts - List all Contacts of a Customer
GET yourdomain.com/api/contacts/:customer_id/:contact_id
Header
json
| Field | Type | Description |
|---|---|---|
| Authorization | String |
Basic Access Authentication token |
Parameter
json
| Field | Type | Description |
|---|---|---|
| customer_id | Number |
Mandatory Customer unique ID |
| contact_id | Number |
Optional Contact unique ID |
Success 200
json
| Field | Type | Description |
|---|---|---|
| Contact | Object |
Contact information |
Error 4xx
json
| Name | Type | Description |
|---|---|---|
| status | Boolean |
Request status |
| message | String |
No data were found |
HTTP/1.1 200 OK
{
"id": "6",
"userid": "1",
"company": "xyz",
"vat": "",
"phonenumber": "1234567890",
"country": "0",
"city": "",
"zip": "360005",
"state": "",
"address": "",
"website": "",
"datecreated": "2020-08-19 20:07:49",
"active": "1",
"leadid": null,
"billing_street": "",
"billing_city": "",
"billing_state": "",
"billing_zip": "",
"billing_country": "0",
"shipping_street": "",
"shipping_city": "",
"shipping_state": "",
"shipping_zip": "",
"shipping_country": "0",
"longitude": null,
"latitude": null,
"default_language": "english",
"default_currency": "0",
"show_primary_contact": "0",
"stripe_id": null,
"registration_confirmed": "1",
"addedfrom": "1"
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "No data were found"
}