List Atlassian invoices
Automatically list Atlassian invoices on admin.atlassian.com. List Atlassian (admin.atlassian.com) billing invoices across every transaction account in your org, covering Atlassian and Marketplace apps plus Loom billed through Atlassian. Returns total plus invoices (id, number, date, amount, status, transaction_account, sourceSystem, downloadUrl) — metadata only. Feed a row's downloadUrl to admin.atlassian.com/download_invoice to fetch the PDF. Only an org billing admin sees the billing portal, and admin.atlassian.com must resolve to a single org (no org picker).
Input
orgId optionalAtlassian organization id (the <id> in admin.atlassian.com/o/<id>/). Only needed when the account belongs to more than one organization; without it the script fails with the list of available organization ids and names.
Output
total requiredinvoices requiredFAQ
Download an Atlassian invoice PDF
Download one Atlassian (admin.atlassian.com) billing invoice, given the downloadUrl, or the id plus transaction_account, that admin.atlassian.com/list_invoices returns. Returns the filename plus the PDF as base64, for you to decode and save. Only an organization billing admin can download invoices.
Atlassian Admin whoami (signed-in account)
Report which Atlassian account the Atlassian admin console is signed in as in this browser: the account id, email and name. When the browser is signed out, it fails with a sign-in error that says to sign in and retry.
