Start sign-up
POST
/api/website/customers/register
const url = 'https://api.petanqueai.com/api/website/customers/register';const options = { method: 'POST', headers: { 'x-storefront-token': '<x-storefront-token>', 'Content-Type': 'application/json' }, body: '{"email":"hello@example.com","name":"example","password":"example","phone":"example","smsConsent":true,"verifyUrl":"https://example.com"}'};
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/register \ --header 'Content-Type: application/json' \ --header 'x-storefront-token: <x-storefront-token>' \ --data '{ "email": "hello@example.com", "name": "example", "password": "example", "phone": "example", "smsConsent": true, "verifyUrl": "https://example.com" }'Emails the shopper a link to verify their address. No account exists until they open it and your site calls Verify email.
verifyUrl is the page on your site that receives the link; Petanque AI appends ?token=…. Its origin must be on your shop’s allowed origins (Ayarlar → Web Sitesi), otherwise 422. The link is valid for 24 hours.
Answers 202. 409 if the address already has an account with a password. Limited to 5 sign-ups per address per hour.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
email
required
string format: email
name
required
string
password
required
string
phone
string
smsConsent
boolean
verifyUrl
required
string format: uri
Example generated
{ "email": "hello@example.com", "name": "example", "password": "example", "phone": "example", "smsConsent": true, "verifyUrl": "https://example.com"}object
email
required
string format: email
name
required
string
password
required
string
phone
string
smsConsent
boolean
verifyUrl
required
string format: uri
Example generated
email=hello%40example.com&name=example&password=example&phone=example&smsConsent=true&verifyUrl=https%3A%2F%2Fexample.comobject
email
required
string format: email
name
required
string
password
required
string
phone
string
smsConsent
boolean
verifyUrl
required
string format: uri