201Successful Response
Schema: SuccessEnvelope_BulkTransactionUploadPreviewResponse_
successbooleanmessagestringcodestringdataBulkTransactionUploadPreviewResponse
/api/v1/transactions/bulk-upload/previewPreview and validate a CSV/Excel file before uploading transactions.
This endpoint allows you to:
Supported File Formats: .csv, .xlsx, .xls
Returns: Validation results, statistics, and sample transactions without actually uploading.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BulkTransactionUploadPreviewRequest
s3_keystringrequiredS3 key of the CSV file containing transactions
start_datestring · dateOptional: Only preview transactions on or after this date (YYYY-MM-DD).
end_datestring · dateOptional: Only preview transactions on or before this date (YYYY-MM-DD).
check_duplicatesbooleanIf true, checks for duplicate transactions against existing database records.
ledger_idstringOptional: Ledger ID to check duplicates against. If not provided, checks all ledgers for the business.
financial_account_typestringFinancial account type selected for a new ledger. Used by preview to show the same signed amount DayZero will store after import.
column_mappingobjectUser-supplied mapping from DayZero field names to CSV column names. Keys: 'date', 'amount', 'description', and optional 'category' (aliases: ledger, ledger_name, account, account_name, category_name). Values: the CSV header to use. When provided, auto-detection is skipped.
Schema: SuccessEnvelope_BulkTransactionUploadPreviewResponse_
successbooleanmessagestringcodestringdataBulkTransactionUploadPreviewResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject