affiliate

PATCH /v1/affiliate

Change your commission line or how you are paid.

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

אימות

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

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

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

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

נסה זאת

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

curl -X PATCH https://api.zinndigital.com/v1/affiliate \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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

פרטים

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.

פרמטרים

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

גוף הבקשה

שםסוגנדרשמה זה
commission_planstring<recurring_12m, lifetime>לא
payout_destinationstring<wallet, cash>לא

תשובה

שםסוגנדרשמה זה
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 · 404 · 422