Get Billing History
public
Get Billing History
Unified billing history across personal + every workspace the caller
can see.
Query param ``workspace`` (optional):
* absent / "" / "all" — return personal rows + every org the user is
owner/admin of, each tagged with ``organization_id`` (null on personal
rows).
* "personal" — personal rows only.
* <org-uuid> — that org only; 403 if the user isn't an
owner/admin of it.
Every row carries ``organization_id`` so the client can label/filter by
workspace without a second round-trip.
Sources merged per scope:
* Stripe.Invoice.list on the caller's Stripe customer — surfaces
personal top-ups + org top-ups the caller triggered (org cards live
on the attacher's personal Stripe customer, with seacobra_org_id in
metadata so we bucket them correctly).
* Odoo monthly usage invoices, queried per scope (user_id or
organization_id).
* BalanceTransaction credit_grant / adjustment rows (local fallback for
admin grants).
GET
Get Billing History
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response