cancel_agreement_payment_request
async
¶
cancel_agreement_payment_request(
payment_request_id: PaymentRequestId,
agreement_id: AgreementId,
*,
config_overrides: Optional[AsyncMarketplaceAgreementClientConfig] = None,
) -> CancelAgreementPaymentRequestOutput
Allows sellers (proposers) to cancel a payment request that is in PENDING_APPROVAL status. Once cancelled, the payment request transitions to CANCELLED status and can no longer be accepted or rejected by the buyer.
Only payment requests in PENDING_APPROVAL status can be cancelled. 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 cancel.
-
agreement_id(AgreementId) –The unique identifier of the agreement associated with the payment request.
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
849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 | |