List the signed-in member's addresses
GET
/account/checkout-addresses
const url = 'https://acme.mykreezalid.com/front_api/v1/account/checkout-addresses';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://acme.mykreezalid.com/front_api/v1/account/checkout-addresses \ --header 'Authorization: Bearer <token>'Returns every address saved in the signed-in member’s address book, as a bare array (empty when there is none).
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The member’s addresses.
Media typeapplication/json
Array<object>
An address saved in the signed-in member’s address book, to reuse at checkout.
object
object
A saved address of the signed-in member.
string
id
Unique identifier of the address.
integer
description
Label the member gives to the address.
string
gender
string
first_name
string
last_name
string
business_name
string
address_line1
string
address_line2
string
address_zipcode
string
address_city
string
address_state
string
address_country
Country code.
string
mobile
string
phone
string
Example
[ { "object": "CheckoutAddress", "id": 4242, "description": "Home", "first_name": "Jane", "last_name": "Doe", "address_line1": "12 rue de la Paix", "address_zipcode": "75002", "address_city": "Paris", "address_country": "FR", "mobile": "+33612345678" }]No valid access token was sent.
Media typeapplication/json
Error body returned by the Front API when it refuses a request.
object
code
HTTP status code, repeated in the body.
integer
status
string
message
Human-readable reason.
string
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}