Skip to main content

agreement_payment_requests

Creates, updates, deletes, gets or lists an agreement_payment_requests resource.

Overview

Nameagreement_payment_requests
TypeResource
Idaws.marketplace_agreement.agreement_payment_requests

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe descriptive name of the payment request. (pattern: <code>.+</code>)
agreement_idstringThe unique identifier of the agreement associated with this payment request. Use DescribeAgreement to retrieve full agreement details. (pattern: <code>[A-Za-z0-9_/-]+</code>)
charge_amountstringThe amount charged or to be charged to the buyer. (pattern: <code>[0-9]*(.[0-9]{0,8})?</code>)
charge_idstringThe unique identifier of the charge created after the payment request is approved. This field is only present for approved payment requests and follows the pattern ch-[a-zA-Z0-9]+. (pattern: <code>ch-[a-zA-Z0-9]+</code>)
created_atstring (date-time)The date and time when the payment request was created.
currency_codestringThe currency code for the charge amount. (pattern: <code>[A-Z]+</code>)
descriptionstringThe detailed description of the payment request, if provided.
payment_request_idstringThe unique identifier of the payment request. (pattern: <code>pr-[a-zA-Z0-9]+</code>)
statusstringThe current status of the payment request. Possible values include: VALIDATING – The payment request is being validated against agreement terms. VALIDATION_FAILED – The payment request failed validation. PENDING_APPROVAL – The payment request is awaiting buyer action. APPROVED – The buyer has approved the payment request. REJECTED – The buyer has rejected the payment request. CANCELLED – The seller has cancelled the payment request. (VALIDATING, VALIDATION_FAILED, PENDING_APPROVAL, APPROVED, REJECTED, CANCELLED)
status_messagestringAn optional message providing additional context about the payment request status, such as a rejection reason or validation failure details.
updated_atstring (date-time)The date and time when the payment request was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agreement_payment_requestselectregionRetrieves detailed information about a specific payment request. Both sellers (proposers) and buyers (acceptors) can use this operation to view payment requests associated with their agreements. The response includes the current status, charge details, timestamps, and the charge ID if the request has been approved. The calling identity must be either the acceptor or proposer of the payment request. A ResourceNotFoundException is returned if the payment request does not exist.
list_agreement_payment_requestsselectregionLists 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. PartyType is a required parameter. A ValidationException is returned if PartyType is not provided. Pagination is supported through maxResults (1-50, default 50) and nextToken parameters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves detailed information about a specific payment request. Both sellers (proposers) and buyers (acceptors) can use this operation to view payment requests associated with their agreements. The response includes the current status, charge details, timestamps, and the charge ID if the request has been approved. The calling identity must be either the acceptor or proposer of the payment request. A ResourceNotFoundException is returned if the payment request does not exist.

SELECT
name,
agreement_id,
charge_amount,
charge_id,
created_at,
currency_code,
description,
payment_request_id,
status,
status_message,
updated_at
FROM aws.marketplace_agreement.agreement_payment_requests
WHERE region = '{{ region }}' -- required
;