Map opening balance accounts
PATCH
https://app.speybooks.com/api/v1/opening-balances/{id}/mapUpdate account mappings for unmapped or incorrectly mapped rows.
Accepts an array of source label to target account ID overrides and an
optional cutover date. Re-runs the OBCE engine and returns a full
updated preview with lines, mappings, unmapped,
balanceProof, errors, and canConfirm.
Use this endpoint after reviewing the auto-mapped results from upload to correct any mismatches before confirming. The response is the complete preview, so there is no need for a subsequent GET call after remapping.
Path parameters
idstringrequiredData import ID (e.g. dimp_2). Must be in pending status.
Body parameters
cutoverDatestringoptionalOptional cutover date override (YYYY-MM-DD).
mappingsarray<object>optionalSource label to target account ID overrides.
Show child parameters
sourceLabelstringrequiredAccount label from the CSV (e.g. "Office Equipment").
targetAccountIdstringrequiredTarget account ID (e.g. acc_1030).
Response
200Mappings updated, OBCE re-run. Returns full preview with lines, balance proof, and canConfirm.
Show response fields
balanceProofobjectShow child attributes
balancedbooleandeltastringroundingAmountstringroundingInjectedbooleantotalCreditstringtotalDebitstringcanConfirmbooleancutoverDatestringerrorsarray<object>importIdstringlinesarray<object>Show child attributes
accountCodestringaccountIdstringaccountNamestringaccountTypestringcreditstringdebitstringisRoundingbooleansourceLabelstringmappingsarray<object>Show child attributes
confidenceintegermethodstringsourceLabelstringtargetAccountIdstringtargetCodestringtargetNamestringtargetTypestringopeningBalanceModestringstatsobjectShow child attributes
errorRowsintegerignoredRowsintegertotalRowsintegervalidRowsintegerunmappedarray<object>Error codes
404Pending opening balance import not found.