Layerbeat

Read affiliate dashboard

GET
/v1/affiliates

Returns your workspace's referral account, earnings and program rules.

Access: User session: workspace admin or owner. API keys aren't supported.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Successful response.

application/json
  1. response
account*|null
balance*
stats*
program*
curl -X GET 'https://layerbeat.com/v1/affiliates'
{  "account": null,  "balance": {    "pending_credit": "0.00",    "pending_cash": "0.00",    "available_credit": "0.00",    "available_cash": "0.00",    "reserved_cash": "0.00",    "credit_deficit": "0.00",    "cash_deficit": "0.00",    "currency": "USD"  },  "stats": {    "signups": 0,    "qualified_customers": 0  },  "program": {    "rate_bps": 500,    "duration_months": 12,    "hold_days": 30,    "attribution_days": 30,    "payout_minimum": "25.00",    "payout_processing_enabled": false  }}