E-postayı doğrula
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" }'Doğrulama bağlantısındaki token’ı onaylar ve hesabı etkinleştirir. Bir token bir kez çalışır; bilinmeyen, kullanılmış ya da süresi dolmuş bir token 410 alır.
Adres daha önce sipariş vermiş bir misafire aitse hesap o geçmişe bağlanır ve passwordSetupRequired true olur: kayıttaki şifre uygulanmaz, müşteri bunun yerine şifre belirlemesi için bir e-posta alır.
Yetkilendirmeler
Bölüm başlığı “Authorizations”İstek gövdesizorunlu
Bölüm başlığı “Request Bodyrequired”object
token
zorunlu
string
Example generated
{ "token": "example"}object
token
zorunlu
string
Example generated
token=exampleobject
token
zorunlu
string