Аутентификација

Пошаљите 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.

Одговор

НазивТипОбавезноШта је ово
idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
extra_idUuidДаUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idobjectНе—
domain_idobjectНе—
statusExtraPurchaseStatusДаAn extra purchase's lifecycle state.
categorystringДа—
fulfilment_typeExtraFulfilmentTypeДаHow an extra is delivered.
intervalExtraIntervalДа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…
priceMoneyAmountДаA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
recurrencestring<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_onobjectНе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_atobjectНе—
completed_atobjectНе—
failure_reasonstringНе—
created_atstringДа—
updated_atstringДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 404 · 429