Kimlik Doğrulama
Bearer token olarak bir API anahtarı gönderin. Anahtar billing.view iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.
Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X GET https://api.zinndigital.com/v1/extras \
-H "Authorization: Bearer zdk_live_…"Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
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).
Parametreler
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
product_line (query) | string | Hayır | Only extras offered on this product line. |
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
data | Extra[] | Evet | — |
Bu uç noktanın dönderebileceği hatalar
401 · 403 · 429