Autenticazione
Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione reseller.manage; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.
L'ID della tua organizzazione va qui
Questo endpoint accetta org_id come parametro di query. Omettilo e la chiamata coprirà l'intero sottoalbero del tuo tenant; invialo per limitare la chiamata a una singola organizzazione.
L'identificativo della tua organizzazione si trova nella schermata delle chiavi API nella tua dashboard, accanto alla chiave stessa. È lo stesso identificativo in ogni chiamata che effettui.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua 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> }'Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API
Dettagli
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`.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
org_id (query) | Uuid | No | 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… |
Corpo della richiesta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
plan_id | Uuid | Sì | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
interval | string | Sì | — |
currency | string | Sì | — |
amount_minor | integer | Sì | — |
is_active | boolean | No | — |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
id | Uuid | null | No | Null when you have not authored this row yet. |
plan_id | Uuid | Sì | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
plan_code | string | Sì | — |
plan_name | string | Sì | — |
interval | string | Sì | — |
currency | string | Sì | — |
amount_minor | integer | Sì | What YOUR client pays, in minor units. |
is_active | boolean | Sì | — |
list_amount_minor | object | No | Zinn®'s list price for the same plan. |
wholesale_amount_minor | object | No | What the plan costs YOU after your wholesale discount. |
wholesale_discount_bps | integer | No | — |
price_source | string<price_list, markup, unpriced> | Sì | 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. |
Errori che questo endpoint può restituire
401 · 403 · 404 · 422 · 429