2025/11/10 - AWS Invoicing - 1 new api methods
Changes Added new invoicing get-invoice-pdf API Operation
Returns a URL to download the invoice document and supplemental documents associated with an invoice. The URLs are pre-signed and have expiration time. For special cases like Brazil, where Amazon Web Services generated invoice identifiers and government provided identifiers do not match, use the Amazon Web Services generated invoice identifier when making API requests. To grant IAM permission to use this operation, the caller needs the invoicing:GetInvoicePDF policy action.
See also: AWS API Documentation
Request Syntax
client.get_invoice_pdf(
InvoiceId='string'
)
string
[REQUIRED]
Your unique invoice ID.
dict
Response Syntax
{
'InvoicePDF': {
'InvoiceId': 'string',
'DocumentUrl': 'string',
'DocumentUrlExpirationDate': datetime(2015, 1, 1),
'SupplementalDocuments': [
{
'DocumentUrl': 'string',
'DocumentUrlExpirationDate': datetime(2015, 1, 1)
},
]
}
}
Response Structure
(dict) --
InvoicePDF (dict) --
The invoice document and supplemental documents associated with the invoice.
InvoiceId (string) --
Your unique invoice ID.
DocumentUrl (string) --
The pre-signed URL to download the invoice document.
DocumentUrlExpirationDate (datetime) --
The pre-signed URL expiration date of the invoice document.
SupplementalDocuments (list) --
List of supplemental documents associated with the invoice.
(dict) --
Supplemental document associated with the invoice.
DocumentUrl (string) --
The pre-signed URL to download invoice supplemental document.
DocumentUrlExpirationDate (datetime) --
The pre-signed URL expiration date of invoice supplemental document.