reseller

PUT /v1/reseller/prices

Set your own price for one plan.

Gbogbo àwọn reseller endpoints

Ìfàṣẹ́pọ̀

Fi bọ́ọ̀lù (bearer token) ranṣẹ gẹ́gẹ́ bí kọ́kọ́rọ́ API. Kọ́kọ́rọ́ náà gbọ́dọ̀ ní ìyọ̀ǹda reseller.manage; a ó kọ̀ ọ́ silẹ pẹlu 403, kii ṣe 404, ti kọ́kọ́rọ́ náà kò bá ní i.

Ibùdó àmì ìdánimọ̀ ilé-iṣẹ́ rẹ sí

Oju-iwọle yii nlo org_id gẹgẹbi ayẹwo ibeere. Fi silẹ ni ita yoo si bo igi iyalo rẹ lapapọ; ranṣẹ si lati dín ibeere naa kù si ajọ kan.

Id àjọ rẹ wa lórí ojú-ìwákòòkò àwọn bọ́tìnnì API nínú daṣibọọdú rẹ, lẹ́gbẹ̀ẹ́ bọ́tìnnì náà gan-an. Ó jẹ́ ìd kan náà nínú gbogbo ìpè tí o bá ṣe.

Gbiyanju rẹ

Rọ́pọ̀ èyíkéyìí nínú àwọn àmì ìtọ́ka < > pẹ̀lú iye tirẹ̀, àti àmì ìdánimọ̀ bọ́tìnnì náà pẹ̀lú bọ́tìnnì kan láti inú dásibọ̀ọ̀dù rẹ.

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

Ṣé o ti wọlé? Iwọ̀n api ní nú ìgbékalẹ̀ rẹ kún id àjọ gidi rẹ ati bọtini tirẹ, o si nṣiṣẹ ibeere na lòdì si api gidi ki o le rii esi gidi na. Ṣí ojú abáná yìí sílẹ̀ nínú kọnsólù API

Àwọn kúlẹ̀kúlẹ̀

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

Àwọn ìpìlẹ̀

OrúkọIruTí a nílòKini o jẹ
org_id (query)UuidBẹẹkọ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…

Akoonu ibeere naa

OrúkọIruTí a nílòKini o jẹ
plan_idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
intervalstringBẹẹni
currencystringBẹẹni
amount_minorintegerBẹẹni
is_activebooleanBẹẹkọ

Idahun

OrúkọIruTí a nílòKini o jẹ
idUuid | nullBẹẹkọNull when you have not authored this row yet.
plan_idUuidBẹẹniUUIDv7 identifier — sortable by creation time (docs/02 §8).
plan_codestringBẹẹni
plan_namestringBẹẹni
intervalstringBẹẹni
currencystringBẹẹni
amount_minorintegerBẹẹniWhat YOUR client pays, in minor units.
is_activebooleanBẹẹni
list_amount_minorobjectBẹẹkọZinn®'s list price for the same plan.
wholesale_amount_minorobjectBẹẹkọWhat the plan costs YOU after your wholesale discount.
wholesale_discount_bpsintegerBẹẹkọ
price_sourcestring<price_list, markup, unpriced>BẹẹniWhether 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.

Awọn aṣiṣe ti ibudo ipari yii le da pada

401 · 403 · 404 · 422 · 429