# Get invoice with line items Returns details of a specific invoice including all line items. Endpoint: GET /invoices/{invoiceId} Version: 1.0.0 Security: ApiKeyAuth, OrgIdAuth ## Path parameters: - `invoiceId` (string, required) Unique identifier for the invoice Example: "d4c124bb-f2fd-4117-b1ec-e3021e4fa6c8" ## Response 200 fields (application/json): - `invoice` (object) - `invoice.id` (string, required) Unique identifier for the invoice - `invoice.orgId` (string, required) Organization ID - `invoice.amount` (string, required) Total invoice amount Example: "19.99" - `invoice.currency` (string, required) Currency code Example: "usd" - `invoice.status` (string, required) Invoice status Enum: "pending", "paid", "failed", "cancelled" - `invoice.stripeInvoiceId` (string,null) Stripe invoice ID Example: "inv_..." - `invoice.stripeInvoiceUrl` (string,null) Stripe invoice URL Example: "https://invoice.stripe.com/..." - `invoice.periodStart` (string, required) Billing period start - `invoice.periodEnd` (string, required) Billing period end - `invoice.paidAt` (string,null) Payment timestamp - `invoice.createdAt` (string) - `invoice.updatedAt` (string) - `lineItems` (array) - `lineItems.id` (string, required) Unique identifier for the line item - `lineItems.invoiceId` (string, required) Associated invoice ID - `lineItems.workTaskId` (string,null) Associated work task ID - `lineItems.description` (string, required) Line item description Example: "Model API calls - 2.5 hours" - `lineItems.quantity` (string, required) Quantity (decimal) Example: "2.5000" - `lineItems.unitPrice` (string, required) Price per unit Example: "10.00" - `lineItems.amount` (string, required) Total line item amount Example: "25.00" ## Response 400 fields (application/json): - `error` (string) Error message Example: "Missing required headers" - `details` (string) Additional error details Example: "x-api-key and x-org-id headers are required" ## Response 401 fields (application/json): - `error` (string) Error message Example: "Missing required headers" - `details` (string) Additional error details Example: "x-api-key and x-org-id headers are required" ## Response 403 fields (application/json): - `error` (string) Error message Example: "Missing required headers" - `details` (string) Additional error details Example: "x-api-key and x-org-id headers are required" ## Response 404 fields (application/json): - `error` (string) Error message Example: "Missing required headers" - `details` (string) Additional error details Example: "x-api-key and x-org-id headers are required"