Skip to main content

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 }
FieldDescription
amountUSDT credited this call
tx_hashAlways null (off-chain settlement)

Executed in one database transaction: pending earnings are marked claimed and the balance is credited.

Errors

HTTPcodeMeaning
400NO_PENDING_EARNINGSNothing pending
400BELOW_MINIMUMPending < 10 USDT
500DB_ERROR, TX_COMMIT_FAILED