This request will return the list of addresses a customer has.
| URL | https://api.telecomx.dk/customer/CUSTOMER_ID/address | |
|---|---|---|
| Method | GET | |
| Access level | PERSONAL, VIEWER, MANAGER or OWNER if user belongs to the customer. RESELLER if customer belongs to the reseller or a sub reseller. RESELLER_ADMIN. ADMIN. |
|
| Param | CUSTOMER_ID | Id of the customer, (24 hex-char string). |
https://api.telecomx.dk/customer/1234567890ABCDEF12345678/address
The response is an array of addresses. Each address has the following properties.
| JSON object | ||
|---|---|---|
| addresses[item]._id | Id | Id of address |
| addresses[item].primary | Boolean | True if this is the primary address |
| addresses[item].alternativeName | String | Alternative name for this address |
| addresses[item].address | String | Street, number etc. |
| addresses[item].zip | String | Zip code |
| addresses[item].city | String | City |
| addresses[item].state | String | State |
| addresses[item].country | String | Country |
| addresses[item].fixedNumber | String | Fixed phone number on this address, if it differs from the primary |
| addresses[item].faxNumber | String | Fax number on this address, if it differs from the primary |
| addresses[item].municipalityCode | Integer | Municipality code, automatically set by the system |
Note that properties holding no value may be omitted from the object.
[ { "_id": "650000000000000000000301", "primary": true, "alternativeName": "", "address": "Eksempelvej 23", "zip": "4000", "city": "Roskilde", "country": "DK", "municipalityCode": 265 }, { "_id": "650000000000000000000302", "primary": false, "alternativeName": "Warehouse", "address": "Eksempelvej 42", "zip": "4000", "city": "Roskilde", "country": "DK", "fixedNumber": "+4570200000", "municipalityCode": 265 } ]
| Error code | Message | Description |
|---|---|---|
| 422 | customer | Customer id is invalid |
| 403 | access_denied | Insufficient access level |
| 404 | not_found | Customer not found |
| 500 | internal_error | <Unspecified> |