Skip to content

Change password

PATCH
/api/website/customers/password
curl --request PATCH \
--url https://api.petanqueai.com/api/website/customers/password \
--header 'Content-Type: application/json' \
--header 'x-customer-session: <x-customer-session>' \
--header 'x-storefront-token: <x-storefront-token>' \
--data '{ "currentPassword": "example", "password": "example" }'

Changes the signed-in shopper’s password. Needs x-customer-session and the current password; a wrong current password answers 401. Every other session of the shopper is signed out, the current one stays. Answers 204.

object
currentPassword
required
string
>= 8 characters <= 128 characters
password
required
string
>= 8 characters <= 128 characters

Example generated

{
"currentPassword": "example",
"password": "example"
}