affiliate

PATCH /v1/affiliate

Change your commission line or how you are paid.

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 PATCH https://api.zinndigital.com/v1/affiliate \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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`. **A change applies to new signups only.** Customers you have already referred keep the terms that were live when they converted — those terms are stored on the referral itself, so nothing here can reprice them.

Parameters

NaamTypeVerplichtWat dit is
org_id (query)stringNee

Aanvraaglichaam

NaamTypeVerplichtWat dit is
commission_planstring<recurring_12m, lifetime>Nee
payout_destinationstring<wallet, cash>Nee

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 · 404 · 422