Verify email
POST
/api/website/customers/verify
const url = 'https://api.petanqueai.com/api/website/customers/verify';const options = { method: 'POST', headers: { 'x-storefront-token': '<x-storefront-token>', 'Content-Type': 'application/json' }, body: '{"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.petanqueai.com/api/website/customers/verify \ --header 'Content-Type: application/json' \ --header 'x-storefront-token: <x-storefront-token>' \ --data '{ "token": "example" }'Confirms the token from the verification link and activates the account. A token works once; an unknown, used or expired token answers 410.
If the address already belonged to a guest who ordered before, the account is linked to that history and passwordSetupRequired is true: the password from sign-up is not applied and the shopper receives an email to set one instead.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
token
required
string
Example generated
{ "token": "example"}object
token
required
string
Example generated
token=exampleobject
token
required
string