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
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 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 | |