list_invoice_units
¶
list_invoice_units(
*,
config_overrides: Optional[InvoicingClientConfig] = None,
filters: Optional[Filters] = None,
next_token: Optional[NextTokenString] = None,
max_results: Optional[MaxResultsInteger] = None,
as_of: Optional[AsOfTimestamp] = None,
) -> ListInvoiceUnitsResponse
This fetches a list of all invoice unit definitions for a given account, as of the provided AsOf date.
Parameters:
-
filters(Optional[Filters], default:None) –An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are
InvoiceReceivers,Names, andAccounts. -
next_token(Optional[NextTokenString], default:None) –The next token used to indicate where the returned list should start from.
-
max_results(Optional[MaxResultsInteger], default:None) –The maximum number of invoice units that can be returned.
-
as_of(Optional[AsOfTimestamp], default:None) –The state of an invoice unit at a specified time. You can see legacy invoice units that are currently deleted if the
AsOftime is set to before it was deleted. If anAsOfis not provided, the default value is the current time.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The processing request failed because of an unknown error, exception, or failure.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
ListInvoiceUnits without filters as of current time
>>> client.list_invoice_units(as_of=1733097600, filters={'InvoiceReceivers': ['333333333333']})
ListInvoiceUnits with pagination - first page
Source code in docs_src/capo_invoicing/_services/invoicing.py
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 | |