Create (or fetch) the email login for a customer, so an external storefront can enforce accounts at its own checkout. Credits and the invite code live on this login; creating it is the moment a carried invite code attaches. If no password is sent, a random one is set — the customer can recover it with the portal's password reset.
Request Parameters
Field
Type
Required
Description
customer_email
string
Required
The customer's email — becomes their sign-in
customer_name
string
Optional
Their name
password
string
Optional
Their password (min 8). Omit to auto-generate
referral_code
string
Optional
Invite code they arrived with — attributed on creation. On a private site, check it first with validate_referral_code
verify_url
string
Optional
Your confirm-your-address page. When sent, Panelr emails the customer a link to it with the token appended (?token=…, or in place of {token}); that page calls confirm_customer_email
Response Fields
Field
Type
Description
customer_id
integer
The customer
created
boolean
true when the login was just created. An address that already has a login answers 409 with sign_in: true and no account data — send them to sign in instead (the same password as the existing login still returns the snapshot, so a retried request is safe)
claim_link_sent
boolean
true when the address belonged to a member record with no login yet: they are emailed a link to claim it, and nothing is created here
verification_sent
boolean
true when a confirm-your-address email went out — also for an existing login whose address is still unconfirmed, so this call doubles as "resend the confirmation"
…
Plus the full account snapshot — the same fields verify_customer_login returns — so you can sign the new customer straight in