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
| Field | Type | Description |
|---|---|---|
| id | uuid | Journal entry UUID |
| object | journal_entry | Always 'journal_entry' |
| entry_number | string | Journal number (e.g., JE-0042) |
| date | date | ISO 8601 date of the entry |
| memo | string | null | Memo |
| adjusting | boolean | Whether the entry is marked as an adjusting entry |
| status | string | posted: 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 |
| currency | string | ISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds |
| home_currency | string | The company's home currency; debit_cents and credit_cents are in it |
| exchange_rate | string | null | Home currency per unit of currency, as a decimal string (foreign-currency entries) |
| total_cents | integer | Sum of the debits, in the home currency's cents |
| reversal_of_id | uuid | null | UUID of the entry this one reversed (null unless it is a reversal) |
| reversed_by_id | uuid | null | UUID of the entry that reversed this one (null unless reversed) |
| lines | object[] | The entry's lines, including any owed-between lines Imprest added to balance each entity |
| created_at | date-time | ISO 8601 timestamp |
| updated_at | date-time | ISO 8601 timestamp |
Endpoints
/api/v1/journal_entriesList 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
| Parameter | Type | Description |
|---|---|---|
| date_from | date | Only entries dated on or after this date (YYYY-MM-DD) |
| date_to | date | Only entries dated on or before this date (YYYY-MM-DD) |
| page | integer | Page number (default 1) |
| per_page | integer | Results per page (1-200, default 50) |
curl https://imprest.ai/api/v1/journal_entries \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"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
| Parameter | Type | Description |
|---|---|---|
| journal_entriesrequired | object[] | Array of journal entry objects |
| idrequired | uuid | Journal entry UUID |
| objectrequired | journal_entry | Always 'journal_entry' |
| entry_numberrequired | string | Journal number (e.g., JE-0042) |
| daterequired | date | ISO 8601 date of the entry |
| memorequired | string | null | Memo |
| adjustingrequired | boolean | Whether the entry is marked as an adjusting entry |
| statusrequired | string | posted: 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 |
| currencyrequired | string | ISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds |
| home_currencyrequired | string | The company's home currency; debit_cents and credit_cents are in it |
| exchange_raterequired | string | null | Home currency per unit of currency, as a decimal string (foreign-currency entries) |
| total_centsrequired | integer | Sum of the debits, in the home currency's cents |
| reversal_of_idrequired | uuid | null | UUID of the entry this one reversed (null unless it is a reversal) |
| reversed_by_idrequired | uuid | null | UUID of the entry that reversed this one (null unless reversed) |
| linesrequired | object[] | The entry's lines, including any owed-between lines Imprest added to balance each entity |
| account_idrequired | uuid | Chart account UUID |
| debit_centsrequired | integer | Debit in the home currency's cents (0 on a credit line) |
| credit_centsrequired | integer | Credit in the home currency's cents (0 on a debit line) |
| original_currencyrequired | string | ISO currency the line was written in (debit_cents and credit_cents are always the home currency) |
| original_amount_centsrequired | integer | null | The line's amount in original_currency: positive for a debit, negative for a credit |
| descriptionrequired | string | null | Line description |
| contact_idrequired | uuid | null | Contact (party) UUID, if the line names one |
| customer_idrequired | uuid | null | Customer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise) |
| entity_idrequired | uuid | null | Entity UUID the line posts to |
| dimension_valuesrequired | object | Dimension tagging (dimension_id => value_id) |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
| paginationrequired | object | Where this page sits in the whole list |
| pagerequired | integer | This page's number, from 1 |
| per_pagerequired | integer | Results per page (1-200, default 50) |
| total_countrequired | integer | Results across every page |
| total_pagesrequired | integer | Pages 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.
/api/v1/journal_entriesCreate 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
| Parameter | Type | Description |
|---|---|---|
| daterequired | date | Entry date (YYYY-MM-DD) |
| entry_number | string | Journal number (defaults to the next in sequence; must be unique) |
| memo | string | Memo |
| adjusting | boolean | Mark the entry as an adjusting entry |
| currency | string | ISO currency the lines are written in (defaults to the home currency) |
| exchange_rate | string | Home currency per unit of currency, as a decimal string. Omit to use the published rate on the date |
| confirm_exchange_rate | boolean | Keep an exchange_rate more than 10% from the published one (otherwise refused with rate_far_from_published) |
| linesrequired | object[] | At least two lines; debits must equal credits |
| account_idrequired | uuid | Chart account UUID |
| debit_cents | integer | Debit in cents (e.g., 125000 = $1,250.00). Send this or credit_cents |
| credit_cents | integer | Credit in cents. Send this or debit_cents |
| description | string | Line description |
| contact_id | uuid | Contact (party) UUID. Required on an Accounts Receivable or Accounts Payable line |
| entity_id | uuid | Entity UUID. Required on every line when the company keeps more than one entity |
| customer_id | uuid | Customer 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_values | object | Dimension tagging (dimension_id => value_id). Revenue, expense and cost of goods lines only |
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
}
]
}'{
"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
| Parameter | Type | Description |
|---|---|---|
| journal_entryrequired | object | Journal entry object |
| idrequired | uuid | Journal entry UUID |
| objectrequired | journal_entry | Always 'journal_entry' |
| entry_numberrequired | string | Journal number (e.g., JE-0042) |
| daterequired | date | ISO 8601 date of the entry |
| memorequired | string | null | Memo |
| adjustingrequired | boolean | Whether the entry is marked as an adjusting entry |
| statusrequired | string | posted: 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 |
| currencyrequired | string | ISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds |
| home_currencyrequired | string | The company's home currency; debit_cents and credit_cents are in it |
| exchange_raterequired | string | null | Home currency per unit of currency, as a decimal string (foreign-currency entries) |
| total_centsrequired | integer | Sum of the debits, in the home currency's cents |
| reversal_of_idrequired | uuid | null | UUID of the entry this one reversed (null unless it is a reversal) |
| reversed_by_idrequired | uuid | null | UUID of the entry that reversed this one (null unless reversed) |
| linesrequired | object[] | The entry's lines, including any owed-between lines Imprest added to balance each entity |
| account_idrequired | uuid | Chart account UUID |
| debit_centsrequired | integer | Debit in the home currency's cents (0 on a credit line) |
| credit_centsrequired | integer | Credit in the home currency's cents (0 on a debit line) |
| original_currencyrequired | string | ISO currency the line was written in (debit_cents and credit_cents are always the home currency) |
| original_amount_centsrequired | integer | null | The line's amount in original_currency: positive for a debit, negative for a credit |
| descriptionrequired | string | null | Line description |
| contact_idrequired | uuid | null | Contact (party) UUID, if the line names one |
| customer_idrequired | uuid | null | Customer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise) |
| entity_idrequired | uuid | null | Entity UUID the line posts to |
| dimension_valuesrequired | object | Dimension tagging (dimension_id => value_id) |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 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.
/api/v1/journal_entries/:idRetrieve a journal entry
Scopes: journal_entries:read or journal_entries:write or journal_entries·operationId: getJournalEntry
Path & Query Parameters
| Parameter | Type | Description |
|---|---|---|
| idrequired | uuid | Journal entry UUID |
curl https://imprest.ai/api/v1/journal_entries/402380d7-0ea8-4b71-ba8c-edbcc7e30c39 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"{
"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
| Parameter | Type | Description |
|---|---|---|
| journal_entryrequired | object | Journal entry object |
| idrequired | uuid | Journal entry UUID |
| objectrequired | journal_entry | Always 'journal_entry' |
| entry_numberrequired | string | Journal number (e.g., JE-0042) |
| daterequired | date | ISO 8601 date of the entry |
| memorequired | string | null | Memo |
| adjustingrequired | boolean | Whether the entry is marked as an adjusting entry |
| statusrequired | string | posted: 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 |
| currencyrequired | string | ISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds |
| home_currencyrequired | string | The company's home currency; debit_cents and credit_cents are in it |
| exchange_raterequired | string | null | Home currency per unit of currency, as a decimal string (foreign-currency entries) |
| total_centsrequired | integer | Sum of the debits, in the home currency's cents |
| reversal_of_idrequired | uuid | null | UUID of the entry this one reversed (null unless it is a reversal) |
| reversed_by_idrequired | uuid | null | UUID of the entry that reversed this one (null unless reversed) |
| linesrequired | object[] | The entry's lines, including any owed-between lines Imprest added to balance each entity |
| account_idrequired | uuid | Chart account UUID |
| debit_centsrequired | integer | Debit in the home currency's cents (0 on a credit line) |
| credit_centsrequired | integer | Credit in the home currency's cents (0 on a debit line) |
| original_currencyrequired | string | ISO currency the line was written in (debit_cents and credit_cents are always the home currency) |
| original_amount_centsrequired | integer | null | The line's amount in original_currency: positive for a debit, negative for a credit |
| descriptionrequired | string | null | Line description |
| contact_idrequired | uuid | null | Contact (party) UUID, if the line names one |
| customer_idrequired | uuid | null | Customer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise) |
| entity_idrequired | uuid | null | Entity UUID the line posts to |
| dimension_valuesrequired | object | Dimension tagging (dimension_id => value_id) |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 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.
/api/v1/journal_entries/:id/reverseReverse 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
| Parameter | Type | Description |
|---|---|---|
| idrequired | uuid | Journal entry UUID |
Body Parameters
| Parameter | Type | Description |
|---|---|---|
| date | date | Reversal date (YYYY-MM-DD). Defaults to the original's date; refused when that period is locked |
| memo | string | Memo for the reversal |
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"
}'{
"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
| Parameter | Type | Description |
|---|---|---|
| journal_entryrequired | object | The original entry (status reversed once the reversal posts) |
| idrequired | uuid | Journal entry UUID |
| objectrequired | journal_entry | Always 'journal_entry' |
| entry_numberrequired | string | Journal number (e.g., JE-0042) |
| daterequired | date | ISO 8601 date of the entry |
| memorequired | string | null | Memo |
| adjustingrequired | boolean | Whether the entry is marked as an adjusting entry |
| statusrequired | string | posted: 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 |
| currencyrequired | string | ISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds |
| home_currencyrequired | string | The company's home currency; debit_cents and credit_cents are in it |
| exchange_raterequired | string | null | Home currency per unit of currency, as a decimal string (foreign-currency entries) |
| total_centsrequired | integer | Sum of the debits, in the home currency's cents |
| reversal_of_idrequired | uuid | null | UUID of the entry this one reversed (null unless it is a reversal) |
| reversed_by_idrequired | uuid | null | UUID of the entry that reversed this one (null unless reversed) |
| linesrequired | object[] | The entry's lines, including any owed-between lines Imprest added to balance each entity |
| account_idrequired | uuid | Chart account UUID |
| debit_centsrequired | integer | Debit in the home currency's cents (0 on a credit line) |
| credit_centsrequired | integer | Credit in the home currency's cents (0 on a debit line) |
| original_currencyrequired | string | ISO currency the line was written in (debit_cents and credit_cents are always the home currency) |
| original_amount_centsrequired | integer | null | The line's amount in original_currency: positive for a debit, negative for a credit |
| descriptionrequired | string | null | Line description |
| contact_idrequired | uuid | null | Contact (party) UUID, if the line names one |
| customer_idrequired | uuid | null | Customer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise) |
| entity_idrequired | uuid | null | Entity UUID the line posts to |
| dimension_valuesrequired | object | Dimension tagging (dimension_id => value_id) |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 8601 timestamp |
| reversalrequired | object | The reversing entry |
| idrequired | uuid | Journal entry UUID |
| objectrequired | journal_entry | Always 'journal_entry' |
| entry_numberrequired | string | Journal number (e.g., JE-0042) |
| daterequired | date | ISO 8601 date of the entry |
| memorequired | string | null | Memo |
| adjustingrequired | boolean | Whether the entry is marked as an adjusting entry |
| statusrequired | string | posted: 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 |
| currencyrequired | string | ISO currency a manual entry was written in (the company's home currency unless sent); each line's original_currency says what it holds |
| home_currencyrequired | string | The company's home currency; debit_cents and credit_cents are in it |
| exchange_raterequired | string | null | Home currency per unit of currency, as a decimal string (foreign-currency entries) |
| total_centsrequired | integer | Sum of the debits, in the home currency's cents |
| reversal_of_idrequired | uuid | null | UUID of the entry this one reversed (null unless it is a reversal) |
| reversed_by_idrequired | uuid | null | UUID of the entry that reversed this one (null unless reversed) |
| linesrequired | object[] | The entry's lines, including any owed-between lines Imprest added to balance each entity |
| account_idrequired | uuid | Chart account UUID |
| debit_centsrequired | integer | Debit in the home currency's cents (0 on a credit line) |
| credit_centsrequired | integer | Credit in the home currency's cents (0 on a debit line) |
| original_currencyrequired | string | ISO currency the line was written in (debit_cents and credit_cents are always the home currency) |
| original_amount_centsrequired | integer | null | The line's amount in original_currency: positive for a debit, negative for a credit |
| descriptionrequired | string | null | Line description |
| contact_idrequired | uuid | null | Contact (party) UUID, if the line names one |
| customer_idrequired | uuid | null | Customer UUID the line counts toward in profit and loss by customer (income, cost of goods and expense lines; null otherwise) |
| entity_idrequired | uuid | null | Entity UUID the line posts to |
| dimension_valuesrequired | object | Dimension tagging (dimension_id => value_id) |
| created_atrequired | date-time | ISO 8601 timestamp |
| updated_atrequired | date-time | ISO 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.