200Successful Response
Schema: SuccessEnvelope_TransactionResponse_
successbooleanmessagestringcodestringdataTransactionResponse
/api/v1/transactions/{transaction_id}Update a transaction's description, counterparty, review status and other editable fields. A field that is not listed is rejected with 400, never ignored.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
transaction_idstringrequiredSchema: TransactionUpdateRequest
amountintegerAmount in cents.
datetimestring · dateTransaction date.
descriptionstringTransaction description.
counterpartystringCounterparty / merchant name. Applied to this transaction as a manual rename (the row is then left alone by automatic renaming).
rememberbooleanWith counterparty: also save the rename for the business, so its other rows under the same name and future ones show it (the same as bulk_update_counterparty remember=true). Default false renames this transaction only.
metaobjectMetadata JSON object for storing additional transaction details.
categorization_methodstringHow this transaction was categorized: 'ai', 'rules' (a bank rule), 'similarity', 'transfer_between_accounts', 'uncategorized', 'user', 'historical', 'global_pattern', 'merchant', 'pfc', 'account_type', or 'counterparty_default'.
posted_statusstringPosting status: 'not_posted', 'posted', or 'deleted'.
review_statusstringReview status: 'unreviewed' or 'reviewed'.
opposing_line_entry_idsarray · stringUUIDs of opposing line entries for double-entry accounting.
personalbooleanMark as personal expense (not business-related).
journal_entry_idstringUUID of linked journal entry for categorization.
external_source_account_idstringExternal source account ID.
ledger_idstringUUID of the ledger (bank account) this transaction belongs to.
reconciledbooleanMark transaction as reconciled with bank statement.
invoice_idstringUUID of linked invoice (for payment transactions).
Schema: SuccessEnvelope_TransactionResponse_
successbooleanmessagestringcodestringdataTransactionResponseSchema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.
Schema: ErrorResponse
errorstringrequiredError category: validation_error, unauthorized, forbidden, not_found, conflict, rate_limited, server_error, or service_unavailable.
messagestringrequiredHuman-readable explanation, safe to show to end users.
codestringrequiredStable machine-readable code in CATEGORY_NNN form (e.g. NOT_FOUND_006, AUTH_010, GEN_002).
request_idstringCorrelation id for support requests. Echoes the x-request-id request header when one was supplied.
errorsobjectField-level validation messages keyed by field name. Present on 400/422 validation failures only.