Convert earnings into Layerbeat credit
POST
Converts available referral earnings into the affiliate creator's personal credit. Keep the same Idempotency-Key when retrying.
Access: Verified user session: workspace admin or owner.
- Returns
503 referrals_pausedwhile Refer & Earn is coming soon. - Converted credit cannot be withdrawn or earn further commissions. Suspended referral accounts cannot convert earnings.
header
AuthorizationBearer <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.
X-Org-ID?stringSessions only: act on this organization (you must be a member). Default: your first organization.
Idempotency-Key*stringOne request identity. Reusing it with different input returns 409.
Length
1 <= length <= 200application/json- body
reward_kind*stringValue in
"credit""cash"amount*stringMatch
^[0-9]+[.][0-9]{2}$Successful response.
application/json- response
id*stringreward_kind*stringValue in
"credit""cash"amount*stringMatch
^[0-9]+[.][0-9]{2}$currency*"USD"Value in
"USD"created_at*stringFormat
date-timecurl -X POST 'https://layerbeat.com/v1/affiliates/conversions' \ -H 'Idempotency-Key: affiliate-request-unique-1' \ -H 'Content-Type: application/json' \ -d '{ "reward_kind": "credit", "amount": "1.00"}'{ "id": "conversion_abcdefghijklmnopqrstuvwxyz", "reward_kind": "credit", "amount": "1.00", "currency": "USD", "created_at": "2026-10-03T12:00:00Z"}