v1
latestOpenAPI 3.1.02026-08-04103211436.0 KBAccountingEntries
Update accounting entry
Updates one or more fields of an accounting entry identified by customId. Only the fields you send are changed — except description: if it is omitted, Embat resets it to an auto-generated value derived from the entry's identifier, overwriting any previously set custom description; resend the current value to keep it unchanged. Updating a customId that does not match any existing entry is a no-op: the call still returns 200 without creating or changing anything, and no 404 is raised.
patch/accountingentries/{companyId}/{customId}
Path parameters
customIdstring required
companyIdstring required
Request body
Example request
{
"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"
}
]
}Response
Successful Response