reseller

PATCH /v1/reseller/currencies

Choose the currencies, the default, and what you sell in.

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

সমস্ত ডেভেলপার ডকুমেন্টেশন

প্রমাণীকরণ

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

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

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

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

চেষ্টা করুন

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

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

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

বিবরণ

currencies replaces the list your clients may be quoted in; send an empty array to go back to offering every currency we can charge. default_currency is what a client is quoted in before they choose and must be one you offer. sell_in_currency is what you are settled in and is deliberately not required to be one of them — a reseller may be paid in one currency and sell in others. switcher: false hides the control from your clients. A currency no payment gateway can capture is refused rather than dropped, because a currency we can display and cannot charge is a checkout that fails at the last step. 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…

অনুরোধের বডি

নামধরনআবশ্যকএটি কী
currenciesstring[]নাReplaces the list your clients may be quoted in. An empty array returns you to offering every currency we can charge.
default_currencystringনাEmpty returns to the platform answer. Must be one you offer.
sell_in_currencystringনাEmpty returns to the platform base currency. Deliberately not required to be one of currencies.
switcherbooleanনাWhether the currency control renders in your clients' panel.

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

নামধরনআবশ্যকএটি কী
currenciesResellerCurrency[]হ্যাঁ
offers_allbooleanহ্যাঁYou have made no choice, so your clients get every currency.
offered_countintegerহ্যাঁ
total_countintegerহ্যাঁ
default_currencystringহ্যাঁWhat a client is quoted in before they choose. Empty means the platform answer — their own inference, then USD.
sell_in_currencystringহ্যাঁWhat you are priced and settled in, resolved — never empty, and never disclosed to your clients.
switcherbooleanহ্যাঁWhether the currency control renders in your clients' panel at all. false quotes every client in default_currency.

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

401 · 403 · 404 · 422 · 429