Customer

Update customer profile

Update the authenticated customer's profile. Requires Bearer token. Fields isVerified, isSuspended, and status cannot be changed by the customer.

put/customer-profile-updates/{id}

Request

Path parameters

idstring required

Customer profile update 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
emailstring email
phonestring
gender'Male' | 'Female' | 'Other'
dateOfBirthstring date
currentPasswordstring password

Current password — required only when changing password

passwordstring password

New password (requires currentPassword and confirmPassword)

confirmPasswordstring password

Must match password

subscribedToNewsLetterboolean
imagestring

Profile image as base64 encoded string

deleteImageboolean

Set true to remove existing profile image

Example request

{
  "firstName": "John",
  "lastName": "Doe",
  "email": "john@example.com",
  "phone": "1234567890",
  "gender": "Male",
  "dateOfBirth": "1990-01-15",
  "currentPassword": "OldPassword123!",
  "password": "NewPassword123!",
  "confirmPassword": "NewPassword123!",
  "subscribedToNewsLetter": true,
  "image": "data:image/jpeg;base64,..."
}

Response

Customer profile updated successfully

Changes

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