Affiliates

GET /api/v1/affiliates/codes/{account}

Returns referral codes owned by an account with per-code usage stats. Affiliate codes (is_affiliate = true) are always returned. Non-affiliate codes are only returned if the account has >= $1,000 all-time trade volume. Maps to the Affiliates dashboard.

get/api/v1/affiliates/codes/{account}

Request

  • Base URL
    https://api.mainnet.aptoslabs.com/decibel
  • URL
    https://api.mainnet.aptoslabs.com/decibel/api/v1/affiliates/codes/{account}
  • Auth
    HTTP bearer

Path parameters

accountstring required

The owner's wallet address (not a subaccount address)

Response

Affiliate codes with usage stats

owner_accountstring required

The owner's wallet address

volume_threshold_metboolean required

Whether the account meets the minimum trade volume threshold to see non-affiliate (auto-generated) codes

Changes

No recorded changes to this operation across all 1 revision of this API.