reseller
PUT /v1/reseller/lines
Turn product lines on or off for your clients.
Autentifikacija
Pošaljite API ključ kao bearer token. Ključ mora imati dozvolu reseller.manage; ključ bez nje se odbija sa 403, a ne sa 404.
Gde ide ID vaše organizacije
Ova krajnja tačka prihvata org_id kao parametar upita. Izostavite ga i poziv obuhvata celokupno stablo vašeg zakupca; pošaljite ga da biste suzili poziv na jednu organizaciju.
ID vaše organizacije nalazi se na ekranu sa API ključevima u vašoj kontrolnoj tabli, pored samog ključa. To je isti ID u svakom pozivu koji uputite.
Isprobajte
Zamenite bilo šta u uglastim zagradama sopstvenim vrednostima, a ključni placeholder sa ključem sa vaše kontrolne table.
curl -X PUT https://api.zinndigital.com/v1/reseller/lines \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "disabled": <string[]> }'Prijavljeni ste? API konzola na vašoj kontrolnoj tabli automatski popunjava ID vaše stvarne organizacije i vaš sopstveni ključ, i izvršava zahtev nad API-jem uživo tako da možete videti stvarni odgovor. Otvorite ovu krajnju tačku u API konzoli
Detalji
Send the complete set of line codes you are turning **off**; anything not listed is on. A line that is off cannot be bought by your clients through any route — it is hidden from their catalogue and refused at the basket, not merely unadvertised. Clients already on a plan in that line keep it and keep renewing; only new orders are refused. You cannot turn off every line at once — ask us to pause your programme instead. Requires `reseller.manage`.
Parametri
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
org_id (query) | Uuid | Ne | 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… |
Telo zahteva
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
disabled | string[] | Da | The complete set of product-line codes to turn OFF. Anything absent is on. A replacing set rather than a patch, so the last save is the truth. |
Odgovor
| Naziv | Vrsta | Obavezno | Šta je ovo |
|---|---|---|---|
data | ResellerLine[] | Da | — |
Greške koje ovaj krajnji tačka može da vrati
401 · 403 · 404 · 422 · 429