Remap bank import columns
POST
https://app.speybooks.com/api/v1/bank-imports/{id}/remapOverrides the auto-detected column mapping for a pending import. Re-runs the entire UIE pipeline with the corrected schema: re-parses the stored file, re-classifies rows, re-detects duplicates, and re-computes the balance proof. Returns the same rich payload as the upload endpoint — there is no need for a subsequent GET call after remapping.
The provenance downgrades to USER_CORRECTED.
The column mapping is an object where keys are zero-based column indices and values are roles: date, description, reference, amount, debit, credit, balance, type, or skip.
At minimum, assign one date column and either amount or both debit and credit.
Path parameters
id string requiredBank import ID (e.g. bimp_42). Must be in pending status.
Body parameters
columnMapping object requiredMap of column index to role. Roles: date, description, amount, debit, credit, balance, reference, type, skip. E.g. {"0": "date", "1": "description", "2": "amount"}.
amountModel string optionalAmount model override (SIGNED_SINGLE, DUAL_COL_DR_CR, SIGN_FLIPPER). Auto-inferred from column roles if omitted.
dateFormat string optionalDate format override (e.g. DD/MM/YYYY, YYYY-MM-DD, MM/DD/YYYY). Uses detected format if omitted.
Response
200 Re-parsed successfully. Returns updated row counts, preview, schema, and balance proof.
Show response fields
balanceProof objectShow child attributes
closingBalance integerdelta integeropeningBalance integerstatus stringstepwisePass booleandateRange objectShow child attributes
from stringto stringduplicates integererrorRows integerignoredRows integerimportId stringpreview array<object>Show child attributes
amount integerbalance integerdate stringdescription stringduplicateMatch string nullableerror string nullablerowIndex integerstatus stringschema objectShow child attributes
amountModel stringdateFormat stringfingerprint stringprovenance stringtotalRows integervalidRows integerError codes
400 Invalid column mapping, parse errors, or no valid transactions with corrected mapping.
404 Import not found.
409 Import already completed or file data no longer available.