reject_agreement_cancellation_request
async
¶
reject_agreement_cancellation_request(
agreement_id: AgreementId,
agreement_cancellation_request_id: AgreementCancellationRequestId,
rejection_reason: AgreementCancellationRequestRejectionReason,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = 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/async_marketplace_agreement.py
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 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 | |