AgreementService / Client / reject_agreement_cancellation_request

reject_agreement_cancellation_request

AgreementService.Client.reject_agreement_cancellation_request(**kwargs)

Allows buyers (acceptors) to reject a cancellation request that is in PENDING_APPROVAL status. Once rejected, the cancellation request transitions to REJECTED status and the agreement remains active. Buyers must provide a reason for the rejection.

Note

Only cancellation requests in PENDING_APPROVAL status can be rejected. A ConflictException is thrown if the cancellation request is in any other status.

See also: AWS API Documentation

Request Syntax

response = client.reject_agreement_cancellation_request(
    agreementId='string',
    agreementCancellationRequestId='string',
    rejectionReason='string'
)
Parameters:
  • agreementId (string) –

    [REQUIRED]

    The unique identifier of the agreement associated with the cancellation request.

  • agreementCancellationRequestId (string) –

    [REQUIRED]

    The unique identifier of the cancellation request to reject.

  • rejectionReason (string) –

    [REQUIRED]

    The reason for rejecting the cancellation request (1-2000 characters). This message is visible to the seller.

Return type:

dict

Returns:

Response Syntax

{
    'agreementId': 'string',
    'agreementCancellationRequestId': 'string',
    'status': 'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'CANCELLED'|'VALIDATION_FAILED',
    'statusMessage': 'string',
    'reasonCode': 'INCORRECT_TERMS_ACCEPTED'|'REPLACING_AGREEMENT'|'TEST_AGREEMENT'|'ALTERNATIVE_PROCUREMENT_CHANNEL'|'PRODUCT_DISCONTINUED'|'UNINTENDED_RENEWAL'|'BUYER_DISSATISFACTION'|'OTHER',
    'description': 'string',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • agreementId (string) –

      The unique identifier of the agreement associated with this cancellation request.

    • agreementCancellationRequestId (string) –

      The unique identifier of the rejected cancellation request.

    • status (string) –

      The updated status of the cancellation request, which is REJECTED.

    • statusMessage (string) –

      The rejection reason provided by the buyer.

    • reasonCode (string) –

      The original reason code provided when the cancellation request was created.

    • description (string) –

      The detailed description of the cancellation reason, if provided.

    • createdAt (datetime) –

      The date and time when the cancellation request was originally created.

    • updatedAt (datetime) –

      The date and time when the cancellation request was rejected.

Exceptions

  • AgreementService.Client.exceptions.ValidationException

  • AgreementService.Client.exceptions.AccessDeniedException

  • AgreementService.Client.exceptions.ResourceNotFoundException

  • AgreementService.Client.exceptions.ThrottlingException

  • AgreementService.Client.exceptions.InternalServerException

  • AgreementService.Client.exceptions.ConflictException