Earn
Redeem from Earn
Take a position's money back, with everything it earned that hasn't been paid yet.
curl --request POST \
--url "https://reirex.com/api/v1/earn/redeem" \
--header "GX-API-KEY: $GX_API_KEY" \
--header "GX-API-TIMESTAMP: $TIMESTAMP" \
--header "GX-API-SIGN: $SIGNATURE" \
--header "Content-Type: application/json" \
--data '{"positionId":381}'200 OKapplication/json
{
"positionId": 381,
"productId": "USDT-flexible-0",
"currency": "USDT",
"kind": "flexible",
"apr": "0.0420",
"termDays": 0,
"amount": "1000.00000000",
"earned": "3.45205479",
"startedAt": "2026-09-14T10:02:44.120Z",
"endsAt": null,
"redeemedAt": "2026-10-14T16:14:15.412Z"
}A fixed term comes back by itself on its end date, and answers locked until then.
Bodyapplication/json
positionIdintegerrequiredThe position, from List Earn positions.
Response
positionIdintegerOur id for the position.
productIdstringThe product it is in.
currencystringWhat it holds.
kindstringcash,flexible,fixedorstaking.aprstringThe yearly rate:
0.0420is 4.2 % a year.termDaysintegerHow long the money is held, in days;
0for products that stay available.amountstringThe money put in.
earnedstringWhat it has earned so far, or paid out in all once redeemed.
startedAtstringWhen the money went in.
endsAtstring | nullWhen a fixed term ends;
nullfor the rest.redeemedAtstring | nullWhen it came back;
nullwhile it earns.

