201Successful Response
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponse
/api/v1/bills/{bill_id}/submit-for-approvalSubmit a cleaned-up draft bill into the AP approval workflow. The bill moves to 'pending_approval' and is NOT posted to the general ledger until an approver signs off, at which point it posts to 'received'. Requires the business to have the approval workflow enabled.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
bill_idstringrequiredSchema: BillReceivedRequest
bill_idstringUUID of the bill (set automatically from URL path).
amountintegerrequiredActual bill amount in cents. Must be greater than 0.
ledger_idstringrequiredUUID of the expense ledger account to categorize this bill. Required for creating the journal entry.
s3_keystringS3 key of the bill document.
journal_entry_datestring · date-time | string · date | stringDate for the accounting journal entry (ISO 8601 or YYYY-MM-DD).
received_onstring · date-time | string · date | stringDate the bill/goods were received (ISO 8601 or YYYY-MM-DD).
due_onstring · date-time | string · date | stringPayment due date (ISO 8601 or YYYY-MM-DD).
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject