Create expense report

POST/api/v1/expense-reports

Create a draft expense report with line items.

Operation ID: create_expense_report_api_v1_expense_reports_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

titlestring
descriptionstring
currencystring
linesarray · ExpenseReportLineInputrequiredExpenseReportLineInput
5 fields
descriptionstringrequired
amountintegerrequired

Amount in cents

expense_datestring · daterequired

Date expense was incurred

s3_keystring

Receipt attachment S3 key

ledger_idstring

Expense category ledger

Responses

201Successful Response

successboolean
messagestring
codestring
dataExpenseReportDetailResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

422Validation Error

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