reject_agreement_cancellation_request
¶
reject_agreement_cancellation_request(
agreement_id: AgreementId,
agreement_cancellation_request_id: AgreementCancellationRequestId,
rejection_reason: AgreementCancellationRequestRejectionReason,
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = None,
) -> RejectAgreementCancellationRequestOutput
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.
Only cancellation requests in PENDING_APPROVAL status can be rejected. A ConflictException is thrown if the cancellation request is in any other status.
Parameters:
-
agreement_id(AgreementId) –The unique identifier of the agreement associated with the cancellation request.
-
agreement_cancellation_request_id(AgreementCancellationRequestId) –The unique identifier of the cancellation request to reject.
-
rejection_reason(AgreementCancellationRequestRejectionReason) –The reason for rejecting the cancellation request (1-2000 characters). This message is visible to the seller.
Raises:
-
AccessDeniedException–User does not have sufficient access to perform this action.
-
ConflictException–Request was denied due to a resource conflict.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_marketplace_agreement/_services/marketplace_agreement.py
2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 | |