listAgreementInvoiceLineItems
inline suspend fun MarketplaceAgreementClient.listAgreementInvoiceLineItems(crossinline block: ListAgreementInvoiceLineItemsRequest.Builder.() -> Unit): ListAgreementInvoiceLineItemsResponse
Allows sellers (proposers) to retrieve aggregated billing data from AWS Marketplace agreements using flexible grouping. Supports invoice-level aggregation with filtering by billing period, invoice type, and issued date.
The groupBy parameter is required and supports only INVOICE_ID as a value. The agreementId parameter is required.
Samples
// List agreement invoice line items
val resp = marketplaceAgreementClient.listAgreementInvoiceLineItems {
agreementId = "agmt-EXAMPLESvIzsqYMyQwI3"
groupBy = LineItemGroupBy.fromValue("INVOICE_ID")
}Content copied to clipboard