201Successful Response
Schema: SuccessEnvelope_CreateBatchInvoicesResponse_
successbooleanmessagestringcodestringdataCreateBatchInvoicesResponse
/api/v1/invoices/batchCreate invoices for multiple customers in one action, optionally sweeping delayed charges.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: BatchInvoiceRequest
itemsarray · BatchInvoiceItemrequiredBatchInvoiceItemList of invoices to create
customer_idstringrequiredCustomer ID
line_itemsarray · BatchInvoiceLineItemrequiredLine items
due_datestringrequiredDue date YYYY-MM-DD
descriptionstringInvoice description
include_delayed_chargesbooleanIf true, sweep pending delayed charges for each customer into their invoice
finalizebooleanAuto-finalize invoices after creation
Schema: SuccessEnvelope_CreateBatchInvoicesResponse_
successbooleanmessagestringcodestringdataCreateBatchInvoicesResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject