reseller

PUT /v1/reseller/prices

Set your own price for one plan.

সমস্ত reseller এন্ডপয়েন্ট

প্রমাণীকরণ

একটি বিয়ারার টোকেন হিসেবে একটি এপিআই কি পাঠান। কি-টির অবশ্যই reseller.manage অনুমতি থাকতে হবে; এটি ছাড়া কোনো কি ৪০৪ নয়, বরং ৪০৩ ত্রুটি দিয়ে প্রত্যাখ্যাত হবে।

যেখানে আপনার অর্গানাইজেশন আইডি দেওয়া হবে

এই এন্ডপয়েন্টটি org_id-কে একটি কুয়েরি প্যারামিটার হিসেবে গ্রহণ করে। এটি বাদ দিলে কলটি আপনার পুরো টেনেন্সি সাবট্রিকে কভার করে; এটিকে পাঠালে কলটি একটি সংস্থায় সীমাবদ্ধ হয়।

আপনার ড্যাশবোর্ডের API কি স্ক্রিনে, কি-এর ঠিক পাশেই আপনার অর্গানাইজেশন আইডি রয়েছে। আপনি যে কলই করুন না কেন, সবগুলিতেই এই আইডি একই থাকে।

চেষ্টা করুন

কোণ বন্ধনীতে থাকা যেকোনো কিছু আপনার নিজস্ব মান দিয়ে এবং কী প্লেসহোল্ডারটি আপনার ড্যাশবোর্ডের একটি কী দিয়ে প্রতিস্থাপন করুন।

curl -X PUT https://api.zinndigital.com/v1/reseller/prices \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "plan_id": <Uuid>, "interval": <string>, "currency": <string>, "amount_minor": <integer> }'

লগ ইন করা আছে? আপনার ড্যাশবোর্ডের এপিআই কনসোল আপনার আসল অর্গানাইজেশন আইডি এবং আপনার নিজের কি পূরণ করে দেয়, এবং লাইভ এপিআই-এর বিপরীতে অনুরোধটি চালায় যাতে আপনি প্রকৃত প্রতিক্রিয়া দেখতে পান। এই এন্ডপয়েন্টটি এপিআই কনসোলে খুলুন

বিবরণ

Upserts one row of your price list, keyed on (plan, interval, currency). Editing it never re-prices a client already sold — their subscription captured the price at purchase. Requires `reseller.manage`.

পরামিতি

নামধরনআবশ্যকএটি কী
org_id (query)UuidনাWhich of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 r…

অনুরোধের বডি

নামধরনআবশ্যকএটি কী
plan_idUuidহ্যাঁUUIDv7 identifier — sortable by creation time (docs/02 §8).
intervalstringহ্যাঁ
currencystringহ্যাঁ
amount_minorintegerহ্যাঁ
is_activebooleanনা

প্রতিক্রিয়া

নামধরনআবশ্যকএটি কী
idUuid | nullনাNull when you have not authored this row yet.
plan_idUuidহ্যাঁUUIDv7 identifier — sortable by creation time (docs/02 §8).
plan_codestringহ্যাঁ
plan_namestringহ্যাঁ
intervalstringহ্যাঁ
currencystringহ্যাঁ
amount_minorintegerহ্যাঁWhat YOUR client pays, in minor units.
is_activebooleanহ্যাঁ
list_amount_minorobjectনাZinn®'s list price for the same plan.
wholesale_amount_minorobjectনাWhat the plan costs YOU after your wholesale discount.
wholesale_discount_bpsintegerনা
price_sourcestring<price_list, markup, unpriced>হ্যাঁWhether the price is one you set, one derived from list by your default markup, or absent because the catalogue holds no price in this currency.

এই এন্ডপয়েন্ট থেকে যেসব ত্রুটি আসতে পারে

401 · 403 · 404 · 422 · 429