Create Invoice Command

Command to generate a new invoice for a customer

Overview

The CreateInvoiceCommand requests generation of a new invoice based on orders, contracts, or manual input.

Command Schema

Schema Definition

{
"commandId": "uuid",
"commandType": "CreateInvoiceCommand",
"timestamp": "2025-12-11T10:30:00Z",
"version": "1.0.0",
"data": {
"customerId": "string",
"lineItems": [
{
"description": "string",
"quantity": "number",
"unitPrice": "number"
}
],
"paymentTerms": "string",
"dueDate": "date (optional)"
}
}
12 properties
commandIdstring<uuid>
required
commandTypestringconstant: CreateInvoiceCommand
required
timestampstring<date-time>
required
versionstring
required
Match pattern: ^\d+\.\d+\.\d+$
dataobject
required