Panelr

Customer Credits

GET ?action=get_referral_customer

One customer's full credit standing — balance, invite code, who invited them, who they invited, their lines, and the ledger itself.

Request Parameters

FieldTypeRequiredDescription
emailstringRequiredone of these twoThe customer's email
customer_idintegerRequiredone of these twoThe customer id
ledger_limitintegerOptionalLedger entries to return, max 500 (default 100)

Response Fields

FieldTypeDescription
balanceintegerCurrent credit balance
codesarrayTheir invite code (one per customer) with disabled_at
referred_byobject|nullWho invited them
invitedarrayEveryone they invited
linesarrayThe lines attached to their login
ledgerarrayEvery credit movement: delta, reason, order, service, note, date