curl -X POST \
/customers/{customerId}/addresses \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"countryCode": "DE",
"vatId": "DE123456789",
"companyName": "Acme Inc.",
"street": "Musterstra\u00dfe 1",
"houseNumber": "1a",
"zip": "12345",
"city": "Berlin",
"addition": "c\/o John Doe",
"costCentre": "12345"
}'
{
"id": "<string>",
"vatId": "DE123456789",
"type": "TYPE_DEFAULT",
"default": "true",
"status": "active",
"city": "Berlin",
"zip": "12345",
"street": "Musterstraße",
"houseNumber": "1a",
"countryCode": "DE",
"companyName": "ACME Inc.",
"salutation": "Herr",
"addition": "c/o John Doe",
"costCentre": "123456789",
"firstName": "John",
"lastName": "Doe"
}
Add a customer address. A new address is set as default for the given address type.
Required permissions:customer:write
curl -X POST \
/customers/{customerId}/addresses \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"countryCode": "DE",
"vatId": "DE123456789",
"companyName": "Acme Inc.",
"street": "Musterstra\u00dfe 1",
"houseNumber": "1a",
"zip": "12345",
"city": "Berlin",
"addition": "c\/o John Doe",
"costCentre": "12345"
}'
{
"id": "<string>",
"vatId": "DE123456789",
"type": "TYPE_DEFAULT",
"default": "true",
"status": "active",
"city": "Berlin",
"zip": "12345",
"street": "Musterstraße",
"houseNumber": "1a",
"countryCode": "DE",
"companyName": "ACME Inc.",
"salutation": "Herr",
"addition": "c/o John Doe",
"costCentre": "123456789",
"firstName": "John",
"lastName": "Doe"
}
Value for the Authorization header parameter.
CustomerAddress identifier
The new CustomerAddress resource
CustomerAddress resource created
Was this page helpful?