Upload opening balances
https://app.speybooks.com/api/v1/opening-balances/uploadUpload a trial balance CSV. The OBCE engine parses debit/credit columns (dual-column or signed single-column detection), auto-maps accounts using a 5-tier matching strategy, and validates the balance equation.
If the balance equation has a delta ≤ £0.05, a rounding adjustment is automatically injected to account 7999 (Rounding). Deltas > £0.05 block confirmation.
Supports an optional clearingMode form field. When set to clearing, Trade Debtors and Trade Creditors are routed through migration clearing accounts (1198 MC_AR, 2198 MC_AP) to enable outstanding document imports.
Maximum file size: 5 MB. Blocked if an active OB journal already exists (singleton constraint).
The response includes the full preview payload needed to render the mapping wizard UI — there is no need for a subsequent GET call after upload.
Response
Show response fields
balanceProof objectShow child attributes
balanced booleandelta stringroundingAmount stringroundingInjected booleantotalCredit stringtotalDebit stringcanConfirm booleancutoverDate stringerrors array<object>filename stringimportId stringlines array<object>Show child attributes
accountCode stringaccountId stringaccountName stringaccountType stringcredit stringdebit stringisRounding booleansourceLabel stringmappings array<object>Show child attributes
confidence integermethod stringsourceLabel stringtargetAccountId stringtargetCode stringtargetName stringtargetType stringopeningBalanceMode stringstats objectShow child attributes
errorRows integerignoredRows integertotalRows integervalidRows integerunmapped array<object>