affiliate

POST /v1/affiliate

Join the affiliate programme.

ყველა affiliate ენდპოინტი

ავტორიზაცია

API გასაღები გაგზავნეთ როგორც bearer token. ეს ენდპოინტი სპეციფიკაციაში არ მიუთითებს კონკრეტულ ნებართვას, ამიტომ მიანიჭეთ თქვენს გასაღებს მინიმალური საჭირო უფლებები და ვარაუდის ნაცვლად შეამოწმეთ პასუხი.

სwhere your organisation id goes-ის ადგილი

ეს ენდპოინტი იყენებს პარამეტრად org_id. მისი გამოტოვების შემთხვევაში ზარი ფარავს თქვენი იჯარის მთელ ქვეხეს, ხოლო გაგზავნისას ზარი შეიზღუდება მხოლოდ ერთ ორგანიზაციამდე.

თქვენი ორგანიზაციის ID მითითებულია თქვენი სამართავი პანელის API გასაღებების ეკრანზე, თავად გასაღებთან ახლოს. ის ერთნაირია თქვენ მიერ განხორციელებულ ყველა გამოძახებაში.

სცადეთ

შეSubstituted any value inside angle brackets with your own and the key placeholder with a key from your 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> }'

შესული ხართ? თქვენი სამართავ პანელში არსებული API კონსოლი ავტომატურად ამატებს თქვენი რეალური ორგანიზაციის ID-სა და საკუთარ გასაღებს და ატარებს მოთხოვნას ცოცხალ API-ს წინააღმდეგ, რათა იხილოთ რეალური პასუხი. გაAღით ეს ენდპოინტი 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