Request to create an invoice.
Participant data (email, display_name, address) is snapshotted at creation time. Amount is computed as sum of items[].price * items[].quantity. invoice_number is auto-generated per (contractor, client) pair.
Supported invoice/contract currencies. G10 majors + AED/HKD.
Prefix for auto-generated invoice_number, e.g. "INV" → "INV-0001".
Fixed discount in invoice currency. Subtracted from sum of items.
Address schema for user.
Canonical field names: street_address, address_line_2, city, state, country, zip. Accepts legacy Align/IBAN field names (street_line_1, street_line_2, postal_code) for backward compatibility with existing JSONB data.
Successful Response
Invoice response.
Minimal transaction info embedded in invoice response.
Invoice status.
Minimal participant info for invoice response.
Minimal contract info embedded in invoice response.