Journal Entries

A manual entry written straight to the ledger: each line debits or credits one account, and the debits equal the credits. Use it when another system already knows how money should be posted, such as a billing system's report that splits a deposit by practice, or a provider's monthly summary. For a sale, a bill or an expense, use that resource instead, so the books keep the document behind the entry. Requires journal_entries:write (or the broad journal_entries scope).

Lines

Each line sends debit_cents or credit_cents, never both, as a whole number of cents, on an account_id from Accounts. An Accounts Receivable or Accounts Payable line names its contact_id. Every id is checked against the company first, so an id from somewhere else is refused with nothing written. Send an Idempotency-Key on every create so a retry never posts the entry twice.

Several entities

In a company that keeps more than one entity, every line names its entity_id, from Entities. A line can put revenue in a different entity from the bank account the money landed in: Imprest adds the owed-between lines that keep each entity in balance, and they come back in lines.

Review

When the company's accountant requires review of journal entries, a new entry comes back with status pending_approval and posts once a reviewer approves it in Imprest. Its lines are the ones it will post.

Correcting an entry

A posted entry is not edited. Reverse it, which posts every line with its debit and credit swapped, and create the right one. This resource lists and reverses manual entries only: an entry a document posted, such as an invoice's, is changed through that document.

The Journal Entry Object

FieldTypeDescription
iduuidJournal entry UUID
objectjournal_entryAlways 'journal_entry'
entry_numberstringJournal number (e.g., JE-0042)
datedateISO 8601 date of the entry
memostring | nullMemo
adjustingbooleanWhether the entry is marked as an adjusting entry
statusstringposted: on the ledger. pending_approval: held for a reviewer (JE review is on). rejected: a reviewer sent it back; it never posted. reversed: posted, then reversed
currencystringISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds
home_currencystringThe company's home currency; debit_cents and credit_cents are in it
exchange_ratestring | nullHome currency per unit of currency, as a decimal string (foreign-currency entries)
total_centsintegerSum of the debits, in the home currency's cents
reversal_of_iduuid | nullUUID of the entry this one reversed (null unless it is a reversal)
reversed_by_iduuid | nullUUID of the entry that reversed this one (null unless reversed)
linesobject[]The entry's lines, including any owed-between lines Imprest added to balance each entity
created_atdate-timeISO 8601 timestamp
updated_atdate-timeISO 8601 timestamp

Endpoints

GET/api/v1/journal_entries

List journal entries

Returns a paginated list of the company's manual journal entries (written by hand or through this API), newest first. Entries a document posted, such as an invoice's, are not listed.

Scopes: journal_entries:read or journal_entries:write or journal_entries·operationId: listJournalEntries

Path & Query Parameters

ParameterTypeDescription
date_fromdateOnly entries dated on or after this date (YYYY-MM-DD)
date_todateOnly entries dated on or before this date (YYYY-MM-DD)
pageintegerPage number (default 1)
per_pageintegerResults per page (1-200, default 50)
Example
curl https://imprest.ai/api/v1/journal_entries \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response · 200
{
  "journal_entries": [
    {
      "id": "1c900fcd-7530-4505-acef-e87e1e7f1288",
      "object": "journal_entry",
      "entry_number": "JE-0002",
      "date": "2026-04-02",
      "memo": null,
      "adjusting": false,
      "status": "posted",
      "currency": "USD",
      "home_currency": "USD",
      "exchange_rate": null,
      "total_cents": 2500,
      "reversal_of_id": null,
      "reversed_by_id": null,
      "lines": [
        {
          "account_id": "def75944-088d-5417-88b3-d3d68486b302",
          "debit_cents": 2500,
          "credit_cents": 0,
          "original_currency": "USD",
          "original_amount_cents": null,
          "description": null,
          "contact_id": null,
          "customer_id": null,
          "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
          "dimension_values": {}
        },
        {
          "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
          "debit_cents": 0,
          "credit_cents": 2500,
          "original_currency": "USD",
          "original_amount_cents": null,
          "description": null,
          "contact_id": null,
          "customer_id": null,
          "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
          "dimension_values": {}
        }
      ],
      "created_at": "2026-11-23T22:27:50Z",
      "updated_at": "2026-11-23T22:27:50Z"
    },
    {
      "id": "7327e57f-92b9-4b39-a5e6-3a32b5a0bf39",
      "object": "journal_entry",
      "entry_number": "JE-0001",
      "date": "2026-03-10",
      "memo": null,
      "adjusting": false,
      "status": "posted",
      "currency": "USD",
      "home_currency": "USD",
      "exchange_rate": null,
      "total_cents": 2500,
      "reversal_of_id": null,
      "reversed_by_id": null,
      "lines": [
        {
          "account_id": "def75944-088d-5417-88b3-d3d68486b302",
          "debit_cents": 2500,
          "credit_cents": 0,
          "original_currency": "USD",
          "original_amount_cents": null,
          "description": null,
          "contact_id": null,
          "customer_id": null,
          "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
          "dimension_values": {}
        },
        {
          "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
          "debit_cents": 0,
          "credit_cents": 2500,
          "original_currency": "USD",
          "original_amount_cents": null,
          "description": null,
          "contact_id": null,
          "customer_id": null,
          "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
          "dimension_values": {}
        }
      ],
      "created_at": "2026-11-23T22:27:50Z",
      "updated_at": "2026-11-23T22:27:50Z"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 50,
    "total_count": 2,
    "total_pages": 1
  }
}
Response fields
ParameterTypeDescription
journal_entriesrequiredobject[]Array of journal entry objects
idrequireduuidJournal entry UUID
objectrequiredjournal_entryAlways 'journal_entry'
entry_numberrequiredstringJournal number (e.g., JE-0042)
daterequireddateISO 8601 date of the entry
memorequiredstring | nullMemo
adjustingrequiredbooleanWhether the entry is marked as an adjusting entry
statusrequiredstringposted: on the ledger. pending_approval: held for a reviewer (JE review is on). rejected: a reviewer sent it back; it never posted. reversed: posted, then reversed
currencyrequiredstringISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds
home_currencyrequiredstringThe company's home currency; debit_cents and credit_cents are in it
exchange_raterequiredstring | nullHome currency per unit of currency, as a decimal string (foreign-currency entries)
total_centsrequiredintegerSum of the debits, in the home currency's cents
reversal_of_idrequireduuid | nullUUID of the entry this one reversed (null unless it is a reversal)
reversed_by_idrequireduuid | nullUUID of the entry that reversed this one (null unless reversed)
linesrequiredobject[]The entry's lines, including any owed-between lines Imprest added to balance each entity
account_idrequireduuidChart account UUID
debit_centsrequiredintegerDebit in the home currency's cents (0 on a credit line)
credit_centsrequiredintegerCredit in the home currency's cents (0 on a debit line)
original_currencyrequiredstringISO currency the line was written in (debit_cents and credit_cents are always the home currency)
original_amount_centsrequiredinteger | nullThe line's amount in original_currency: positive for a debit, negative for a credit
descriptionrequiredstring | nullLine description
contact_idrequireduuid | nullContact (party) UUID, if the line names one
customer_idrequireduuid | nullCustomer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise)
entity_idrequireduuid | nullEntity UUID the line posts to
dimension_valuesrequiredobjectDimension tagging (dimension_id => value_id)
created_atrequireddate-timeISO 8601 timestamp
updated_atrequireddate-timeISO 8601 timestamp
paginationrequiredobjectWhere this page sits in the whole list
pagerequiredintegerThis page's number, from 1
per_pagerequiredintegerResults per page (1-200, default 50)
total_countrequiredintegerResults across every page
total_pagesrequiredintegerPages in the whole list (at least 1)

Errors

  • 401No valid access token (invalid_token).
  • 403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.
  • 422A malformed date (invalid_date)

Every error uses the same envelope: error, message and error_code.

POST/api/v1/journal_entries

Create a journal entry

Writes a manual journal entry. Each line debits or credits one account; debits must equal credits. The entry posts at once, or is held for a reviewer when the company's accountant requires journal entry review (status pending_approval). In a company that keeps several entities, every line names its entity and Imprest adds the owed-between lines that keep each entity in balance. Send an Idempotency-Key so a retry never posts the entry twice.

Scopes: journal_entries:write or journal_entries·operationId: createJournalEntry

Body Parameters

ParameterTypeDescription
daterequireddateEntry date (YYYY-MM-DD)
entry_numberstringJournal number (defaults to the next in sequence; must be unique)
memostringMemo
adjustingbooleanMark the entry as an adjusting entry
currencystringISO currency the lines are written in (defaults to the home currency)
exchange_ratestringHome currency per unit of currency, as a decimal string. Omit to use the published rate on the date
confirm_exchange_ratebooleanKeep an exchange_rate more than 10% from the published one (otherwise refused with rate_far_from_published)
linesrequiredobject[]At least two lines; debits must equal credits
account_idrequireduuidChart account UUID
debit_centsintegerDebit in cents (e.g., 125000 = $1,250.00). Send this or credit_cents
credit_centsintegerCredit in cents. Send this or debit_cents
descriptionstringLine description
contact_iduuidContact (party) UUID. Required on an Accounts Receivable or Accounts Payable line
entity_iduuidEntity UUID. Required on every line when the company keeps more than one entity
customer_iduuidCustomer UUID the line is for, so profit and loss by customer counts it toward that client. Income, cost of goods and expense lines only; must be one of the company's customers
dimension_valuesobjectDimension tagging (dimension_id => value_id). Revenue, expense and cost of goods lines only
Example
curl -X POST https://imprest.ai/api/v1/journal_entries \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "date": "2026-03-10",
  "memo": "Athena deposit, March 10",
  "lines": [
    {
      "account_id": "def75944-088d-5417-88b3-d3d68486b302",
      "debit_cents": 125000,
      "description": "UHC EFT"
    },
    {
      "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
      "credit_cents": 125000
    }
  ]
}'
Response · 201
{
  "journal_entry": {
    "id": "1cb6461f-ecb2-4b45-971d-fa789d624b2a",
    "object": "journal_entry",
    "entry_number": "JE-0001",
    "date": "2026-03-10",
    "memo": "Athena deposit, March 10",
    "adjusting": false,
    "status": "posted",
    "currency": "USD",
    "home_currency": "USD",
    "exchange_rate": null,
    "total_cents": 125000,
    "reversal_of_id": null,
    "reversed_by_id": null,
    "lines": [
      {
        "account_id": "def75944-088d-5417-88b3-d3d68486b302",
        "debit_cents": 125000,
        "credit_cents": 0,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": "UHC EFT",
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      },
      {
        "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
        "debit_cents": 0,
        "credit_cents": 125000,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      }
    ],
    "created_at": "2026-11-23T22:27:50Z",
    "updated_at": "2026-11-23T22:27:50Z"
  }
}
Response fields
ParameterTypeDescription
journal_entryrequiredobjectJournal entry object
idrequireduuidJournal entry UUID
objectrequiredjournal_entryAlways 'journal_entry'
entry_numberrequiredstringJournal number (e.g., JE-0042)
daterequireddateISO 8601 date of the entry
memorequiredstring | nullMemo
adjustingrequiredbooleanWhether the entry is marked as an adjusting entry
statusrequiredstringposted: on the ledger. pending_approval: held for a reviewer (JE review is on). rejected: a reviewer sent it back; it never posted. reversed: posted, then reversed
currencyrequiredstringISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds
home_currencyrequiredstringThe company's home currency; debit_cents and credit_cents are in it
exchange_raterequiredstring | nullHome currency per unit of currency, as a decimal string (foreign-currency entries)
total_centsrequiredintegerSum of the debits, in the home currency's cents
reversal_of_idrequireduuid | nullUUID of the entry this one reversed (null unless it is a reversal)
reversed_by_idrequireduuid | nullUUID of the entry that reversed this one (null unless reversed)
linesrequiredobject[]The entry's lines, including any owed-between lines Imprest added to balance each entity
account_idrequireduuidChart account UUID
debit_centsrequiredintegerDebit in the home currency's cents (0 on a credit line)
credit_centsrequiredintegerCredit in the home currency's cents (0 on a debit line)
original_currencyrequiredstringISO currency the line was written in (debit_cents and credit_cents are always the home currency)
original_amount_centsrequiredinteger | nullThe line's amount in original_currency: positive for a debit, negative for a credit
descriptionrequiredstring | nullLine description
contact_idrequireduuid | nullContact (party) UUID, if the line names one
customer_idrequireduuid | nullCustomer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise)
entity_idrequireduuid | nullEntity UUID the line posts to
dimension_valuesrequiredobjectDimension tagging (dimension_id => value_id)
created_atrequireddate-timeISO 8601 timestamp
updated_atrequireddate-timeISO 8601 timestamp

Errors

  • 401No valid access token (invalid_token).
  • 402The company's subscription has lapsed, so its books are read-only until it's renewed (write_locked).
  • 403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.
  • 422A malformed line (invalid_line), unbalanced lines (unbalanced), an id not found in the company (account_not_found, contact_not_found, customer_not_found, entity_not_found, dimension_not_found), a line with no entity in a multi-entity company (entity_required), a locked period or another validation failure (validation_error), or a currency refusal (invalid_currency, multicurrency_disabled, exchange_rate_missing, rate_far_from_published, account_currency_mismatch)

Every error uses the same envelope: error, message and error_code.

GET/api/v1/journal_entries/:id

Retrieve a journal entry

Scopes: journal_entries:read or journal_entries:write or journal_entries·operationId: getJournalEntry

Path & Query Parameters

ParameterTypeDescription
idrequireduuidJournal entry UUID
Example
curl https://imprest.ai/api/v1/journal_entries/402380d7-0ea8-4b71-ba8c-edbcc7e30c39 \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response · 200
{
  "journal_entry": {
    "id": "402380d7-0ea8-4b71-ba8c-edbcc7e30c39",
    "object": "journal_entry",
    "entry_number": "JE-0001",
    "date": "2026-03-10",
    "memo": null,
    "adjusting": false,
    "status": "posted",
    "currency": "USD",
    "home_currency": "USD",
    "exchange_rate": null,
    "total_cents": 2500,
    "reversal_of_id": null,
    "reversed_by_id": null,
    "lines": [
      {
        "account_id": "def75944-088d-5417-88b3-d3d68486b302",
        "debit_cents": 2500,
        "credit_cents": 0,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      },
      {
        "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
        "debit_cents": 0,
        "credit_cents": 2500,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      }
    ],
    "created_at": "2026-11-23T22:27:50Z",
    "updated_at": "2026-11-23T22:27:50Z"
  }
}
Response fields
ParameterTypeDescription
journal_entryrequiredobjectJournal entry object
idrequireduuidJournal entry UUID
objectrequiredjournal_entryAlways 'journal_entry'
entry_numberrequiredstringJournal number (e.g., JE-0042)
daterequireddateISO 8601 date of the entry
memorequiredstring | nullMemo
adjustingrequiredbooleanWhether the entry is marked as an adjusting entry
statusrequiredstringposted: on the ledger. pending_approval: held for a reviewer (JE review is on). rejected: a reviewer sent it back; it never posted. reversed: posted, then reversed
currencyrequiredstringISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds
home_currencyrequiredstringThe company's home currency; debit_cents and credit_cents are in it
exchange_raterequiredstring | nullHome currency per unit of currency, as a decimal string (foreign-currency entries)
total_centsrequiredintegerSum of the debits, in the home currency's cents
reversal_of_idrequireduuid | nullUUID of the entry this one reversed (null unless it is a reversal)
reversed_by_idrequireduuid | nullUUID of the entry that reversed this one (null unless reversed)
linesrequiredobject[]The entry's lines, including any owed-between lines Imprest added to balance each entity
account_idrequireduuidChart account UUID
debit_centsrequiredintegerDebit in the home currency's cents (0 on a credit line)
credit_centsrequiredintegerCredit in the home currency's cents (0 on a debit line)
original_currencyrequiredstringISO currency the line was written in (debit_cents and credit_cents are always the home currency)
original_amount_centsrequiredinteger | nullThe line's amount in original_currency: positive for a debit, negative for a credit
descriptionrequiredstring | nullLine description
contact_idrequireduuid | nullContact (party) UUID, if the line names one
customer_idrequireduuid | nullCustomer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise)
entity_idrequireduuid | nullEntity UUID the line posts to
dimension_valuesrequiredobjectDimension tagging (dimension_id => value_id)
created_atrequireddate-timeISO 8601 timestamp
updated_atrequireddate-timeISO 8601 timestamp

Errors

  • 401No valid access token (invalid_token).
  • 403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.
  • 404Journal entry not found (or not a manual entry)

Every error uses the same envelope: error, message and error_code.

POST/api/v1/journal_entries/:id/reverse

Reverse a journal entry

Posts the entry's reversal: every line with its debit and credit swapped. This is how a posted entry is corrected: reverse it, then create the right one. With journal entry review on, the reversal is held for a reviewer and the original stays posted until it is approved.

Scopes: journal_entries:write or journal_entries·operationId: reverseJournalEntry

Path & Query Parameters

ParameterTypeDescription
idrequireduuidJournal entry UUID

Body Parameters

ParameterTypeDescription
datedateReversal date (YYYY-MM-DD). Defaults to the original's date; refused when that period is locked
memostringMemo for the reversal
Example
curl -X POST https://imprest.ai/api/v1/journal_entries/c1e5115d-e96b-4e5c-9d52-e5a4da479b53/reverse \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "memo": "Wrong split"
}'
Response · 200
{
  "journal_entry": {
    "id": "c1e5115d-e96b-4e5c-9d52-e5a4da479b53",
    "object": "journal_entry",
    "entry_number": "JE-0001",
    "date": "2026-03-10",
    "memo": null,
    "adjusting": false,
    "status": "reversed",
    "currency": "USD",
    "home_currency": "USD",
    "exchange_rate": null,
    "total_cents": 2500,
    "reversal_of_id": null,
    "reversed_by_id": "986479a2-cb4b-4098-b2da-9f2356e6c27b",
    "lines": [
      {
        "account_id": "def75944-088d-5417-88b3-d3d68486b302",
        "debit_cents": 2500,
        "credit_cents": 0,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      },
      {
        "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
        "debit_cents": 0,
        "credit_cents": 2500,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      }
    ],
    "created_at": "2026-11-23T22:27:50Z",
    "updated_at": "2026-11-23T22:27:50Z"
  },
  "reversal": {
    "id": "986479a2-cb4b-4098-b2da-9f2356e6c27b",
    "object": "journal_entry",
    "entry_number": "JE-0002",
    "date": "2026-03-10",
    "memo": "Wrong split",
    "adjusting": false,
    "status": "posted",
    "currency": "USD",
    "home_currency": "USD",
    "exchange_rate": null,
    "total_cents": 2500,
    "reversal_of_id": "c1e5115d-e96b-4e5c-9d52-e5a4da479b53",
    "reversed_by_id": null,
    "lines": [
      {
        "account_id": "def75944-088d-5417-88b3-d3d68486b302",
        "debit_cents": 0,
        "credit_cents": 2500,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      },
      {
        "account_id": "6c738cd1-e888-5afe-b0c0-628ac6316713",
        "debit_cents": 2500,
        "credit_cents": 0,
        "original_currency": "USD",
        "original_amount_cents": null,
        "description": null,
        "contact_id": null,
        "customer_id": null,
        "entity_id": "de1bcf26-486e-5a7f-ab1b-97d51478637b",
        "dimension_values": {}
      }
    ],
    "created_at": "2026-11-23T22:27:50Z",
    "updated_at": "2026-11-23T22:27:50Z"
  }
}
Response fields
ParameterTypeDescription
journal_entryrequiredobjectThe original entry (status reversed once the reversal posts)
idrequireduuidJournal entry UUID
objectrequiredjournal_entryAlways 'journal_entry'
entry_numberrequiredstringJournal number (e.g., JE-0042)
daterequireddateISO 8601 date of the entry
memorequiredstring | nullMemo
adjustingrequiredbooleanWhether the entry is marked as an adjusting entry
statusrequiredstringposted: on the ledger. pending_approval: held for a reviewer (JE review is on). rejected: a reviewer sent it back; it never posted. reversed: posted, then reversed
currencyrequiredstringISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds
home_currencyrequiredstringThe company's home currency; debit_cents and credit_cents are in it
exchange_raterequiredstring | nullHome currency per unit of currency, as a decimal string (foreign-currency entries)
total_centsrequiredintegerSum of the debits, in the home currency's cents
reversal_of_idrequireduuid | nullUUID of the entry this one reversed (null unless it is a reversal)
reversed_by_idrequireduuid | nullUUID of the entry that reversed this one (null unless reversed)
linesrequiredobject[]The entry's lines, including any owed-between lines Imprest added to balance each entity
account_idrequireduuidChart account UUID
debit_centsrequiredintegerDebit in the home currency's cents (0 on a credit line)
credit_centsrequiredintegerCredit in the home currency's cents (0 on a debit line)
original_currencyrequiredstringISO currency the line was written in (debit_cents and credit_cents are always the home currency)
original_amount_centsrequiredinteger | nullThe line's amount in original_currency: positive for a debit, negative for a credit
descriptionrequiredstring | nullLine description
contact_idrequireduuid | nullContact (party) UUID, if the line names one
customer_idrequireduuid | nullCustomer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise)
entity_idrequireduuid | nullEntity UUID the line posts to
dimension_valuesrequiredobjectDimension tagging (dimension_id => value_id)
created_atrequireddate-timeISO 8601 timestamp
updated_atrequireddate-timeISO 8601 timestamp
reversalrequiredobjectThe reversing entry
idrequireduuidJournal entry UUID
objectrequiredjournal_entryAlways 'journal_entry'
entry_numberrequiredstringJournal number (e.g., JE-0042)
daterequireddateISO 8601 date of the entry
memorequiredstring | nullMemo
adjustingrequiredbooleanWhether the entry is marked as an adjusting entry
statusrequiredstringposted: on the ledger. pending_approval: held for a reviewer (JE review is on). rejected: a reviewer sent it back; it never posted. reversed: posted, then reversed
currencyrequiredstringISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds
home_currencyrequiredstringThe company's home currency; debit_cents and credit_cents are in it
exchange_raterequiredstring | nullHome currency per unit of currency, as a decimal string (foreign-currency entries)
total_centsrequiredintegerSum of the debits, in the home currency's cents
reversal_of_idrequireduuid | nullUUID of the entry this one reversed (null unless it is a reversal)
reversed_by_idrequireduuid | nullUUID of the entry that reversed this one (null unless reversed)
linesrequiredobject[]The entry's lines, including any owed-between lines Imprest added to balance each entity
account_idrequireduuidChart account UUID
debit_centsrequiredintegerDebit in the home currency's cents (0 on a credit line)
credit_centsrequiredintegerCredit in the home currency's cents (0 on a debit line)
original_currencyrequiredstringISO currency the line was written in (debit_cents and credit_cents are always the home currency)
original_amount_centsrequiredinteger | nullThe line's amount in original_currency: positive for a debit, negative for a credit
descriptionrequiredstring | nullLine description
contact_idrequireduuid | nullContact (party) UUID, if the line names one
customer_idrequireduuid | nullCustomer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise)
entity_idrequireduuid | nullEntity UUID the line posts to
dimension_valuesrequiredobjectDimension tagging (dimension_id => value_id)
created_atrequireddate-timeISO 8601 timestamp
updated_atrequireddate-timeISO 8601 timestamp

Errors

  • 401No valid access token (invalid_token).
  • 402The company's subscription has lapsed, so its books are read-only until it's renewed (write_locked).
  • 403The token or the person behind it can't do this: insufficient_scope names the scope the token lacks; forbidden means the person's role doesn't allow it.
  • 422Already reversed (already_reversed), a reversal already waiting for review (reversal_pending), part of a completed bank reconciliation (bank_reconciled), a locked period (period_locked), or otherwise refused

Every error uses the same envelope: error, message and error_code.