List the org's invoices
Its invoices from Stripe, newest first, a page at a time (`after`, the last one's id); none before it has checked out. Needs `org.billing.view`.
/v1/orgs/{org}/billing/invoicesIts invoices from Stripe, newest first, a page at a time (after, the last one's id); none before it has checked out. Needs org.billing.view.
Authorization
bearer An org API key (sk_live_…, sk_test_…), or an access token from the Synq issuer (the synq brand, on the accounts host) for this API.
In: header
Path Parameters
Query Parameters
1 <= value <= 10020The last invoice of the page before, for the next one
^in_[A-Za-z0-9]+$Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/orgs/string/billing/invoices"{ "data": [ { "id": "string", "number": "string", "status": "string", "currency": "string", "total_cents": 0, "amount_due_cents": 0, "created": "2019-08-24T14:15:22Z", "period_start": "2019-08-24T14:15:22Z", "period_end": "2019-08-24T14:15:22Z", "hosted_invoice_url": "http://example.com", "invoice_pdf": "http://example.com" } ], "has_more": true}Read the org's audit log GET
Newest first, filtered by action, actor, resource, brand and time. Needs `org.auditLog.view`. Rows are kept as long as the org's plan says: 7, 30 or 365 days, or for ever.
Read the org's usage GET
Its monthly active users in a month against its plan's allowance (above it each is billed, never refused), and its apps and brands against the plan's limits. A user is active in a month once they get tokens in it: signing in, or an app refreshing their tokens, so someone who stays signed in counts each month an app uses their session. Users deleted since still count: they were billed. Needs `org.billing.view`.