# Get Address v2.0Beta

The Get Address endpoint retrieves the details for a address. The request will return a single address.

# Request

GET /v2.0/customers/{profileKey}/addresses/{key}

# Authorization

An OAuth 2.0 Bearer token with the Profile.Read scope is required. For more information, see Authentication.

# Path Parameters

A list of the supported path parameters is described below.

Name Required Type Description
profileKey true guid The profile key for the customer. This value can be retrieved from the profileKey claim in the token returned from our SSO solution.
key true guid The key for the address.

# Response

200
OK
Returns a Address resource wrapped in an ApiResponse envelope.

# Response Body

The endpoint returns our ApiResponse envelope. The data property of the response will contain a Address resource.

# Sample

{
    "message": "The operation succeeded!",
    "notifications": [],
    "data": {
        "key": "4af3322e-a236-4a77-ae8b-90ba6715ebde",
        "profileKey": "25b7726e-8416-5b13-a54a-b7fae6518b8g",
        "profileBrandGroupKey": "TEST-SPUR-PROFILE",
        "addressType": "Delivery",
        "addressName": "Home",
        "formattedAddress": "13 Burger Avenue, Century City, Cape Town, Western Cape, 7441, ZA",
        "addressLine1": "13 Burger Avenue",
        "addressLine2": null,
        "suburb": "Century City",
        "city": "Cape Town",
        "province": "Western Cape",
        "postalCode": "7441",
        "countryCode": "ZA",
        "latitude": 123.456789000000,
        "longitude": -87.137878000000
    }
}

# Errors

The standard error responses apply.

401
Unauthorized
When authentication fails.
403
Forbidden
When authorisation fails.
404
Not Found
When the customer profile cannot be found.
404
Not Found
When the address cannot be found.