Claim a referral code
Changed onRequest
- Base URLhttps://api.ethereal.trade
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"data": {
"code": "XYZ123456789",
"sender": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"signedAt": 1712019600
}
}Response
Example response
{
"code": "XYZ123456789",
"codeUsageRemaining": 5,
"createdAt": 1712019600000,
"id": "9036443a-441a-4a66-87f2-bd5c44cdca7a",
"referee": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3",
"refereeTotalPoints": "1234567.890000000",
"referrer": "0x41e038d9c9aF27369EcBCe72A69a96695A1fD0D3"
}Changes
- info
added the non-success response with the status
- info
- breaking
added to the
/request propertyallOflist - breaking
removed the enum value
0.00of the request property/ - breaking
removed the enum value
1.00of the request property/ - breaking
removed the enum value
2.00of the request property/ - breaking
removed the enum value
3.00of the request property/ - breaking
the
/request property type changed fromnumberto no type - info
the
response's property default valueBad Requestwas removed for the status - info
the
response's property default valueForbiddenwas removed for the status - info
the
response's property default valueNot Foundwas removed for the status - info
the
response's property default valueToo Many Requestswas removed for the status - info
the
response's property default valueUnauthorizedwas removed for the status - info
the
response's property default valueUnprocessable Entitywas removed for the status - info
the
response's property default value400was removed for the status - info
the
response's property default value401was removed for the status - info
the
response's property default value403was removed for the status - info
the
response's property default value404was removed for the status - info
the
response's property default value422was removed for the status - info
the
response's property default value429was removed for the status - info
response property
messagelist-of-types was narrowed by removing typesarrayfrom media typeapplication/jsonof response400
- breaking