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
2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 | |