list_agreement_invoice_line_items
async
¶
list_agreement_invoice_line_items(
agreement_id: ResourceId,
group_by: LineItemGroupBy,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
invoice_id: Optional[ResourceId] = None,
invoice_type: Optional[InvoiceType] = None,
invoice_billing_period: Optional[InvoiceBillingPeriod] = None,
before_issued_time: Optional[Timestamp] = None,
after_issued_time: Optional[Timestamp] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListAgreementInvoiceLineItemsOutput
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.
Parameters:
-
agreement_id(ResourceId) –The unique identifier of the agreement.
-
group_by(LineItemGroupBy) –Specifies a grouping strategy for line items. Currently supports
INVOICE_ID. -
invoice_id(Optional[ResourceId], default:None) –An optional filter to retrieve invoice information for a specific invoice.
-
invoice_type(Optional[InvoiceType], default:None) –An optional filter for the type of invoice. Valid values are
INVOICEandCREDIT_MEMO. -
invoice_billing_period(Optional[InvoiceBillingPeriod], default:None) –An optional filter for the billing period associated with the invoice.
-
before_issued_time(Optional[Timestamp], default:None) –An optional filter for invoices issued before the specified timestamp.
-
after_issued_time(Optional[Timestamp], default:None) –An optional filter for invoices issued after the specified timestamp.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response.
-
next_token(Optional[NextToken], default:None) –A token to specify where to start pagination.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List agreement invoice line items
>>> await client.list_agreement_invoice_line_items(agreement_id='agmt-EXAMPLESvIzsqYMyQwI3', group_by='INVOICE_ID')
Source code in docs_src/capo_marketplace_agreement/_services/async_marketplace_agreement.py
1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 | |