Referrals
Get per-code performance for a referrer
Changed onRedemptions and traded volume per referral code. Not paginated: an affiliate is capped at a handful of codes, so the whole set fits one response.
get/api/v1/referrals/code-performance
Request
- Base URLhttps://api.mainnet.aptoslabs.com/decibel
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
referrer_accountstring required
The referrer's wallet address (not a subaccount address)
daysinteger
Trailing UTC days the volume columns cover. Defaults to 30, clamped to 90.
Response
Per-code redemption and volume stats
Changes
- info
endpoint added
- info