Download invoices using REST API

Hi,

I would like to find out if there is a way to download invoices for the OpenAI subscription using the REST API? ChatGPT claims it to be possible, but I can’t find such end-points mentioned in the REST API reference.

When doing this manually, I get redirected to Stripe where the invoice is available for downloading.

Any help would be much appreciated!
Thanks in advance!

Martin

1 Like

No, it’s not possible.

Don’t trust the model when it tells you about its capabilities or what you can do with the API, it doesn’t know.

2 Likes

Yeah, I had the same feeling.
So, why aren’t the invoices just being e-mails as PDF files like every other company does…? Having to log into the web interface and downloading them manually is such a pain in the behind…

I don’t know that’s how every company does it. I’m pretty sure I need to log into AWS to get my invoices, but maybe I just set something up that way in the before-times…

You could just set up a simple RPA bot for this.

Run it locally on your computer, get it to run at the end of the month, download the file and email it to yourself (or any other action that you want). :slight_smile:

Eg: TagUI

Actually, even AWS send out e-mails with the invoices attached to them. It’s really straight-forward to parse your e-mails and much easier than having to write a tool that logs into the website and tries to download the invoices, due to a lack of a proper REST API…

3 Likes

Just bumping this. It’s a basic business need to be able to forward and/or parse invoices of licensed services. Right now the two possible routes are manually downloading individual invoices per workspace or build some sort of crawler that would require the relevant authorization. Neither are viable.

1 Like

@OpenAI ,

This is a very simple thing to implement.

On the one side, these invoices should be sent by e-mail for easier forwarding to the respective accountant(s), while on the other it should also be possible to download these via an end-point in your REST API.

This topic is open and by no means resolved. It would be great to hear back from someone from OpenAI with an official position on this. It’s completely inconvenient how it works right now and this is a very simple thing to implement that doesn’t require months planning.

@OpenAI best would be to receive invoice by email (and yes, I get my AWS invoice by email). It would be useful to have a billing contact that doesn’t necessarily have an OpenAI account (e.g. external accounting firm) to receive these emails as well (or to be able to log in to view invoices).

2 Likes

Oh, for crying out loud, how can you NOT have an end-point in your REST API that allows downloading invoices?! Come on!!! Tell ChatGPT to implement it for you.

All jokes and venting aside, it’s really disappointing that you don’t send the invoices by e-mail, or expose a REST API end-point for this. This is really not that complicated to implement. Or implement more payment providers and attach the invoice with the payment in the respective payment system. Or make it possible to pay with your own Stripe account, so that you can download the invoices using Stripe’s API. (I mean – what good is to me that I have a Stripe account when you only handle the payments through it but not using the customer’s Stripe account which is where you’re placing the invoices?!). There are literally so many ways to do this right, that I can’t believe you’re making it so hard to automate the process for accounting purposes. Really, really disappointed and frustrated! I now have to write some Selenium code to do this. How pathetic!

I also hear people proposing to point a GPT at it. Really, because OpenAI can’t make a basic end-point for this available? What a massive overkill for such a small need. Let’s build an intergalactic space rocket to kill an ant.

1 Like