reject_agreement_payment_request
async
¶
reject_agreement_payment_request(
payment_request_id: PaymentRequestId,
agreement_id: AgreementId,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
rejection_reason: Optional[PaymentRequestRejectionReason] = None,
) -> RejectAgreementPaymentRequestOutput
Allows buyers (acceptors) to reject a payment request that is in PENDING_APPROVAL status. Once rejected, the payment request transitions to REJECTED status and cannot be accepted. Buyers can optionally provide a reason for the rejection.
Only payment requests in PENDING_APPROVAL status can be rejected. A ConflictException is thrown if the payment request is in any other status.
Parameters:
-
payment_request_id(PaymentRequestId) –The unique identifier of the payment request to reject.
-
agreement_id(AgreementId) –The unique identifier of the agreement associated with the payment request.
-
rejection_reason(Optional[PaymentRequestRejectionReason], default:None) –An optional reason for rejecting the payment request (1-250 characters). This message is visible to the seller.
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/async_marketplace_agreement.py
3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 | |