Get an Customer Address
GEThttps://useast.api.elasticpath.com/v2/customers/:customerID/addresses/:addressID
Get an Customer Addresses
Request
Path Parameters
customerID stringrequired
The ID of the customer you want to retrieve.
addressID stringrequired
The ID of the address you want to retrieve.
Responses
- 200
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
data object
{
"data": {
"type": "address",
"first_name": "Ron",
"last_name": "Swanson",
"name": "Home",
"phone_number": "(555) 555-1234",
"instructions": "Leave behind bin",
"company_name": "Ron Swanson Enterprises",
"line_1": "1 Sunny Street",
"line_2": "Unit 101",
"city": "Sunny Town",
"county": "Sunnyville",
"region": "acc-legal-name",
"postcode": "SU33 1YY",
"country": "GB",
"id": "5f8da740-6680-463e-b31c-190b2db4bf9d",
"meta": {
"timestamps": {
"created_at": "2021-02-23T09:40:33.882Z",
"updated_at": "2021-02-23T09:40:33.882Z"
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/customers/deb6b25f-8451-4211-9a22-95610333df23/addresses"
},
"relationships": {
"customer": {
"id": "11afcf9b-971b-4fdb-8e10-f2ecf970718e",
"type": "customer"
}
}
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- not-found-error
Schema
errors Error[]required
{
"errors": [
{
"status": "string",
"title": "string",
"detail": "string"
}
]
}
{
"errors": [
{
"status": "404",
"title": "Not Found",
"detail": "customer not found"
}
]
}
Authorization: http
name: BearerTokentype: httpscheme: bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://useast.api.elasticpath.com/v2/customers/:customerID/addresses/:addressID' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear