Create a customer address
How to create a customer address via API
Last updated
How to create a customer address via API
Last updated
To a new customer address, send a POST
request to the /api/customer_addresses
endpoint, passing the resource arguments in the request body.
POST https://yourdomain.commercelayer.io/api/customer_addresses
type
string
Required
attributes.customer_email
string
Required
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
relationships.customer
object
Required
relationships.address
object
Required
The following request creates a new customer address: