Skip to content

Request an email change (step-up; verify-before-switch)

POST
/store/v1/customers/me/email/change
curl --request POST \
--url https://your-store.example.com/store/v1/customers/me/email/change \
--header 'Content-Type: application/json' \
--data '{ "newEmail": "hello@example.com", "currentPassword": "example" }'
Media type application/json
object
newEmail
required
string format: email
<= 320 characters /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/
currentPassword
required
string
>= 1 characters <= 1024 characters
Example generated
{
"newEmail": "hello@example.com",
"currentPassword": "example"
}