In v3.0.1, get_ucp_json_entry() and get_capability_definition() also list a verify_loan_terms operation, but UCPIntegration has no such method. Remove it from the entry you publish, as shown above.
result = ucp.verify_iso20022_payment( xml_message=pacs008_xml, sanctions_list=["ACME Corp", "Bad Bank"], kyc_verified=True, # required to approve when require_kyc=True (the default))if result.can_proceed: send_to_swift(pacs008_xml)else: flag_for_compliance(result.violations)
verify_payment_token runs these four checks. verify_iso20022_payment also screens the parties against the sanctions_list you pass.For ISO 20022 messages, the business limits (max_transaction_amount, positive amount, allowed_currencies) apply to the amounts and currencies read from the parsed XML (since v3.0.0; hardened in v3.0.1, GHSA-mrrj-6m2q-jch9). An empty or missing sanctions_list fails closed as unscreened instead of passing.