reseller

GET /v1/reseller/services/{siteId}

One provisioned service.

Semua titik akhir reseller

Pengesahan

Hantar kunci API sebagai token pembawa. Kunci tersebut mesti membawa kebenaran reseller.view; kunci yang tidak mempunyainya akan ditolak dengan 403, bukan 404.

Tempat ID organisasi anda diletakkan

Titik akhir ini mengambil org_id sebagai parameter pertanyaan. Biarkan ia kosong dan panggilan tersebut meliputi keseluruhan subpohon penyewaan anda; hantarkannya untuk mengecilkan panggilan kepada satu organisasi.

ID organisasi anda terletak pada skrin kekunci API dalam papan pemuka anda, di sebelah kekunci itu sendiri. Ia adalah ID yang sama dalam setiap panggilan yang anda buat.

Cuba

Gantikan apa sahaja di dalam kurungan sudut dengan nilai anda sendiri, dan pemegang tempat kunci dengan kunci dari papan pemuka anda.

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

Sudah log masuk? Konsol API dalam papan pemuka anda mengisi id organisasi sebenar dan kunci anda sendiri, serta menjalankan permintaan terhadap API langsung supaya anda boleh melihat respons sebenar. Buka penamat ini dalam konsol API

Butiran

The same row `listResellerServices` returns, for one site. A site outside your client subtree is a 404, never a 403 — so this is not an existence oracle. Requires `reseller.view`.

Parameter

NamaJenisDiperlukanApakah ia
siteId (path)UuidYaSite ID (UUIDv7).
org_id (query)UuidTidakWhich of your organizations this applies to. Required only when you belong to more than one here.

Respons

NamaJenisDiperlukanApakah ia
site_idUuidYaUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_org_idUuidYaUUIDv7 identifier — sortable by creation time (docs/02 §8).
client_org_namestringYa
primary_domainstringYa
namestringTidak
statusSiteStatusYaA site's lifecycle state (docs/04 §3). A newly created site is `pending` until the provisioning workflow picks it up; `deleted` is terminal. `restricted` and `quarantined` are t…
product_lineobjectTidak
plan_codeobjectTidak
plan_nameobjectTidak
held_by_resellerbooleanTidakTrue when the current suspension was placed through this surface, which is the only case `unsuspendResellerService` will release. A site suspended by the abuse desk reports fals…
pending_deletion_atobjectTidakWhen a scheduled deletion falls due, or null.
sell_amount_minorobjectTidakWhat YOU charge for this plan, in minor units of `sell_currency` — your own price-list row if you have authored one, otherwise our list price with your default markup applied. N…
sell_currencyobjectTidak
created_atstringYa
disk_used_bytesobjectTidakNull when the hosting platform has no usage to report for this site.
bandwidth_used_bytesobjectTidakOutbound bandwidth this billing period, or null.
usage_measured_atobjectTidakWhen the reading was taken. Null alongside null usage — so "we have not measured this" is never mistaken for "it used nothing" (§2.44).

Ralat yang boleh dikembalikan oleh titik akhir ini

401 · 403 · 404 · 429