Was this tax/e-invoice code valid on a date?
code_check1 call per code. Checks whether an official code-list entry was in force on a date, from the authorities' own published files: Brazil NF-e (NCM, CFOP, cClassTrib, CST, CSOSN...), Mexico SAT CFDI 4.0 and 3.3 catalogs (c_UsoCFDI, c_ClaveProdServ, c_RegimenFiscal...), Poland KSeF FA(2)/FA(3) lists (TStawkaPodatku, TKodKraju, TGTU...). Answers status valid / expired / not_yet_valid / never_existed / not_covered with valid_from/valid_to, table version, source file link and receipt id. Use before accepting a code on an invoice or when checking an old one. Send either one check (country, table, code, date) or 'checks' (list, max 100).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "code_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The code as written on the invoice; dots and spaces are ignored (8471.30.12 = 84713012). | |
| date | No | The date that matters (issue date) as YYYY-MM-DD. | |
| table | No | Official table name, e.g. ncm, cfop, cclasstrib, cst_icms (BR); c_UsoCFDI, c_ClaveProdServ, c_RegimenFiscal, c_ClaveUnidad (MX, add @3.3 for the CFDI 3.3 catalog); TStawkaPodatku, TKodKraju, TKodWaluty, TGTU (PL). Call coverage for the full list. | |
| checks | No | Optional batch instead of the single fields: list of {country, table, code, date}. | |
| country | No | br, mx or pl. |