Create a customer address
How to create a customer address via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X POST \
'https://yourdomain.commercelayer.io/api/customer_addresses' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer your-access-token' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "customer_addresses",
"attributes": {
"customer_email": "john@example.com"
},
"relationships": {
"customer": {
"data": {
"type": "customers",
"id": "ABCRtyUpBa"
}
},
"address": {
"data": {
"type": "addresses",
"id": "BCDRtyUpBa"
}
}
}
}
}'Last updated