ListAgreementCancellationRequests
Lists agreement cancellation requests available to you as a seller or buyer. Both sellers (proposers) and buyers (acceptors) can use this operation to find cancellation requests by specifying their party type and applying optional filters.
Note
PartyType is a required parameter. A ValidationException is returned if PartyType is not provided.
Request Syntax
{
"agreementId": "string",
"agreementType": "string",
"catalog": "string",
"maxResults": number,
"nextToken": "string",
"partyType": "string",
"status": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
Note
In the following list, the required parameters are described first.
- partyType
-
The party type for the cancellation requests. Required parameter. Use
Proposerto list cancellation requests where you are the seller, orAcceptorto list cancellation requests where you are the buyer.Type: String
Length Constraints: Minimum length of 1. Maximum length of 32.
Pattern:
[A-Za-z]+Required: Yes
- agreementId
-
An optional parameter to filter cancellation requests for a specific agreement.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[A-Za-z0-9_/-]+Required: No
- agreementType
-
An optional parameter to filter cancellation requests by agreement type (e.g.,
PurchaseAgreement).Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[A-Za-z]+Required: No
- catalog
-
An optional parameter to filter cancellation requests by catalog (e.g.,
AWSMarketplace).Type: String
Length Constraints: Minimum length of 1. Maximum length of 64.
Pattern:
[a-zA-Z0-9.-]+Required: No
- maxResults
-
The maximum number of cancellation requests to return in the response.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 50.
Required: No
- nextToken
-
A token to specify where to start pagination.
Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
[a-zA-Z0-9+/=_-]+Required: No
- status
-
An optional parameter to filter cancellation requests by status.
Type: String
Valid Values:
PENDING_APPROVAL | APPROVED | REJECTED | CANCELLED | VALIDATION_FAILEDRequired: No
Response Syntax
{
"items": [
{
"agreementCancellationRequestId": "string",
"agreementId": "string",
"agreementType": "string",
"catalog": "string",
"createdAt": number,
"reasonCode": "string",
"status": "string",
"updatedAt": number
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- items
-
An array of
AgreementCancellationRequestSummaryobjects containing summary information about each cancellation request.Type: Array of AgreementCancellationRequestSummary objects
- nextToken
-
The token used for pagination. The field is
nullif there are no more results.Type: String
Length Constraints: Minimum length of 0. Maximum length of 8192.
Pattern:
[a-zA-Z0-9+/=_-]+
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
User does not have sufficient access to perform this action.
- message
-
Description of the error.
- reason
-
The reason for the access denied exception.
- requestId
-
The unique identifier for the error.
HTTP Status Code: 400
- InternalServerException
-
Unexpected error during processing of request.
- message
-
Description of the error.
- requestId
-
The unique identifier for the error.
HTTP Status Code: 500
- ThrottlingException
-
Request was denied due to request throttling.
- message
-
Description of the error.
- requestId
-
The unique identifier for the error.
HTTP Status Code: 400
- ValidationException
-
The input fails to satisfy the constraints specified by the service.
- fields
-
The fields associated with the error.
- message
-
Description of the error.
- reason
-
The reason associated with the error.
- requestId
-
The unique identifier associated with the error.
HTTP Status Code: 400
Examples
Sample request
This example illustrates one usage of ListAgreementCancellationRequests.
{ "partyType": "Proposer", "maxResults": 10 }
Sample response
This example illustrates one usage of ListAgreementCancellationRequests.
{ "items": [ { "agreementCancellationRequestId": "acr-EXAMPLEsgew33rhsds", "agreementId": "agmt-EXAMPLE752jqvg74yo7k", "status": "PENDING_APPROVAL", "reasonCode": "OTHER", "agreementType": "PurchaseAgreement", "catalog": "AWSMarketplace", "createdAt": 1736935800, "updatedAt": 1737022200 } ] }
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: