Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na billing.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
curl -X GET https://api.zinndigital.com/v1/extras \
-H "Authorization: Bearer zdk_live_…"Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
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).
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
product_line (query) | string | Hindi | Only extras offered on this product line. |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
data | Extra[] | Oo | — |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 429