send_agreement_cancellation_request
¶
send_agreement_cancellation_request(
agreement_id: AgreementId,
reason_code: AgreementCancellationRequestReasonCode,
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[AgreementCancellationRequestDescription] = None,
) -> SendAgreementCancellationRequestOutput
Allows sellers (proposers) to submit a cancellation request for an active agreement. The cancellation request is created in PENDING_APPROVAL status, at which point the buyer can review it.
Parameters:
-
agreement_id(AgreementId) –The unique identifier of the agreement for which the cancellation request is being submitted.
-
reason_code(AgreementCancellationRequestReasonCode) –The reason code for the cancellation request.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
description(Optional[AgreementCancellationRequestDescription], default:None) –An optional detailed description of the cancellation reason (1-2000 characters).
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.
Examples:
Send a cancellation request
>>> client.send_agreement_cancellation_request(agreement_id='agmt-752jqvg74yo7k4h56cakk6396', reason_code='OTHER', description='Due to budget constraints, we are unable to continue with our current subscription', client_token='53nQSKWt6AjrsiZPhzQyZT')
Source code in docs_src/capo_marketplace_agreement/_services/marketplace_agreement.py
3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 | |