v1

latestOpenAPI 3.1.0Proprietary2026-08-06177398877.4 KB
Invoices

Batch generate invoices

Generate invoices for multiple shipments in a single request.

What happens

  • Creates invoice records for each shipment
  • Generates PDF documents
  • Optionally sends emails grouped by customer

Note

Shipments that already have invoices or are missing requirements will be skipped and returned in the failed array.

post/invoices/batch-generate

Request body

orderIdsstring[] required

Order IDs to generate invoices for

sendEmailboolean

Email invoices to customers after generation

Response

Batch generation completed

emailsSentinteger