#Automatic balance and invoice recovery
1 messages · Page 1 of 1 (latest)
Hi @solar moth. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
There is no API method documented in the provided knowledge sources that allows you to directly retrieve your current account balance or download invoices via the OpenAI API.
However, you can use the following:
-
The Usage API and Costs API: These endpoints provide detailed insights into your API usage and spending, including breakdowns by invoice line items and project IDs. For financial reconciliation, the Costs endpoint or the Costs tab in the Usage Dashboard is recommended, but these do not provide your current prepaid balance or direct invoice downloads—they focus on usage and cost data instead. See the Usage API documentation for more details.
-
Invoices: According to the knowledge sources, invoices are only provided to Enterprise API customers, and these can be downloaded from the Billing section of the OpenAI Platform, not via an API. Individual and Team users do not receive invoices but can view payment history and receipts in the Billing section of their account on the web interface, not programmatically via API. See When can I expect to receive my OpenAI API invoice?.
-
Balance: There is no mention of an API endpoint to retrieve your current prepaid credit balance. Balance and payment management are handled through the web-based billing portal.