reseller

GET /v1/reseller/clients/{orgId}/plan

Which plan this client is on, and what it costs you.

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 ID organisasi anda dalam URL itu sendiri, sebagai orgId. Gantikannya ke dalam laluan — tiada pengepala atau parameter pertanyaan yang akan melakukan sebaliknya.

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/clients/{orgId}/plan \
  -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 client's live plan, or nulls when they are not on one yet. `wholesale_amount_minor` is what Zinn® charges **you** per period for it — integer minor units, `null` and never `0` when the catalogue does not price it in the currency asked for. Requires `reseller.view`. An organization that is not one of your clients is a `404`, not a `403`, so this cannot be used to discover that an organization exists.

Parameter

NamaJenisDiperlukanApakah ia
orgId (path)UuidYaOne of your client organizations.
org_id (query)UuidTidakWhich of YOUR organizations is asking. Required only when you belong to more than one. Not to be confused with the path parameter, which is your client.
currency (query)stringTidakISO 4217 code the wholesale figure is quoted in. Defaults to `USD`.

Respons

NamaJenisDiperlukanApakah ia
client_org_idUuidYaUUIDv7 identifier — sortable by creation time (docs/02 §8).
subscription_idstringTidakPass this as `subscription_id` on `createSite`. Null when the client is on no plan — provisioning a site in that state is what leaves it unbilled.
plan_codestringTidak
plan_namestringTidak
intervalstringTidak
createdbooleanYaTrue when this call granted the plan, false when the client was already on it. A retried provision needs the difference without inferring it from a timestamp.
wholesale_amount_minorintegerTidakWhat Zinn® charges you per period. `null`, never `0`, when unpriced.
wholesale_currencystringTidak

Ralat yang boleh dikembalikan oleh titik akhir ini

401 · 403 · 404 · 429