sendAgreementCancellationRequest
inline suspend fun MarketplaceAgreementClient.sendAgreementCancellationRequest(crossinline block: SendAgreementCancellationRequestRequest.Builder.() -> Unit): SendAgreementCancellationRequestResponse
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.
Samples
import aws.sdk.kotlin.services.marketplaceagreement.model.AgreementCancellationRequestReasonCode
fun main() {
//sampleStart
// Send a cancellation request
val resp = marketplaceAgreementClient.sendAgreementCancellationRequest {
agreementId = "agmt-752jqvg74yo7k4h56cakk6396"
reasonCode = AgreementCancellationRequestReasonCode.fromValue("OTHER")
description = "Due to budget constraints, we are unable to continue with our current subscription"
clientToken = "53nQSKWt6AjrsiZPhzQyZT"
}
//sampleEnd
}