Create Invoice
Create a new invoice.
Required fields:
- `title`: Invoice title
- `recordId`: Project, opportunity, or account ID (the record must exist first)
- `calculationMethod`: Must be "LINE_ITEMS" or "PERCENTAGE"
- `lineItems`: Array of at least one line item if calculationMethod is "LINE_ITEMS"
- `percentage`: Percentage if calculationMethod is "PERCENTAGE"
- `dueDate`: ISO 8601 datetime string
Optional fields:
- `description`: Invoice description
Authentication
x-api-keystring
API Key authentication via header
Request
This endpoint expects an object.
title
Invoice title
recordId
Project, opportunity, or account ID
calculationMethod
Calculation method
Allowed values:
lineItems
Array of line items (at least one required)
dueDate
Due date (ISO 8601 datetime string)
status
Initial invoice status (defaults to DRAFT)
description
Invoice description
Response
Invoice created successfully
id
Invoice identifier
uid
Unique invoice number
title
Invoice title
status
Invoice status
amount
Total invoice amount
amountPaid
Amount paid
calculationMethod
Calculation method (e.g., LINE_ITEMS)
createdAt
Creation timestamp
updatedAt
Last update timestamp
description
Invoice description
type
Invoice type
Allowed values:
basedOnId
ID of the record this invoice is based on
basedOnUid
UID of the record this invoice is based on
dueDate
Due date
isArchived
Whether the invoice is archived
percentage
Percentage if applicable
baseAmount
Base amount if applicable
account
record
lineItems
