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>
requiredcommandTypestringconstant:
requiredCreateInvoiceCommandtimestampstring<date-time>
requiredversionstring
requiredMatch pattern:
^\d+\.\d+\.\d+$dataobject
required