Create a new invoice for a business with line items and optional payments. Supports optional document upload via multipart field file (with optional document_type, upload_source, metadata, tags). JSON-only requests remain supported when no file is provided.
Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>
Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.
Business UUID provided by Thred (unique identifier for the business)
Invoice creation serializer for API requests Maps API format to internal models and creates invoices with line items
External system identifier for this invoice
1When the invoice was sent (ISO 8601 format)
Array of line items for this invoice
When payment is due (ISO 8601 format). Defaults to 30 days from sent_at
When the invoice was voided (not used - we use cancelled status)
Invoice number for display. Auto-generated if not provided
Type of invoice: invoice or receipt
invoice - Invoicereceipt - Receiptinvoice, receipt Existing customer ID to assign invoice to
External customer ID. Will create customer if not found
Invoice description or memo
Additional invoice-level discount in cents
Array of additional tax objects
Total additional sales taxes in cents
Tips amount in cents
Tips account information
Array of transaction tags for categorization
1Additional metadata for the invoice
Optional document upload
Invoice serializer for API responses All monetary amounts are returned in cents
Resource type identifier
Unique invoice identifier
Business this invoice belongs to
Invoice status in uppercase format
DRAFT, SENT, PAID, PARTIALLY_PAID, OVERDUE, CANCELLED, REFUNDED "SENT"
When the invoice was sent to customer
When payment is due (ISO timestamp)
When the invoice was fully paid
When the invoice was voided (always null - we use cancelled status)
True if invoice is past due date and has outstanding balance
false
Invoice number for display and reference
100Type of invoice: invoice or receipt
invoice - Invoicereceipt - Receiptinvoice, receipt ISO 4217 currency code (e.g., EUR, GBP, USD)
3Customer information
Array of invoice line items
Subtotal amount in cents before taxes
Additional invoice-level discount in cents
Additional sales taxes array
Total additional sales taxes in cents
Tips amount in cents
Tips account information
Total invoice amount in cents including taxes
Outstanding balance in cents
Array of payment allocations
Array of customer credit note allocations
Array of refund allocations
Array of write-offs on this invoice
Latest invoice document file with presigned URL
When the invoice was imported/created
When the invoice was last updated
External system identifier
Invoice description or memo