Customer
Delete customer profile
Changed onDelete the authenticated customer's account. Requires the Bearer token and the account password, as the storefront does. An account with a pending or processing order cannot be deleted (422).
post/customer-profile-deletes/{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 profile delete 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
Response
Customer account deleted
Changes
- breaking
added the new required request property
- breaking
request body became required
- breaking