extras
GET /v1/extra-purchases/{purchaseId}
Get an extra purchase.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.view; кључ без ње се одбија уз 403, а не 404.
Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X GET https://api.zinndigital.com/v1/extra-purchases/{purchaseId} \
-H "Authorization: Bearer zdk_live_…"Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Returns one extra purchase in scope with its status and outcome. Requires billing.view.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
purchaseId (path) | Uuid | Да | The extra purchase's id. |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
org_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
extra_id | Uuid | Да | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_id | object | Не | — |
domain_id | object | Не | — |
status | ExtraPurchaseStatus | Да | An extra purchase's lifecycle state. |
category | string | Да | — |
fulfilment_type | ExtraFulfilmentType | Да | How an extra is delivered. |
interval | ExtraInterval | Да | One-off charge or a recurring subscription. annual is a PURCHASE term only — an SEO tool bought twelve months at a time at V1's yearly saving (D19, 2026-09-25). No catalogue row… |
price | MoneyAmount | Да | A money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8). |
recurrence | string<none, active, ended> | Да | Whether the recurrence behind this purchase is still live. none = it never recurred (a one-off); active = a scheduled charge exists; ended = it recurred and no longer does.… |
next_renewal_on | object | Не | The next charge date, or null. Also null for a live charge that has no date scheduled yet, so read recurrence — not this field — to decide whether a purchase renews at all. |
sla_due_at | object | Не | — |
completed_at | object | Не | — |
failure_reason | string | Не | — |
created_at | string | Да | — |
updated_at | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 404 · 429