Autentikasi
Kirim kunci API sebagai token bearer. Kunci tersebut harus memiliki izin billing.view; kunci tanpa izin tersebut akan ditolak dengan status 403, bukan 404.
Endpoint ini tidak memerlukan id organisasi. Kunci Anda telah mengidentifikasi organisasi tempatnya berafiliasi, dan respons akan dibatasi untuk organisasi tersebut.
Coba
Ganti apa pun di dalam tanda kurung sudut dengan nilai Anda sendiri, dan placeholder kunci dengan kunci dari dasbor Anda.
curl -X GET https://api.zinndigital.com/v1/extras \
-H "Authorization: Bearer zdk_live_…"Sudah masuk? Konsol API di dasbor Anda akan mengisi ID organisasi asli dan kunci Anda sendiri, serta menjalankan permintaan terhadap API langsung sehingga Anda dapat melihat respons aktualnya. Buka titik akhir ini di konsol API
Detail
The extras (services) catalog — DB maintenance, SSL setup, managed migration, malware cleanup, and more (docs/26). Optionally filtered to those offered on a product line. Requires `billing.view`. **`price` is in the caller's currency.** `Extra` rows are stored in the base currency only (there is no per-currency price table as plans have), so each price is converted per request from the cached FX rates and `price.currency` reports the code actually used — which falls back to the base currency when the requested one has no stored rate, rather than labelling an unconverted amount with the requested symbol. Send `X-Zinn-Currency` to choose. `purchaseExtra` applies the **same** conversion and captures it, so the amount shown here is the amount billed (#471).
Parameter
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
product_line (query) | string | Tidak | Only extras offered on this product line. |
Tanggapan
| Nama | Jenis | Wajib | Tentang apa ini |
|---|---|---|---|
data | Extra[] | Ya | — |
Kesalahan yang dapat dikembalikan oleh titik akhir ini
401 · 403 · 429