reseller

GET /v1/reseller/services

Everything you have provisioned for your clients.

Բոլոր reseller վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա reseller.view թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:

Որտեղ տեղադրվում է ձեր կազմակերպության ID-ն

Այs վերջնակետը ընդունում է org_id-ը որպես հարցման պարամետր: Բաց թողեք այն, և կանչը կընդգրկի ձեր ամբողջ վարձակալության ենթածառը. ուղարկեք այն՝ կանչը մեկ կազմակերպության վրա սահմանափակելու համար:

Ձեր կազմակերպության ID-ն գտնվում է Ձեր ղեկավարման վահանակի API բանալիների էկրանին՝ բուն բանալու կողքին: Այն նույն ID-ն է Ձեր կատարած յուրաքանչյուր հարցման մեջ:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

curl -X GET https://api.zinndigital.com/v1/reseller/services \
  -H "Authorization: Bearer zdk_live_…"

Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում

Մանրամասներ

One row per site across your client subtree — the client organization it belongs to, its plan, its lifecycle status, its disk and bandwidth usage, and the price *you* charge for it. This is the endpoint a billing panel polls to keep its own records in step with ours, and it is the answer to "what have I actually sold". Cursor-paginated. Requires `reseller.view`. Sites in your OWN organization are excluded: this surface is about what you resell, and mixing your own estate into it would make a billing panel invoice you for your own sites.

Պարամետրեր

ԱնունՏեսակՊահանջվում էԻնչ է դա
cursor (query)stringՈչOpaque cursor from a previous page's `page.next_cursor`.
limit (query)integerՈչMaximum items to return (page size).
org_id (query)UuidՈչ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…
client_org_id (query)UuidՈչNarrow to one client organization.
status (query)SiteStatusՈչNarrow to one site status.

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
dataResellerService[]Այո
pagePageMetaԱյո

Այս վերջնակետի կողմից վերադարձվող սխալները

401 · 403 · 404 · 429