Attach file to journal entry

PATCH /api/v1/journal-entries/{journal_entry_id}/attachment

Upload and attach a document file to a journal entry.

Operation ID: attach_file_to_journal_entry_api_v1_journal_entries__journal_entry_id__attachment_patch · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

journal_entry_id string required

Responses

200 Successful Response

id string required

Unique identifier for this journal entry (UUID7).

description string required

Human-readable description of the transaction.

currency string

Currency for the journal entry (USD, CAD, AUD, EUR, or GBP).

entry_date string · date required

The date this transaction occurred.

invoice_id string

UUID of linked invoice, if this entry relates to an invoice.

inventory_order_id string

UUID of linked inventory order (PO), if this entry relates to a PO.

source string

Backend origin: manual, invoice, bill, credit_memo, transaction, stripe, shopify, plaid, ramp, square, system, teal

creation_method string

User-facing creation method: ai (system-generated) or manual (user-typed)

business_id string required

UUID of the business this entry belongs to.

line_entries array · LineEntryResponse

The debit and credit line entries that make up this journal entry. Will be empty list if not expanded.

thread JournalEntryThreadResponse

Comment thread information if this journal entry has comments. Contains thread_id, comments array, and comment_count.

created_at string · date-time

When this journal entry was created.

updated_at string · date-time

When this journal entry was last modified.

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object