Panelr

Update Customer Account

POST ?action=update_customer_account

Change the name, email and/or contact preference on a customer's login. Name and email are synced everywhere the customer appears — the login, every line they hold and their open orders. Completed orders keep the details they were paid under. An address already used by another customer is refused (422). A changed address counts as unconfirmed again (verified: false) until the customer confirms it. A chat preference only delivers once that chat is linked to the account in Panelr's own member area.

Request Parameters

FieldTypeRequiredDescription
customer_idintegerRequiredone of these twoThe customer
customer_emailstringRequiredone of these twoTheir current address
customer_namestringOptionalNew name
new_emailstringOptionalNew address
contact_preferencestringOptionalemail, telegram or discord (at least one of the three fields must be sent)
verify_urlstringOptionalYour confirm-your-address page. When sent with a new address, the customer is emailed a confirmation link to it (?token=…, or in place of {token}); that page calls confirm_customer_email
resend_verificationbooleanOptionalSend the confirmation email again to the current address (needs verify_url; nothing else changes). Use this for a "Resend" button — answers verification_sent true, or false when the address is already confirmed

Response Fields

FieldTypeDescription
email_changedbooleanWhether the address changed — update your session if it did
verification_sentbooleantrue when a confirm-your-address email went out for the new address
…Plus the refreshed account snapshot