extras

GET /v1/extra-purchases/{purchaseId}

Get an extra purchase.

Wszystkie punkty końcowe extras

Wszystkie dokumentacje dla programistów

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie billing.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X GET https://api.zinndigital.com/v1/extra-purchases/{purchaseId} \
  -H "Authorization: Bearer zdk_live_…"

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

Returns one extra purchase in scope with its status and outcome. Requires billing.view.

Parametry

NazwaTypWymaganeCo to jest
purchaseId (path)UuidTakThe extra purchase's id.

Odpowiedź

NazwaTypWymaganeCo to jest
idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
extra_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idobjectNie
domain_idobjectNie
statusExtraPurchaseStatusTakAn extra purchase's lifecycle state.
categorystringTak
fulfilment_typeExtraFulfilmentTypeTakHow an extra is delivered.
intervalExtraIntervalTakOne-off charge or a recurring subscription.
priceMoneyAmountTakA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
recurrencestring<none, active, ended>TakWhether 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_onobjectNieThe 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_atobjectNie
completed_atobjectNie
failure_reasonstringNie
created_atstringTak
updated_atstringTak

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 429