201Successful Response
Schema: SuccessEnvelope_InvoiceBulkCreateResponse_
successbooleanmessagestringcodestringdataInvoiceBulkCreateResponse
/api/v1/invoices/bulkCreate multiple invoices from CSV data in a single request.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: InvoiceBulkRequest
s3_keystringS3 key of the uploaded CSV file containing invoice data.
finalizebooleanIf true, immediately finalize all created invoices.
allow_duplicatesbooleanBy default a row that matches an invoice a previous import already created (same customer, due date, total, description and line items) is skipped and reported under duplicates, so uploading the same file twice is safe. Set true to import those rows anyway — they are created without a fingerprint and will not be deduplicated against on future uploads.
historicalbooleanThe file holds invoices that were already issued elsewhere — a books migration rather than new billing. Every row is written locally and none reach Stripe, even if the business has an account connected, so nothing can be sent to or charged to a customer. Past due dates are accepted, which they otherwise are not. Use the invoice_date and invoice_number columns to keep each invoice's original date and number.
Schema: SuccessEnvelope_InvoiceBulkCreateResponse_
successbooleanmessagestringcodestringdataInvoiceBulkCreateResponseSchema: HTTPValidationError
detailarray · ValidationErrorValidationErrorlocarray · string | integerrequiredmsgstringrequiredtypestringrequiredinputobjectctxobject