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 currently supports only INVOICE_ID as a value. The agreementId parameter is required.
Samples
import aws.sdk.kotlin.services.marketplaceagreement.model.LineItemGroupBy
fun main() {
//sampleStart
// List agreement invoice line items
val resp = marketplaceAgreementClient.listAgreementInvoiceLineItems {
agreementId = "agmt-EXAMPLESvIzsqYMyQwI3"
groupBy = LineItemGroupBy.fromValue("INVOICE_ID")
}
//sampleEnd
}