v1
latestOpenAPI 3.1.02026-08-04103211436.0 KBRetrieve accounting entry
Returns a single accounting entry by customId.
Path parameters
Response
Successful Response
Ledger account code the entry is posted to.
Ledger account code of the counterpart side of the entry, when applicable.
Display name of the ledger account (accountingCode).
Outflow side of the entry, in currency (money leaving the account). An entry always has both sides: if you only send liabilityAmount, assetAmount defaults to 0. The sign is inverted on storage (0 always stays 0): a positive value you send is stored and returned as negative, following the convention that negative amounts are outflows.
Outflow side expressed in the company accounting currency (accountingCurrency). Subject to the same sign convention as assetAmount.
Running balance of the ledger account (accountingCode) after this entry, typically calculated by Embat rather than provided by you.
Inflow side of the entry, in currency (money entering the account), stored with the sign you send. An entry always has both sides: if you only send assetAmount, liabilityAmount defaults to 0.
Inflow side expressed in the company accounting currency (accountingCurrency).
Custom ID of the contact (client/supplier), used when accountingCode is a contacts ledger account.
Exchange rate applied between currency and accountingCurrency.
Free-form key/value metadata to attach to the entry. Sending an empty object ({}) has no effect and does not clear previously stored metadata.
Free-text description of the entry. If omitted, Embat generates one: "Asiento " followed by accountingEntryCode if set, otherwise by customId.
Identifier of the source document (e.g. invoice) this entry relates to.
Embat IDs of the bank transactions related to this entry.
Embat ID of the payment related to this entry.
Accounting date of the entry. Send a plain date at midnight (e.g. 2024-01-15T00:00:00Z) — sending a different time of day can shift the stored calendar date and is not fully normalized to midnight.
Your own unique ID for the entry, to use as your ERP accounting entry ID. If omitted, Embat auto-generates one.
Your own ID grouping the entries that form a single journal/document (e.g. all lines of one invoice posting). Several entries can share the same accountingEntryCode.
Alternate grouping code for the entry. Bulk deletion by entry code (DELETE /accountingentries/accountingentrycode/{companyId}) matches entries by either accountingEntryCode or accountingEntryCodeId.
Embat accounting entry ID
Embat company ID. You can get them from "companies" endpoints
Last updated date of the entity in the database
Created date of the entity in the database
Whether the entry has been matched to a bank transaction through reconciliation. Entries dated before the ledger account's configured start date are excluded from reconciliation matching and never become true.
Embat reconciliation IDs associated with this entry, when reconciled.
Example response
{
"accountingCode": "4300001",
"counterpartAccountingCode": "5720001",
"accountingName": "Trade debtors",
"assetAmount": 1250.5,
"accountingAssetAmount": 1250.5,
"contactCustomId": "contact-001",
"exchangeRate": 1,
"description": "Invoice #2024-001 posting",
"date": "2024-01-15T00:00:00Z",
"attributes": [
{
"customId": "cost-center",
"value": "Marketing",
"valueCustomId": "marketing"
}
],
"customId": "erp-entry-2024-001",
"accountingEntryCode": "invoice-2024-001"
}