AgreementService / Client / list_agreement_payment_requests
list_agreement_payment_requests¶
- AgreementService.Client.list_agreement_payment_requests(**kwargs)¶
Lists payment requests available to you as a seller or buyer. Both sellers (proposers) and buyers (acceptors) can use this operation to find payment requests by specifying their party type and applying optional parameters.
Note
PartyTypeis a required parameter. AValidationExceptionis returned ifPartyTypeis not provided. Pagination is supported throughmaxResults(1-50, default 50) andnextTokenparameters.See also: AWS API Documentation
Request Syntax
response = client.list_agreement_payment_requests( partyType='string', agreementType='string', catalog='string', agreementId='string', status='VALIDATING'|'VALIDATION_FAILED'|'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'CANCELLED', maxResults=123, nextToken='string' )
- Parameters:
partyType (string) –
[REQUIRED]
The party type for the payment requests. Required parameter. Use
Proposerto list payment requests where you are the seller, orAcceptorto list payment requests where you are the buyer.agreementType (string) – An optional parameter to list payment requests by agreement type (e.g.,
PurchaseAgreement).catalog (string) – An optional parameter to list payment requests by catalog (e.g.,
AWSMarketplace).agreementId (string) – An optional parameter to list payment requests for a specific agreement.
status (string) – An optional parameter to list payment requests by status. Valid values include
VALIDATING,VALIDATION_FAILED,PENDING_APPROVAL,APPROVED,REJECTED, andCANCELLED.maxResults (integer) – The maximum number of payment requests to return in a single response (1-50). Default is 50.
nextToken (string) – A token to specify where to start pagination. Use the
nextTokenvalue from a previous response to retrieve the next page of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'items': [ { 'paymentRequestId': 'string', 'agreementId': 'string', 'status': 'VALIDATING'|'VALIDATION_FAILED'|'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'CANCELLED', 'name': 'string', 'chargeId': 'string', 'chargeAmount': 'string', 'currencyCode': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ] }
Response Structure
(dict) –
nextToken (string) –
A token to retrieve the next page of results. If
null, there are no more results to retrieve.items (list) –
An array of
PaymentRequestSummaryobjects containing summary information about each payment request.(dict) –
Summary view of a payment request.
paymentRequestId (string) –
The unique identifier of the payment request.
agreementId (string) –
The unique identifier of the agreement associated with this payment request.
status (string) –
The current status of the payment request. Possible values include
VALIDATING,VALIDATION_FAILED,PENDING_APPROVAL,APPROVED,REJECTED, andCANCELLED.name (string) –
The descriptive name of the payment request.
chargeId (string) –
The unique identifier of the charge created after the payment request is approved. This field is only present for approved payment requests.
chargeAmount (string) –
The amount charged or to be charged to the buyer.
currencyCode (string) –
The currency code for the charge amount.
createdAt (datetime) –
The date and time when the payment request was created, in ISO 8601 format.
updatedAt (datetime) –
The date and time when the payment request was last updated, in ISO 8601 format.
Exceptions
AgreementService.Client.exceptions.ValidationExceptionAgreementService.Client.exceptions.AccessDeniedExceptionAgreementService.Client.exceptions.ThrottlingExceptionAgreementService.Client.exceptions.InternalServerException