getInvoicePdf

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.

Samples

// GetInvoicePDF without supplemental documents
val resp = invoicingClient.getInvoicePdf {
    invoiceId = "abc123"
}
// GetInvoicePDF with supplemental documents
val resp = invoicingClient.getInvoicePdf {
    invoiceId = "abc123"
}