Create transaction

POST/api/v1/transactions

Manually create a transaction record (not synced from bank).

Operation ID: create_transaction_api_v1_transactions_post·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.

Request body

amountinteger

Amount in cents. Positive for deposits/income, negative for withdrawals/expenses.

currencystring

Currency code (USD, CAD, AUD, EUR, or GBP). Defaults to business default currency.

datetimestring · date

Transaction date in ISO 8601 format (YYYY-MM-DD).

descriptionstring

Human-readable description of the transaction.

source_account_idstring

UUID of the bank account (ledger) this transaction belongs to.

reconciledboolean

Whether this transaction has been reconciled with bank statement.

Responses

201Successful Response

successboolean
messagestring
codestring
dataTransactionResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject