Imports

Import journal entries from rows

Row-based journal import (entries land as drafts). Each row needs date, description, lineAccountCode, and debit/credit; rows sharing an entryNumber are grouped into one balanced entry. debit/credit are decimal dollar amounts by default; set amounts to 'cents' when sending integer cents so values are not scaled by 100.

post/bulk/entries/import

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/bulk/entries/import
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Request body

fileNamestring required
sourcestring
amounts'dollars' | 'cents'

'dollars': debit/credit are decimal dollars ('3000.00'). 'cents': debit/credit are integer cents (300000), used as-is.

rowsobject[] required

Response

Import result

Changes

No recorded changes to this operation across all 5 revisions of this API.