Skip to main content
POST
cURL
Returns the customer’s code in a referral program: made on the first call, the same one on every call after. Codes are 8 characters from A-Z and 2-9 without 0, O, 1, I or L, unique among your codes of every kind. The customer who signs up with it redeems it with Redeem a code. 404 referral_program_not_found for an unknown or archived program. Needs the Customers permission at Write.

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

Body

application/json
programId
string
required

The referral program the code is for.

Required string length: 1 - 100

Response

The customer's referral code in the program: made on the first call, the same one after.

code
string
required

8 characters from A-Z and 2-9, without 0, O, 1, I or L. The same code on every call.

programId
string
required
customerId
string
required
createdAt
string
required