AgreementService / Client / accept_agreement_cancellation_request

accept_agreement_cancellation_request

AgreementService.Client.accept_agreement_cancellation_request(**kwargs)

Allows buyers (acceptors) to accept a cancellation request that is in PENDING_APPROVAL status. Once accepted, the cancellation request transitions to APPROVED status and the agreement cancellation will be processed.

Note

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

See also: AWS API Documentation

Request Syntax

response = client.accept_agreement_cancellation_request(
    agreementId='string',
    agreementCancellationRequestId='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 accept.

Return type:

dict

Returns:

Response Syntax

{
    'agreementId': 'string',
    'agreementCancellationRequestId': 'string',
    'status': 'PENDING_APPROVAL'|'APPROVED'|'REJECTED'|'CANCELLED'|'VALIDATION_FAILED',
    '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 accepted cancellation request.

    • status (string) –

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

    • 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 accepted.

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