send_agreement_cancellation_request
async
¶
send_agreement_cancellation_request(
agreement_id: AgreementId,
reason_code: AgreementCancellationRequestReasonCode,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = 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
>>> await 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/async_marketplace_agreement.py
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 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 | |