Create addresses
Learn how to create a new address on your account. Optionally, you can look up the addresses for a given UK postcode to check that your details are correct before you do so.
Create an address
Request
Use this request to create a new address.
curl -i -X POST \
'https://api.equalsmoney.com/v2/addresses?accountId=F12345' \
-H 'Authorization: ApiKey {apiKey}' \
-H 'Content-Type: application/json' \
-d '{
"type": "office",
"nickName": "Head Office",
"addressLine1": "Great Building",
"addressLine2": "4 Maple Street",
"addressLine3": "Southwark",
"addressContact": "Jane Doe",
"city": "London",
"postcode": "SE13UB",
"country": "England"
}'curl -i -X POST \
'https://api.equalsmoney.com/v2/addresses?accountId={accountId}' \
-H 'Authorization: ApiKey {apiKey}' \
-H 'Content-Type: application/json' \
-d '{
"type": "string",
"nickName": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"addressContact": "string",
"city": "string",
"postcode": "string",
"country": "string"
}'Query parameters
| Parameter | Description |
|---|---|
accountIdstring required |
The ID of the account that you want to create an address for. Allowable values: An existing accountId (<= 36 characters) |
Request body schema
| Parameter | Description |
|---|---|
typestring required |
The address type. This can be anything except registered.Allowable values: A valid string |
nickNamestring or null |
The nickname of the address. Allowable values: <= 256 characters |
addressLine1string required |
The first line of the address. Allowable values: <= 256 characters |
addressLine2string or null |
The second line of the address. Allowable values: <= 256 characters |
addressLine3string or null |
The third line of the address. Allowable values: <= 256 characters |
addressContactstring or null |
The name of the contact associated with the address. Allowable values: <= 256 characters |
citystring required |
The city of the address. Allowable values: <= 256 characters |
postcodestring required |
The postal or ZIP code of the address. Allowable values: <= 256 characters |
countrystring required |
The country of the address. Allowable values: <= 256 characters |
Response
If your request is successful, you'll receive a 200 response containing details about your newly-created address. This includes the id which you can provide when converting a card.
{
"id": "55ddc56e-f605-49c6-9862-0e8b55fa368f",
"type": "office",
"nickName": "Head Office",
"addressLine1": "Great Building",
"addressLine2": "4 Maple Street",
"addressLine3": "Southwark",
"addressContact": "Jane Doe",
"city": "London",
"postcode": "SE13UB",
"country": "England"
}{
"id": "string",
"type": "string",
"nickName": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"addressContact": "string",
"city": "string",
"postcode": "string",
"country": "string"
}For more detailed information about this request and its response, see the API reference.
Look up an address
Request
Use this request get a list of all addresses for a given UK postcode (5-7 alphanumeric characters). You can use this to confirm that an address exists before adding it to your account.
info
By default, this endpoint isn't enabled. If you'd like to use it, please ask your account manager.
curl -i -X GET \
'https://api.equalsmoney.com/v2/addresses/lookup?postcode=SE13UB' \
-H 'Authorization: ApiKey YOUR_API_KEY_HERE'curl -i -X GET \
'https://api.equalsmoney.com/v2/addresses/lookup?postcode={postcode}' \
-H 'Authorization: ApiKey YOUR_API_KEY_HERE'Query parameters
| Parameter | Description |
|---|---|
postcodestring required |
The UK postcode that you want to retrieve addresses for. Allowable values: 5-7 characters |
Response
If your request is successful, you'll receive a 200 response.
{
"data": [
{
"id": "55ddc56e-f605-49c6-9862-0e8b55fa368f",
"type": "office",
"nickName": "Head Office",
"addressLine1": "Great Building",
"addressLine2": "4 Maple Street",
"addressLine3": "Southwark",
"addressContact": "Jane Doe",
"city": "London",
"postcode": "SE13UB",
"country": "England",
"createdAt": "2022-01-30T08:30:00Z",
"updatedAt": "2022-01-30T08:30:00Z"
}
]
}{
"data": [
{
"id": "string",
"type": "string",
"nickName": "string",
"addressLine1": "string",
"addressLine2": "string",
"addressLine3": "string",
"addressContact": "string",
"city": "string",
"postcode": "string",
"country": "string",
"createdAt": "string",
"updatedAt": "string"
}
]
}For more detailed information about this request and its response, see the API reference.