send_agreement_payment_request
¶
send_agreement_payment_request(
agreement_id: AgreementId,
term_id: TermId,
name: PaymentRequestName,
charge_amount: PositiveAmountUpto8Decimals,
*,
config_overrides: Optional[MarketplaceAgreementClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[PaymentRequestDescription] = None,
) -> SendAgreementPaymentRequestOutput
Allows sellers (proposers) to submit a payment request to buyers (acceptors) for a specific charge amount for an agreement that includes a VariablePaymentTerm. The payment request is created in PENDING_APPROVAL status, at which point the buyer can accept or reject it.
The agreement must be active and have a VariablePaymentTerm to support payment requests. The chargeAmount must not exceed the remaining available balance under the VariablePaymentTerm maxTotalChargeAmount.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
agreement_id(AgreementId) –The unique identifier of the agreement for which the payment request is being submitted. Use
GetAgreementTermsto retrieve agreement term details. -
term_id(TermId) –The unique identifier of the
VariablePaymentTermfor the agreement that the payment request is being sent for. -
name(PaymentRequestName) –A descriptive name for the payment request (5-64 characters).
-
charge_amount(PositiveAmountUpto8Decimals) –The amount requested to be charged to the buyer, positive decimal value in the currency of the accepted term.
A
ValidationExceptionis returned if thechargeAmountexceeds the available balance, if the agreement doesn't have an activeVariablePaymentTerm, or if thetermIdis invalid. -
description(Optional[PaymentRequestDescription], default:None) –An optional detailed description of the payment request (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.
Source code in docs_src/capo_marketplace_agreement/_services/marketplace_agreement.py
2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 | |