reseller

PATCH /v1/reseller/currencies

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

تمام reseller اینڈ پوائنٹس

توثيقِ شناخت

ایک بیرر ٹوکن کے طور پر ایک API کی بھیجیں۔ کی کے پاس reseller.manage اجازت ہونی چاہیے؛ اس کے بغیر کی کو 404 کے بجائے 403 کے ساتھ مسترد کر دیا جاتا ہے۔

جہاں آپ کی تنظیم کی آئی ڈی آتی ہے

یہ اینڈ پوائنٹ org_id کو بطور کوئری پیرامیٹر لیتا ہے۔ اسے چھوڑ دیں اور کال آپ کے پورے ٹیننسی سب ٹری کا احاطہ کرے گی؛ کال کو کسی ایک آرگنائزیشن تک محدود کرنے کے لیے اسے بھیجیں۔

آپ کی تنظیم کی آئی ڈی آپ کے ڈیش بورڈ پر API کیز کی سکرین پر، خود کلید کے ساتھ موجود ہوتی ہے۔ یہ آپ کی کی جانے والی ہر کال میں ایک ہی آئی ڈی ہوتی ہے۔

آزمائیں

کوئی بھی چیز جو زاویہ دار قوسین میں ہو اسے اپنی اقدار سے بدلیں، اور کلیدی پلیس ہولڈر کو اپنے ڈیش بورڈ کی کسی کلید سے بدلیں۔

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

لاگ ان ہیں؟ آپ کے ڈیش بورڈ میں موجود API کنسول آپ کی حقیقی تنظیم کی آئی ڈی اور آپ کی اپنی کلید خود بخود پُر کر دیتا ہے، اور لائیو API پر درخواست چلاتا ہے تاکہ آپ اصل ردعمل دیکھ سکیں۔ اس اینڈ پوائنٹ کو API کنسول میں کھولیں

تفصیلات

`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 r…

درخواست کا باڈی

نامقسملازمییہ کیا ہے
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