reseller

PUT /v1/reseller/prices

Set your own price for one plan.

Lahat ng reseller endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na reseller.manage; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Kung saan mapupunta ang id ng iyong organisasyon

Tinatanggap ng endpoint na ito ang org_id bilang parameter ng query. Huwag itong isama at saklaw ng tawag ang buong subtree ng iyong tenancy; ipadala ito para paliitin ang tawag sa isang organisasyon.

Ang id ng iyong organisasyon ay nasa screen ng mga API key sa iyong dashboard, sa tabi mismo ng key. Ito ang parehong id sa bawat tawag na gagawin mo.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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> }'

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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`.

Mga Parameter

PangalanUriKailanganAno ito
org_id (query)UuidHindiWhich 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…

Katawan ng kahilingan

PangalanUriKailanganAno ito
plan_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
intervalstringOo
currencystringOo
amount_minorintegerOo
is_activebooleanHindi

Tugon

PangalanUriKailanganAno ito
idUuid | nullHindiNull when you have not authored this row yet.
plan_idUuidOoUUIDv7 identifier — sortable by creation time (docs/02 §8).
plan_codestringOo
plan_namestringOo
intervalstringOo
currencystringOo
amount_minorintegerOoWhat YOUR client pays, in minor units.
is_activebooleanOo
list_amount_minorobjectHindiZinn®'s list price for the same plan.
wholesale_amount_minorobjectHindiWhat the plan costs YOU after your wholesale discount.
wholesale_discount_bpsintegerHindi
price_sourcestring<price_list, markup, unpriced>OoWhether 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.

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 422 · 429