extras

GET /v1/extra-purchases/{purchaseId}

Get an extra purchase.

Bütün extras nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Açar billing.view icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

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

Parametrlər

AdTipTələb olunurNədir
purchaseId (path)UuidBəliThe extra purchase's id.

Cavab

AdTipTələb olunurNədir
idUuidBəliUUIDv7 identifier — sortable by creation time (docs/02 §8).
org_idUuidBəliUUIDv7 identifier — sortable by creation time (docs/02 §8).
extra_idUuidBəliUUIDv7 identifier — sortable by creation time (docs/02 §8).
site_idobjectXeyr
domain_idobjectXeyr
statusExtraPurchaseStatusBəliAn extra purchase's lifecycle state.
categorystringBəli
fulfilment_typeExtraFulfilmentTypeBəliHow an extra is delivered.
intervalExtraIntervalBəliOne-off charge or a recurring subscription.
priceMoneyAmountBəliA money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8).
recurrencestring<none, active, ended>BəliWhether 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_onobjectXeyrThe 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_atobjectXeyr
completed_atobjectXeyr
failure_reasonstringXeyr
created_atstringBəli
updated_atstringBəli

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 429