2 Answers
- Newest
- Most votes
- Most comments
2
As mentioned above, you cannot automate that via an api: https://repost.aws/knowledge-center/download-pdf-invoice.
It depends on what you want to achieve, but what you could look is either reuse cost explorer api(https://docs.aws.amazon.com/cost-management/latest/userguide/ce-api.html) or send a copy of the invoice to an email https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/getting-viewing-bill.html#emailed-invoice (maybe with workmail) and fetch it as attachment
2
There is no API (or AWS CLI) for downloading invoice PDFs. You'd have to scrape it from the web page. Something like this https://github.com/iann0036/aws-bill-export
Relevant content
- asked 6 years ago
- asked 6 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 3 months ago
- Can I use ACM to issue private certificates when the AWS Private CA validity is less than 13 months?AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 3 years ago