List ChatGPT invoices
List the billing history of the signed-in ChatGPT account: every invoice with its date, amount, currency, payment status, the plan it paid for, and a link to the receipt. The full history is returned, not only the most recent entries. Amounts come back in the currency's smallest unit, so 1917 means 19.17 EUR. An account that has never been billed returns an empty list. Feed hosted_invoice_url to invoice.stripe.com/download_invoice_pdf to fetch the PDF.
Input
None
Output
invoices requiredAsk ChatGPT
Open a new ChatGPT chat, send one question, and wait for generation to finish (up to 3 min), then return what the model answered and what it read to get there: answers, the web-search queries it issued, and every source behind the reply. Answers come back as a list, not one string. ChatGPT sometimes serves a paired-response variant that answers the same question twice and asks which reply you prefer; that returns two entries and neither is more official than the other. Read the length before reading answers[0]. Text is as rendered, so inline widget labels appear as visible text and mathematical notation linearizes lossily. Sources are split by how the answer used them: the pool a web search returned, whether or not the answer drew on it, versus the sources the answer actually surfaced on screen. That split is the point — it separates a page that was never retrieved from one that was read and passed over. A page that was retrieved and then cited appears in both groups, which is signal rather than duplication. Treat one run as a single draw, not a measurement: the model may search differently, or not search at all, on the next run of the same question. Repeat a question before concluding anything from it. Works logged out, where anonymous rate limits fail fast with a descriptive error and conversationId comes back null.
OpenAI (ChatGPT) login (Google SSO)
Log into OpenAI / ChatGPT via Google SSO — picks the right account when several are signed in, and does nothing if you're already logged in. If Google interrupts the flow with a password re-confirmation or a 2FA step-up, the script can't complete that step on its own; sign in once manually in the same browser to clear the step-up, then re-run. It may also occasionally fail to complete a fresh login due to the site's own anti-automation checks — if that happens, try again shortly.
Who am I (ChatGPT)
Report which ChatGPT account the browser is signed into: id, name, email, picture, identity provider — or loggedIn:false when the browser is anonymous. Reads the session endpoint the app itself hydrates auth from; never returns the session's access token.
