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
Unknown categories: a category that matches no ledger is reported in
row_errors ({row, field, value, suggestions}, nearest ledger names first)
and in errors; the upload refuses the file until it is fixed or sent with
allow_unmatched_categories.
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: 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.