Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na billing.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
curl -X GET https://api.zinndigital.com/v1/extra-purchases/{purchaseId} \
-H "Authorization: Bearer zdk_live_…"Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
Returns one extra purchase in scope with its status and outcome. Requires `billing.view`.
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
purchaseId (path) | Uuid | Oo | The extra purchase's id. |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
org_id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
extra_id | Uuid | Oo | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_id | object | Hindi | — |
domain_id | object | Hindi | — |
status | ExtraPurchaseStatus | Oo | An extra purchase's lifecycle state. |
category | string | Oo | — |
fulfilment_type | ExtraFulfilmentType | Oo | How an extra is delivered. |
interval | ExtraInterval | Oo | One-off charge or a recurring subscription. |
price | MoneyAmount | Oo | A money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8). |
recurrence | string<none, active, ended> | Oo | 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 | Hindi | 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 | Hindi | — |
completed_at | object | Hindi | — |
failure_reason | string | Hindi | — |
created_at | string | Oo | — |
updated_at | string | Oo | — |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 404 · 429