List me

Answers the richer self-view: the same lifetime accrued, pending and paid commission and payout history, plus the caller's downline broken out by upline LEVEL — direct, second, third — each with the rate paid at that level and how many orgs sit there.

GET /v1/affiliate/me

Addresshttps://api.hanzo.ai/v1/affiliate/me
MethodGET
Operationget_affiliate_me
AuthAuthorization: Bearer $HANZO_API_KEY

Answers the richer self-view: the same lifetime accrued, pending and paid commission and payout history, plus the caller's downline broken out by upline LEVEL — direct, second, third — each with the rate paid at that level and how many orgs sit there.

Commission is MULTI-LEVEL: a referred org's spend pays up its referral chain, three levels deep and no further. The direct level is the affiliate's own negotiated rate; the second and third are platform-wide switches, read live, so the schedule shown is the one actually in force rather than one compiled in. A caller that has not applied still gets that schedule alongside isAffiliate:false, so the console can show what it would earn.

Scoped to the validated org and nothing else, and refused without a principal. A PURE READ — it reports the downline but accrues nothing.

Request

GET /v1/affiliate/me takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200affiliate.affiliateSelfok
defaultproblem-detailsrefused

200 body — 28 fields.

FieldInTypeAlwaysDescription
accruedCentsbodyinteger (int64)—AccruedCents is lifetime commission accrued, in cents.
codebodystring—Code is the minted referral code, the slug the ?aff link carries.
defaultRateBpsbodyinteger (int64)—DefaultRateBps is the direct rate a new affiliate starts at, in basis points of margin (2000 = 20%).
downlineTotalbodyinteger (int64)—DownlineTotal counts every org in the caller's downline across the levels.
handlebodystring—Handle is the opt-in public leaderboard name.
idbodystring—ID is the affiliate's server-minted handle, "aff_"-prefixed.
isAffiliatebodyboolean—IsAffiliate says whether the caller org has an affiliate record.
levelsbodyaffiliate.levelView[]—Levels is the caller's downline per upline level, with the rate paid there.
levels[].downlineCountbodyinteger (int64)—DownlineCount is how many orgs sit exactly this many hops below the caller.
levels[].levelbodyinteger (int64)—Level is the upline distance from the org whose spend is being shared: 1 is the direct referrer, 2 and 3 the referrers above it.
levels[].rateBpsbodyinteger (int64)—RateBps is the commission paid at this level, in basis points OF Hanzo's margin (2000 = 20% of margin, never of the customer's bill).
linkbodystring—Link is the shareable ?aff URL built from the code.
marginBpsbodyinteger (int64)—MarginBps is the platform gross-margin fraction, in basis points, that every rate here is a rate OF.
paidCentsbodyinteger (int64)—PaidCents is lifetime commission already paid out, in cents — credits grants and record-only cash disbursements alike.
payoutsbodyaffiliate.remittance[]—Payouts is the payout history, newest first, bounded to the last 100 rows.
payouts[].amountCentsbodyinteger (int64)—AmountCents is the amount disbursed, in cents.
payouts[].createdAtbodyinteger (int64)—CreatedAt is when the payout was recorded, Unix seconds UTC — when the balance moved, not necessarily when the cash landed.
payouts[].idbodystring—ID is the payout row's server-minted handle, "apo_"-prefixed.
payouts[].methodbodystring—Method is how it was settled.
payouts[].referencebodystring—Reference is the operator's settlement note — a bank id, a ledger ref.
payouts[].txnbodystring—Txn is the commerce ledger transaction id, set ONLY where a "credits" payout actually issued the grant.
pendingCentsbodyinteger (int64)—PendingCents is accrued minus paid, in cents — what the platform still owes and the ceiling on the next payout.
rateBpsbodyinteger (int64)—RateBps is the caller's OWN direct (level 1) commission rate, in basis points of margin.
schedulebodyaffiliate.levelView[]—Schedule is the rate schedule quoted to a caller that has not applied.
schedule[].downlineCountbodyinteger (int64)—DownlineCount is how many orgs sit exactly this many hops below the caller.
schedule[].levelbodyinteger (int64)—Level is the upline distance from the org whose spend is being shared: 1 is the direct referrer, 2 and 3 the referrers above it.
schedule[].rateBpsbodyinteger (int64)—RateBps is the commission paid at this level, in basis points OF Hanzo's margin (2000 = 20% of margin, never of the customer's bill).
statusbodystring—Status is "applied", "approved" or "suspended"; absent for a caller that never applied.

Failure carries the platform error shape — see Errors.

Examples

hanzo affiliate me get
import { Configuration, AffiliateApi } from 'hanzoai';

const api = new AffiliateApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getAffiliateMe();
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AffiliateApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AffiliateApi(client).get_affiliate_me()
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.AffiliateAPI.GetAffiliateMe(context.Background()).Execute()
if err != nil {
	return err
}
use hanzo_client::apis::{configuration::Configuration, affiliate_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = affiliate_api::get_affiliate_me(&cfg, Default::default()).await?;
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AffiliateApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new AffiliateApi(client).getAffiliateMe();
curl https://api.hanzo.ai/v1/affiliate/me \
  -H "Authorization: Bearer $HANZO_API_KEY"

Tool affiliate, op get_affiliate_me — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.

curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "affiliate",
         "arguments": {
           "op": "get_affiliate_me",
           "input": {}
         }
       }
     }'

Affiliate API · All Hanzo APIs · Interactive reference

Was this page useful?