affiliate

POST /v1/affiliate

Join the affiliate programme.

כל נקודות הקצה מסוג affiliate

אימות

שלח מפתח API כטוקן Bearer. נקודת קצה זו אינה מציינת הרשאת ספציפית במפרט, לכן הקצה למפתח שלך את המינימום הנדרש ובדוק את התגובה במקום להניח הנחות.

המקום שבו מזהה הארגון שלך נכנס

נקודת קצה זו מקבלת את org_id כפרמטר שאילתת חיפוש. השאר אותו ריק והקריאה תכסה את כל תת-עץ הדיירות שלך; שלח אותו כדי לצמצם את הקריאה לארגון אחד.

מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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> }'

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

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.

פרמטרים

שםסוגנדרשמה זה
org_id (query)stringלא

גוף הבקשה

שםסוגנדרשמה זה
commission_planstring<recurring_12m, lifetime>כן
payout_destinationstring<wallet, cash>כן
accept_termsbooleanכןMust be `true`. An affiliate agreement is a contract about money, so acceptance is recorded explicitly rather than assumed.

תשובה

שםסוגנדרשמה זה
idstringכן
org_idstringכן
statestring<pending, approved, rejected, suspended>כן
codestringכןThe 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_urlstringכןThe link to share — the public site with `?ref=CODE`.
commission_planstring<recurring_12m, lifetime>כןThe line **new** referrals will be created on. Changing it never affects customers already referred.
payout_destinationstring<wallet, cash>כן
kyc_statestring<not_required, required, submitted, verified, rejected>כן
review_notestringלא
terms_accepted_atstringלא
applied_atstringלא

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 409 · 422