Skip to main content
POST
Create a referral

Body Parameters

Example Request

Response

Notes

  • The referral is created with a pending status. It transitions to completed once the referred customer completes their first payment.
  • The reward is credited to the referrer’s account balance only after the referral reaches completed status.
  • A customer cannot refer themselves. Attempting to set referrer_id equal to referred_id returns a 422 error.
  • Each referred customer can only be linked to one referrer. Duplicate referrals for the same referred_id return a 409 Conflict.
Use the Generate Referral Code endpoint to create shareable referral codes that automatically link referrals on sign-up.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Body

application/json
referrer_id
string<uuid>
required
referred_id
string<uuid>
required
reward_amount
integer<int64>
default:500

Reward in the lowest currency unit (defaults to 500 = $5.00).

currency
string
default:USD

Response

Referral created.

data
object