affiliate

POST /v1/affiliate

Join the affiliate programme.

Alle affiliate-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. Dit eindpunt vermeldt geen specifieke toestemming in de specificatie, dus geef uw sleutel de minimale rechten die nodig zijn en controleer het antwoord in plaats van zomaar wat aan te nemen.

Waar je organisatie-id komt te staan

Dit eindpunt accepteert org_id als queryparameter. Laat deze achterwege en de aanroep destilleert je gehele tenant-substructie; stuur deze mee om de aanroep te beperken tot één organisatie.

Uw organisatie-id staat op het scherm met API-sleutels in uw dashboard, naast de sleutel zelf. Dit is in elke aanroep die u doet dezelfde id.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

curl -X POST https://api.zinndigital.com/v1/affiliate \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "commission_plan": <string<recurring_12m, lifetime>>, "payout_destination": <string<wallet, cash>>, "accept_terms": <boolean> }'

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

Gated on `affiliate.manage`. The account lands `pending` and accrues nothing until staff approve it — otherwise the programme is an open invitation to self-refer at scale. Choosing cash payouts sets `kyc_state` to `required`; wallet credit needs no verification because the money never leaves the platform.

Parameters

NaamTypeVerplichtWat dit is
org_id (query)stringNee

Aanvraaglichaam

NaamTypeVerplichtWat dit is
commission_planstring<recurring_12m, lifetime>Ja
payout_destinationstring<wallet, cash>Ja
accept_termsbooleanJaMust be `true`. An affiliate agreement is a contract about money, so acceptance is recorded explicitly rather than assumed.

Reactie

NaamTypeVerplichtWat dit is
idstringJa
org_idstringJa
statestring<pending, approved, rejected, suspended>Ja
codestringJaThe referral code. Its alphabet excludes the characters people transcribe wrongly (`0`/`O`, `1`/`I`/`l`), because it is read aloud and typed off a slide.
referral_urlstringJaThe link to share — the public site with `?ref=CODE`.
commission_planstring<recurring_12m, lifetime>JaThe line **new** referrals will be created on. Changing it never affects customers already referred.
payout_destinationstring<wallet, cash>Ja
kyc_statestring<not_required, required, submitted, verified, rejected>Ja
review_notestringNee
terms_accepted_atstringNee
applied_atstringNee

Fouten die dit eindpunt kan retourneren

401 · 403 · 409 · 422