Authentifizierung
Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung reseller.manage verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.
Hier kommt Ihre Organisations-ID hin
Dieser Endpunkt akzeptiert org_id als Abfrageparameter. Lassen Sie ihn weg, erfasst der Aufruf Ihren gesamten Mandanten-Unterbaum; übergeben Sie ihn, um den Aufruf auf eine Organisation einzugrenzen.
Die ID Ihrer Organisation finden Sie im Dashboard auf dem Bildschirm für API-Schlüssel direkt neben dem Schlüssel selbst. Sie ist bei jedem Ihrer Aufrufe dieselbe.
Ausprobieren
Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem 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> }'Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole
Details
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`.
Parameter
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
org_id (query) | Uuid | Nein | 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… |
Anfragekörper
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
plan_id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
interval | string | Ja | — |
currency | string | Ja | — |
amount_minor | integer | Ja | — |
is_active | boolean | Nein | — |
Antwort
| Name | Typ | Erforderlich | Was es ist |
|---|---|---|---|
id | Uuid | null | Nein | Null when you have not authored this row yet. |
plan_id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
plan_code | string | Ja | — |
plan_name | string | Ja | — |
interval | string | Ja | — |
currency | string | Ja | — |
amount_minor | integer | Ja | What YOUR client pays, in minor units. |
is_active | boolean | Ja | — |
list_amount_minor | object | Nein | Zinn®'s list price for the same plan. |
wholesale_amount_minor | object | Nein | What the plan costs YOU after your wholesale discount. |
wholesale_discount_bps | integer | Nein | — |
price_source | string<price_list, markup, unpriced> | Ja | 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. |
Fehler, die dieser Endpunkt zurückgeben kann
401 · 403 · 404 · 422 · 429