Validate up to 100 LATAM tax IDs and bank accounts in one call
latam_validate_batchChecks a mixed list of up to 100 Latin American tax IDs and bank account keys across all seven supported countries in a single paid call, each line independently auto-detected or strictly typed, and returns the same decoded detail as the single-document tools plus aggregate counters: how many passed, how many failed, and which countries were found. Attach your own label to each line and it comes back on the matching result, so the response joins straight onto a spreadsheet row or a database id. Use it to clean a customer, supplier or payroll base, to screen an uploaded file, for periodic re-validation of a CRM, and in general whenever you have more than one identifier, since one call is one charge and looping the single-document tools over 100 rows costs 100 times as much for the same answer. Do not use it for a single identifier, where latam_validate_tax_id and latam_validate_bank_account give a clearer contract, and do not send more than 100 lines: the surplus is silently dropped and a note appears in warnings, so split a larger list into successive calls. Read-only, deterministic and fully offline at the edge unless you also request FX. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: invalid lines are reported individually with valid false and their own errors while the rest are still processed, so always read summary.invalid and then filter results on valid.
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": {
"items": "<items>"
},
"name": "latam_validate_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx | No | Optional live FX conversion bundled into the same paid call, useful when the batch feeds a cross-border payout run. Leave it out if you only need validation. | |
| items | Yes | The identifiers to check, in any mix of countries and types. Anything beyond the 100th item is ignored and reported in warnings. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx | No | Live FX conversion result. | |
| ok | Yes | true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that. | |
| meta | Yes | Provenance of the call, worth logging. | |
| error | No | Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array. | |
| message | No | Human-readable explanation of the failure. Safe to log or surface to a human operator. | |
| results | No | One entry per checked identifier, in input order, each carrying your label when you supplied one. | |
| summary | Yes | Aggregate counters, so a batch can be triaged without walking the results array. | |
| warnings | No | Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check. | |
| suggestedNextSteps | No | Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required. |