Payout Check

v1.0.0
io.github.marcanthonybeare-agentpay/payout-check Checked 4 days ago Published 24 days ago

Validate LATAM payout beneficiaries (tax ID, bank account, PIX) for MX, BR, AR, CL, CO, UY.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_payout_beneficiary Validate LATAM payout beneficiary

Check a payout beneficiary's tax ID and bank account (or PIX key) for Mexico, Brazil, Argentina, Chile, Colombia or Uruguay before sending money. Validates format, check digits and bank code against central-bank directories. Returns verdict ready | review | invalid with error codes and bank name. MX: RFC + CLABE. BR: CPF/CNPJ + PIX key. AR: CUIT/CUIL + CBU/CVU. CL/CO/UY: tax ID + account with bank_code. Does not confirm account ownership.

ParameterTypeDescription
country *stringISO country code of the beneficiary
accountstringCLABE (MX), CBU/CVU (AR), or local account number (CL, CO, UY; needs bank_code)
account_typestringOptional; improves CO checks
bank_codestringCL: CMF code (012 BancoEstado). CO: CENIT code (1007 Bancolombia, 1507 Nequi). UY: BCU code (001 BROU, 113 Itau)
pix_keystringPIX key (BR only)
tax_idstringRFC (MX), CPF/CNPJ (BR), CUIT/CUIL (AR), RUT (CL), NIT (CO), RUT/CI (UY)

validate_payout_batch Validate a batch of LATAM payout beneficiaries

Validate up to 100 beneficiaries in one call (payroll runs, supplier files, marketplace withdrawals). Each item takes the same fields as validate_payout_beneficiary. Returns a summary count per verdict and per-item results.

ParameterTypeDescription
items *array

report_payout_outcome Report payout outcome

After sending a payout that was checked with validate_payout_beneficiary, report whether it was paid or bounced. Improves future checks.

ParameterTypeDescription
outcome *string
request_id *stringrequest_id returned by validate_payout_beneficiary
reasonstringOptional bank rejection reason