Customer Address
Update a customer address
Update an existing address. Requires Bearer token. Include addressId in the body.
put/customer-addresses/{id}
Request
- Base URLhttp://localhost:8000/api/shop
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
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.