List credit purchases
The organisation's credit purchases, newest first, with their invoices (receipts) and what was refunded.
- Scopes
billing:read - Rate classread
/v1/billing/credits/purchasesThe organisation's credit purchases, newest first, with their invoices (receipts) and what was refunded.
Authorization
apiKey An API key (fo_live_… / fo_test_…) as a bearer token
In: header
Query Parameters
Page size
1 <= value <= 10020Opaque position returned by a previous page
^[A-Za-z0-9_-]{1,512}$Opaque position returned by a previous page
^[A-Za-z0-9_-]{1,512}$Header Parameters
Dated API version; pinned per organisation on first use and overridable per request
Value in
- "2026-10-01"
- "2026-10-04"
The data the request acts on: test is the organisation's sandbox. An OAuth token picks it (live by default); an API key's mode is fixed, and naming the other one is refused
Value in
- "live"
- "test"
ETag of a cached representation; a match returns 304
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/billing/credits/purchases"{ "object": "list", "data": [ { "object": "credit_purchase", "id": "string", "kind": "manual", "status": "requires_payment", "amount": { "amount": -9007199254740991, "currency": "usd" }, "tax": { "amount": -9007199254740991, "currency": "usd" }, "total": { "amount": -9007199254740991, "currency": "usd" }, "credit_micros": 1, "confirmation": { "object": "billing_confirmation", "kind": "payment", "client_secret": "string", "subscription": { "status": "incomplete", "plan": "string", "current_period_end": "2019-08-24T14:15:22Z", "cancel_at_period_end": true, "interval": "month", "cancel_at": "2019-08-24T14:15:22Z", "discount": { "name": "string", "percent_off": 1, "amount_off": 0, "ends_at": "2019-08-24T14:15:22Z" }, "scheduled_change": { "plan": "string", "interval": "month", "effective_at": "2019-08-24T14:15:22Z" } } }, "invoice": { "id": "string", "number": "string", "hosted_invoice_url": "http://example.com", "invoice_pdf": "http://example.com" }, "refunded": { "amount": -9007199254740991, "currency": "usd" }, "created_at": "2019-08-24T14:15:22Z", "paid_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z" } ], "has_more": true, "next_cursor": "string"}List credit entries GET
The credit ledger, newest first: purchases, staff grants, Ask AI spend (per member, never what they asked), refunds, disputes and expiry, each with the balance after it. Filter by `kind` and time.
List invoices GET
The organisation's invoices, newest first, with links to Stripe's hosted page and PDF. Empty while billing is switched off or before the first subscription.