🎉 Black Friday: 30% off your first payment — ends Monday, Nov 30Claim 30% off
Docs
/v1/affiliate · Affiliate

Affiliate API

Affiliate endpoints expose your referral link, commission and earnings, payout history, and the payout request action. Amounts are returned in USD cents, matching Stripe.

Affiliate profile

GET/api/v1/affiliate
{
  "data": {
    "has_profile": true,
    "referral_code": "YOURCODE",
    "referral_url": "https://xbeast.io/?ref=YOURCODE",
    "commission_rate": 0.3,
    "minimum_payout_usd": 50,
    "currency": "usd",
    "pending_payout": null
  }
}

Earnings and payouts

GET/api/v1/affiliate/earnings
Returns total earnings, earnings owed, payout history and per-invoice detail. Use earnings_owed_cents to check whether the balance reaches the minimum.

Request a payout

POST/api/v1/affiliate/payouts

Body

FieldTypeRequiredDescription
amountnumberNoUSD amount to request. Defaults to the full available balance.
curl -X POST "https://xbeast.io/api/v1/affiliate/payouts" \
  -H "Authorization: Bearer xb_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 50 }'
Payouts are sent as USDC on Ethereum or Base. A request is rejected when the balance is below the minimum or a previous request is still pending.

Related