201Successful Response
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponse
/api/v1/bills/receivedCreate a new bill directly in 'received' status, ready for payment. Creates both the bill AND journal entry when ledger_id is provided.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BillReceivedCreateRequest
vendor_idstringrequiredUUID of the vendor this bill is from (required).
amountintegerrequiredBill amount in cents (required).
descriptionstringDescription of what the bill is for.
bill_numberstringBill/invoice number from the vendor. Auto-generated if not provided.
currencystringCurrency for the bill (USD, CAD, AUD, EUR, or GBP). Defaults to business default.
typestringBill type: 'recurring' or 'one_time'. Defaults to 'one_time'.
received_onstring · date-time | stringDate the bill was received (ISO 8601). Defaults to now.
due_onstring · date-time | stringPayment due date (ISO 8601).
s3_keystringS3 key of uploaded bill document (PDF/image).
ledger_idstringUUID of the expense ledger for journal entry creation. If provided, creates journal entry automatically. Ignored when line_items is provided.
line_itemsarray · JournalEntryLineItemSplit journal entry lines. Each line specifies a debit account and amount. The credit side is always Accounts Payable. When provided, ledger_id is ignored.
journal_entry_datestring · date-time | string · date | stringDate for the accounting journal entry (ISO 8601 or YYYY-MM-DD). Defaults to received_on if not provided.
Schema: SuccessEnvelope_BillResponse_
successbooleanmessagestringcodestringdataBillResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject