201Successful Response
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponse
/api/v1/bills/{bill_id}/resolve-approvalManually drive a bill that is wedged in 'pending_approval' to a terminal state when the normal Approve/Reject card is unavailable (the approval run never started, crashed before suspending, or suspended on a gate with no approvers). Cancels any in-flight approval run for the bill, then either approves it to 'received' (posting the journal entry) or rejects it to 'canceled'.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
bill_idstringrequiredSchema: ResolvePendingApprovalRequest
actionstringrequired'approve' posts the bill to 'received'; 'reject' moves it to 'canceled'.
One of: approve, reject
ledger_idstringExpense ledger to debit when approving. Required unless the bill carries a persisted multi-account split. Ignored for 'reject'.
reasonstringOptional reason captured in the audit trail when rejecting.
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject