Authenticatie
Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie billing.view beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.
Dit eindpunt vereist geen organisatie-id. Uw sleutel identificeert al de organisatie waartoe deze behoort, en het antwoord is hierop afgestemd.
Probeer het
Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.
curl -X GET https://api.zinndigital.com/v1/extra-purchases/{purchaseId} \
-H "Authorization: Bearer zdk_live_…"Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console
Details
Returns one extra purchase in scope with its status and outcome. Requires `billing.view`.
Parameters
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
purchaseId (path) | Uuid | Ja | The extra purchase's id. |
Reactie
| Naam | Type | Verplicht | Wat dit is |
|---|---|---|---|
id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
org_id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
extra_id | Uuid | Ja | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
site_id | object | Nee | — |
domain_id | object | Nee | — |
status | ExtraPurchaseStatus | Ja | An extra purchase's lifecycle state. |
category | string | Ja | — |
fulfilment_type | ExtraFulfilmentType | Ja | How an extra is delivered. |
interval | ExtraInterval | Ja | One-off charge or a recurring subscription. |
price | MoneyAmount | Ja | A money value — integer minor units + an ISO 4217 code (CLAUDE.md §2.8). |
recurrence | string<none, active, ended> | Ja | 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 | Nee | 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 | Nee | — |
completed_at | object | Nee | — |
failure_reason | string | Nee | — |
created_at | string | Ja | — |
updated_at | string | Ja | — |
Fouten die dit eindpunt kan retourneren
401 · 403 · 404 · 429