Add an address
POST
/account/checkout-addresses
const url = 'https://acme.mykreezalid.com/front_api/v1/account/checkout-addresses';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"Home","gender":"example","first_name":"Jane","last_name":"Doe","business_name":"example","address_line1":"12 rue de la Paix","address_line2":"example","address_zipcode":"75002","address_city":"Paris","address_state":"example","address_country":"FR","mobile":"+33612345678","phone":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://acme.mykreezalid.com/front_api/v1/account/checkout-addresses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "Home", "gender": "example", "first_name": "Jane", "last_name": "Doe", "business_name": "example", "address_line1": "12 rue de la Paix", "address_line2": "example", "address_zipcode": "75002", "address_city": "Paris", "address_state": "example", "address_country": "FR", "mobile": "+33612345678", "phone": "example" }'Saves a new shipping address in the signed-in member’s address book.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
description
required
Label of the address.
string
Example
Homegender
string
first_name
required
string
Example
Janelast_name
required
string
Example
Doebusiness_name
string
address_line1
required
string
Example
12 rue de la Paixaddress_line2
string
address_zipcode
required
string
Example
75002address_city
required
string
Example
Parisaddress_state
string
address_country
required
Country code.
string
Example
FRmobile
required
string
Example
+33612345678phone
string
Responses
Section titled “Responses”The address is saved.
Media typeapplication/json
object
status
string
message
string
data
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
{ "status": "success", "message": "address created", "data": { "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"}Required fields are missing; message lists them.
Media typeapplication/json
object
status
string
message
string
Example
{ "status": "failed", "message": "missing fields : mobile, address_zipcode"}The address could not be saved.
Media typeapplication/json
object
status
string
message
string
Example
{ "status": "failed", "message": "can not save the entity"}