201Successful Response
Schema: SuccessEnvelope_JournalEntryResponse_
successbooleanmessagestringcodestringdataJournalEntryResponse
/api/v1/journal-entriesCreate a new double-entry journal entry with balanced line entries.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: JournalEntryCreateRequest
descriptionstringHuman-readable description of the journal entry. Should describe the transaction being recorded.
currencystringCurrency for the journal entry (USD, CAD, AUD, EUR, or GBP). Defaults to business default.
datestring · dateThe date when this transaction occurred. Use ISO 8601 date format (YYYY-MM-DD).
line_entriesarray · objectArray of line entries (minimum 2). Total debits must equal total credits. Each entry requires: amount (integer in cents), debit_credit ('debit' or 'credit'), ledger_id (UUID of target ledger account), description (what this line represents).
invoice_idstringOptional UUID of an invoice to link this journal entry to. Useful for tracking revenue recognition.
inventory_order_idstringOptional UUID of an inventory order (PO) to link this journal entry to. Useful for the PO audit trail.
Schema: SuccessEnvelope_JournalEntryResponse_
successbooleanmessagestringcodestringdataJournalEntryResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject