Norma 43
v0.3.1Parse Spanish Norma 43 bank statements, reconcile against invoices, validate IBAN/NIF/SEPA ids.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
parse_norma43 Read Norma 43 bank statement
Read a Spanish Norma 43 (Cuaderno 43 / AEB43 / CSB43) bank statement into structured JSON. Returns every account (CCC, computed IBAN, bank, holder, period, opening/closing balance, debit/credit totals, breakdown by AEB common concept) and its movements (dates, signed amount, running balance, concept, references, record-23 texts, decoded SEPA fields in modalidad 3). Checks the file the way a bank does: record 33 counts and totals, opening + movements = closing, record 88 record count, dates, signs and field formats. `valid` is false when any error is found; each issue names…
| Parameter | Type | Description |
|---|---|---|
content | string | |
content_base64 | string | |
include_movements | boolean | |
max_movements | integer |
norma43_to_csv Convert Norma 43 to CSV
Convert a Norma 43 statement to CSV (one row per movement, with IBAN, running balance and concept names). Defaults suit Spanish Excel (';' separator, decimal comma). Free-text cells are protected against spreadsheet formula injection. Integrity issues are returned alongside the CSV.
| Parameter | Type | Description |
|---|---|---|
content | string | |
content_base64 | string | |
decimal_comma | boolean | |
delimiter | string |
reconcile_movements Reconcile bank movements with invoices
Bank reconciliation (conciliación bancaria): match bank movements to expected items, deterministically. Bank side: a Norma 43 file (`content` / `content_base64`) or a `movements` list of {id, date, amount, text}. Expected side: `expected` list of {id, date, amount, reference?, counterparty?} such as issued invoices (+, cobros), supplier invoices or payroll (-, pagos), or ledger entries. Signs: + is money in, - is money out, as on the statement. Finds 1:1 matches, one transfer paying several invoices (1:N) and partial payments (N:1). Each match has a 0-100 score, a co…
| Parameter | Type | Description |
|---|---|---|
expected * | array | |
amount_tolerance | string | |
content | string | |
content_base64 | string | |
date_window_days | integer | |
max_group_size | integer | |
min_score | integer | |
movements |
validate_identifier Validate Spanish ID or IBAN
Validate a Spanish/EU banking identifier. Free. Recognises IBAN (any SEPA country, plus the inner CCC check for ES), CCC (20 digits, returns the IBAN), NIF/NIE/CIF (also ES-prefixed VAT numbers), SEPA creditor identifier (AT-02) and Norma 43 Referencia 1. Returns `valid`, the detected `kind`, normalized form and, when wrong, the expected control digits. Args: value: The identifier, spaces and dashes allowed. kind: auto | iban | ccc | nif | creditor_id | reference1.
| Parameter | Type | Description |
|---|---|---|
value * | string | |
kind | string |
sepa_creditor_id Build SEPA creditor identifier
Compute the Spanish SEPA creditor identifier (AT-02, 'identificador de acreedor') from a NIF. Free. Format: ES + 2 check digits + 3-character business code (default '000') + NIF, per EPC262-08. Needed to issue SEPA direct debits (adeudos / remesas de recibos, Cuaderno 19.14).
| Parameter | Type | Description |
|---|---|---|
nif * | string | |
business_code | string |
sepa_direct_debits Build SEPA direct debit batch (remesa de recibos)
Remesa de recibos SEPA: the pain.008.001.02 XML (Cuaderno 19.14) Spanish banks accept for direct debits. For despachos collecting monthly fees (cuotas) and for clients that charge their customers by recibo. Every IBAN, the creditor identifier and each mandate are checked first; one wrong recibo refuses the whole file with the reason (free), so a batch never reaches the bank half-wrong. Same input, same bytes. Args: creditor: {"name": "Asesoría Pérez SL", "iban": "ES91...", "bic": optional, "creditor_id": "ES12000B..." or "nif": "B12345678" to compute it…
| Parameter | Type | Description |
|---|---|---|
collection_date * | string | |
creditor * | object | |
debits * | array | |
created_at | string | |
scheme | string | |
sequence_type | string |
sepa_credit_transfers Build SEPA credit transfer batch
Transferencias SEPA: the pain.001.001.03 XML (Cuaderno 34.14) to pay suppliers or payroll in one upload. Every IBAN is checked first; one wrong payment refuses the whole file with the reason (free). Args: debtor: The paying company {"name", "iban", "bic" optional, "nif" optional}. execution_date: YYYY-MM-DD. payments: [{"name": "Proveedor XYZ SL", "iban": "ES...", "amount": "300.00", "concept": "Fra. 5521", "end_to_end_id": optional, "purpose": optional ISO code, e.g. SALA (nómina) or SUPP (proveedor)}]. created_at: Optional YYYY-MM-DDTHH:…
| Parameter | Type | Description |
|---|---|---|
debtor * | object | |
execution_date * | string | |
payments * | array | |
created_at | string |
pricing Show tool prices
Credit price of each tool and where to buy credits. Free.
credits_balance Check credit balance
Remaining credits on your KeyFlint license. Free.