cancelAgreementCancellationRequest
inline suspend fun MarketplaceAgreementClient.cancelAgreementCancellationRequest(crossinline block: CancelAgreementCancellationRequestRequest.Builder.() -> Unit): CancelAgreementCancellationRequestResponse
Allows sellers (proposers) to withdraw an existing agreement cancellation request that is in a pending state. Once cancelled, the cancellation request transitions to CANCELLED status and can no longer be approved or rejected by the buyer.
Only cancellation requests in PENDING_APPROVAL status can be cancelled. A ConflictException is thrown if the cancellation request is in any other status.
Samples
fun main() {
//sampleStart
// Cancel a cancellation request
val resp = marketplaceAgreementClient.cancelAgreementCancellationRequest {
agreementCancellationRequestId = "acr-752jqvg74yo7k4h56cakk6396"
agreementId = "agmt-752jqvg74yo7k4h56cakk6396"
cancellationReason = "Requested agreement cancellation by mistake"
}
//sampleEnd
}