reseller

PUT /v1/reseller/prices

Set your own price for one plan.

ټول reseller پای ټکي

تصدیق‌هویت

یو API کی د بیئرر ټوکن (bearer token) په توګه ولیکئ. کی باید د reseller.manage اجازه ولري؛ له دې اجازې پرته کی د 404 پرځای د 403 په واسطه رد کیږي.

چیرته چې ستاسو د سازمان آی ډي ځي

دا پای ټکی د پوښتنې پیرامیتر په توګه 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> }'

ننوتي یاست؟ ستاسو په ډشبورډ کې د API کنسول ستاسو د اصلي سازمان ID او ستاسو خپله کیلي ډکوي، او غوښتنه د ژوندی API په وړاندې پرمخ وړي ترڅو تاسو وکولی شئ اصلي ځواب وګورئ. دا پای ټکی (endpoint) د API په کنسول کې پرانیزئ

تفصیلات

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