List an organization's issued invoices
GET/organizations/:organization_id/invoices
Lists the given organization's invoices that have moved past the draft stage (issued, paid, or void), each with its line items preloaded, ordered by billing period descending. Draft invoices are generated internally by platform admins ahead of issuance and are never exposed to the client.
Requires the caller's access token to carry the invoice:read ability and the caller to hold at least the org-admin role in the target organization (BillingPolicy.readOwnInvoices). This also means a non-existent organization returns 401 rather than 404, since the role check fails the same way for both cases.
Request
Responses
- 200
- 400
- 401
The organization's issued invoices
The organization ID is not a valid integer
Caller lacks the invoice:read ability, is not at least an org admin in this organization, or the organization does not exist