reseller
GET /v1/reseller/services
Everything you have provisioned for your clients.
Аутентификация
API кілтін bearer токені ретінде жіберіңіз. Кілтте reseller.view рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.
Ұйымыңыздың идентификаторы орналасатын жер
Бұл соңғы нүкте сұрау параметрі ретінде org_id мәнін қабылдайды. Оны бос қалдырсаңыз, шақыру бүкіл жалға алушы тармағын қамтиды; шақыруды бір ұйымға шектеу үшін оны жіберіңіз.
Сіздің ұйым идентификаторыңыз басқару панеліндегі API кілттері экранында, кілттің өзінің жанында орналасқан. Бұл сіз жасайтын әрбір шақырудағы бірдей идентификатор.
Әрекет етіп көру
Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.
curl -X GET https://api.zinndigital.com/v1/reseller/services \
-H "Authorization: Bearer zdk_live_…"Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған 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.
Параметрлер
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
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. |
Жауап
| Аты | Tүрі | Міндетті | Мазмұны |
|---|---|---|---|
data | ResellerService[] | Иә | — |
page | PageMeta | Иә | — |
Бұл соңғы нүкте қайтара алатын қателер
401 · 403 · 404 · 429