Validate payment method
validate_payment_methodCheck payout details against a corridor's rules before creating a transfer, so you know which fields a currency and network require instead of losing a quote to rejection.
Instructions
Check payout details (a bank account or a mobile money wallet) against the corridor's rules without creating anything. Use it before create_transfer to find out which fields a currency and network need (beneficiary address, date of birth, bank codes, wallet details), instead of spending a short-lived quote on a rejected transfer. Networks: bank = the default domestic scheme, swift = international wire, payid = PayID alias (AUD), mobile_money = a mobile money wallet (needs walletProvider and walletAccount, and no bank fields). A named domestic scheme (ach, fedwire, fps, chaps, sepa, sepa_instant, fast, chats, unionpay) is refused where it is unavailable for the corridor. unionpay = personal remittance to a bank account in mainland China in CNY: purposeCode PERSONAL_REMITTANCE or USER_WITHDRAWAL, and the customer needs the cny_unionpay entitlement. A CNY bank payout needs nameInLocalLanguage and nationalIdentificationNumber, and for goods trade (purposeCode GENERAL_GOODS_TRADES) logisticsTrackingDetails and items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"network": "<network>"
},
"name": "validate_payment_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | No | IBAN (EU/international) | |
| cnaps | No | CNAPS (China) | |
| items | No | Goods the payout pays for, as invoice lines. Required, with logisticsTrackingDetails, for a CNY bank payout with purposeCode GENERAL_GOODS_TRADES | |
| payId | No | PayID alias (AUD only). Requires payIdType | |
| phone | No | Beneficiary phone number in E.164 format (e.g. '+5215512345678') | |
| bicCode | No | BIC (EUR/GBP international) | |
| bsbCode | No | BSB code (Australia) | |
| network | Yes | Payout network to validate against: bank (default domestic scheme), swift, payid (AUD), mobile_money, or a named domestic scheme | |
| quoteId | No | Validate against this quote's corridor | |
| bankCode | No | Bank code / institution number (CAD) | |
| bankName | No | Name of the destination bank. Required unless paying a mobile money wallet | |
| ifscCode | No | IFSC code (India) | |
| sortCode | No | Sort code (UK) | |
| documents | No | Supporting documents for the payout, such as an invoice or contract | |
| payIdType | No | PayID alias type. Required when payId is given | |
| swiftCode | No | SWIFT code | |
| branchCode | No | Branch code / transit number (CAD) | |
| branchName | No | Bank branch name | |
| accountType | No | Account type. Required for CAD and USD bank payouts | |
| addressCity | No | Beneficiary city | |
| bankCountry | No | Bank country, ISO 2-letter (e.g. 'AU', 'US'). For mobile money, the country of the wallet | |
| dateOfBirth | No | Beneficiary date of birth, YYYY-MM-DD. Required when recipientType is individual for AED, CAD, EUR, GBP, MXN, USD | |
| paymentRail | No | USD payouts only: prefer ACH or wire. Omit for the account's default. A rail that is not available is refused | |
| purposeCode | No | The purpose the transfer will carry. Some corridors ask for different supporting details per purpose (CNY: logisticsTrackingDetails and items for goods trade, a document for services); without it every such detail is required | |
| addressState | No | Beneficiary state or region | |
| bankCurrency | No | Payout currency, ISO 3-letter (e.g. 'EUR') | |
| accountNumber | No | Bank account number, if not using IBAN | |
| addressStreet | No | Beneficiary street address. Needed, with addressCountry, whenever an address is sent | |
| recipientType | No | Beneficiary type. Required for AED, CAD, EUR, GBP, MXN, USD | |
| routingNumber | No | ABA routing number (US) | |
| walletAccount | No | Mobile money only: the wallet's identifier, such as its mobile number (e.g. '+233241234567'). Required with walletProvider | |
| addressCountry | No | Beneficiary country, ISO 2-letter. The complete address is required for AED, CAD, EUR, GBP, MXN, USD | |
| walletProvider | No | Mobile money only: the wallet provider code, as listed for the corridor (e.g. 'mtn_gh'). Requires walletAccount, and every bank field (bankName, accountNumber, iban, bank codes) must be left out | |
| bankAddressCity | No | City of the beneficiary's bank | |
| bankAddressState | No | State or region of the beneficiary's bank | |
| accountHolderName | No | Account holder's full name, or the company name when recipientType is business | |
| addressPostalCode | No | Beneficiary postal code | |
| bankAddressStreet | No | Street address of the beneficiary's bank. A bank address is required for a USD SWIFT payout to an account the paying customer does not hold; street and country at minimum | |
| walletAccountType | No | Mobile money only: the kind of identifier in walletAccount. Only needed where the wallet provider accepts more than one | |
| bankAddressCountry | No | Country of the beneficiary's bank, ISO 2-letter | |
| nameInLocalLanguage | No | Account holder name in the local language (e.g. Chinese characters for CNY) | |
| bankAddressPostalCode | No | Postal code of the beneficiary's bank | |
| logisticsTrackingDetails | No | Shipment tracking for the goods the payout pays for. Required, with items, for a CNY bank payout with purposeCode GENERAL_GOODS_TRADES | |
| nationalIdentificationNumber | No | National identification number of the account holder |