List addresses

List addresses

GET https://api.complycube.com/v1/addresses?clientId=:id

This endpoint allows you to list all existing addresses for a given client. The addresses are returned sorted by creation date, with the most recent addresses appearing first.

Query Parameters

NameTypeDescription

clientId

string

The ID of the client.

<pagination>

string

The number of items to return and the number of pages to offset.

<filtering>

string

Filter the results.

Headers

NameTypeDescription

Authorization

string

The live or sandbox API key.

{
    "page": 1,
    "pageSize": 100,
    "totalItems": 1,
    "pages": 1,
    "items": [
        {
            "id": "5eb1276f96be4a0008713af6",
            "clientId": "5eb1276d96be4a0008713af5",
            "type": "main",
            "propertyNumber": "Flat 57",
            "line": "Common street",
            "city": "Aldgate",
            "state": "London",
            "postalCode": "W10 11L",
            "country": "GB",
            "fromDate": "2007-09-01",
            "toDate": "2020-01-01",
            "createdAt": "2020-01-04T17:24:29.146Z",
            "updatedAt": "2020-01-04T17:13:10.712Z"
        }
    ]
}

You can use pagination and address filters for this endpoint.

Example request

curl -X GET https://api.complycube.com/v1/addresses?clientId={:clientId} \
     -H 'Authorization: <YOUR_API_KEY>'

Last updated