Skip to main content
GET
cURL
Lists the customer’s referral codes, each customer they referred (asReferrer, newest first) with its status (pending, rewarded or refused) and refusedReason, and who referred them (asReferee). A promotion code the customer redeemed isn’t a referral, so it isn’t listed here; see List a customer’s redemptions. Needs the Customers permission at Read.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

customerId
string
required

Your ID for the customer.

Required string length: 1 - 255

Response

The customer's referral codes, the customers they referred, and who referred them. A promotion code they redeemed isn't a referral, so it isn't here.

codes
object[]
required
asReferrer
(object | null)[]
required

The customers this one referred, newest first.

The referral, when the code was a referrer's: rewarded at once for a signup program, pending until the referee's first payment for first_payment. Null for a promotion code.

asReferee
object | null
required

Who referred this customer, if anyone (their most recent referral).