Claim Earnings (off-chain)
Move all pending commission into the account's available balance. Instant; no chain interaction.
POST /referral/claim
Content-Type: application/json
Auth: Authorization: Bearer <JWT> from the EIP-712 login. API keys are not accepted.
Request body
{}
Response
{ "success": true, "amount": "45.00", "tx_hash": null }
| Field | Description |
|---|---|
amount | USDT credited this call |
tx_hash | Always null (off-chain settlement) |
Executed in one database transaction: pending earnings are marked claimed and the balance is credited.
Errors
| HTTP | code | Meaning |
|---|---|---|
| 400 | NO_PENDING_EARNINGS | Nothing pending |
| 400 | BELOW_MINIMUM | Pending < 10 USDT |
| 500 | DB_ERROR, TX_COMMIT_FAILED |