customer_addresses
Create a customer address
Changed onCreate a customer address
post/customer_addresses
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/customer_addresses
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"customer_email": "john@example.com",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"customer": {
"data": {
"id": "XAyRWNUzyN"
}
},
"address": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The created customer address object
Changes
- breaking
added the new required request property
// - breaking
added the new required request property
/// - breaking
added the new required request property
/// - breaking
request property
/was restricted to a list of enum values - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - warning
removed the request property
/// - info
the
request property default valuecustomer_addresseswas removed - info
added the new
customer_addressesenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking