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, so there is no need for a subsequent GET call after upload.
Response
Show response fields
balanceProofobjectShow child attributes
balancedbooleandeltastringroundingAmountstringroundingInjectedbooleantotalCreditstringtotalDebitstringcanConfirmbooleancutoverDatestringerrorsarray<object>filenamestringimportIdstringlinesarray<object>Show child attributes
accountCodestringaccountIdstringaccountNamestringaccountTypestringcreditstringdebitstringisRoundingbooleansourceLabelstringmappingsarray<object>Show child attributes
confidenceintegermethodstringsourceLabelstringtargetAccountIdstringtargetCodestringtargetNamestringtargetTypestringopeningBalanceModestringstatsobjectShow child attributes
errorRowsintegerignoredRowsintegertotalRowsintegervalidRowsintegerunmappedarray<object>