Customer Address

Update a customer address

Update an existing address. Requires Bearer token. Include addressId in the body.

put/customer-addresses/{id}

Request

Path parameters

idstring required

Customer address ID

Headers

X-STOREFRONT-KEYstring required

Storefront API Key for authentication. Required for all shop/storefront API requests.

X-Localestring
Example:en

Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.

X-Channelstring
Example:default

Channel code (e.g. "default"). Defaults to the current channel.

X-Currencystring
Example:USD

Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.

Request body

firstNamestring
lastNamestring
companyNamestring
vatIdstring
emailstring email
phonestring
address1string
address2string
citystring
statestring
postcodestring
countrystring
defaultAddressboolean

Set as default address

Example request

{
  "firstName": "John",
  "lastName": "Doe",
  "companyName": "Acme Inc.",
  "vatId": "GB123456789",
  "email": "john@example.com",
  "phone": "1234567890",
  "address1": "456 Oak Ave",
  "address2": "Suite 100",
  "city": "Los Angeles",
  "state": "CA",
  "postcode": "90001",
  "country": "US"
}

Response

Address updated.

Changes

No recorded changes to this operation across all 13 revisions of this API.