extras

GET /v1/extra-purchases/{purchaseId}

Get an extra purchase.

כל נקודות הקצה מסוג extras

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה billing.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-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.
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