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
2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 | |