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