Panelr

Invite Code

POST ?action=issue_referral_code

A customer's invite code — one per customer. Returns the code on record, issuing their first if none exists. Pass replace to regenerate it: the old code stops working the moment the new one exists.

Request Parameters

FieldTypeRequiredDescription
customer_emailstringRequiredone of these twoThe customer's email
customer_idintegerRequiredone of these twoThe customer id
replacebooleanOptionaltrue regenerates the code in place

Response Fields

FieldTypeDescription
codestringTheir invite code
replacedbooleanWhether it was regenerated