Create Bill
Create a new bill.
Required fields:
recordId: Project ID (the project 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”
Line item rules for bills:
unitCostmust be greater than 0 (strictly positive — bills represent vendor costs)unitPricemay be negative (negative values represent discounts)
Optional fields:
dueDate: ISO 8601 datetime stringdescription: Bill descriptionissueDate: ISO 8601 datetime string
Authentication
Request
Calculation method. Cannot be changed after creation.
LINE_ITEMS: requireslineItemsorsections; allowsissueDateandstatusPERCENTAGE: requirespercentage;issueDate,status,lineItems, andsectionsare not allowed
Required when calculationMethod is LINE_ITEMS and sections is not provided.
unitCost must be greater than 0. unitPrice may be negative for discounts.
May be combined with sections (a catalogItemId may appear only once across both).
Required when calculationMethod is LINE_ITEMS and lineItems is not provided.
Grouped line items with named sections. May be combined with lineItems (ungrouped items).
Required when calculationMethod is PERCENTAGE. Must be between 0 and 100.
Due date (ISO 8601 datetime string)
Issue date (ISO 8601 datetime string). LINE_ITEMS bills only.
When provided, status must also be provided and must not be DRAFT.
Bill status. LINE_ITEMS bills only, and only when issueDate is also provided.
Omit to default to DRAFT.
Internal-only memo, never shown to customers or on the PDF or portal. Rich text (HTML, like the app’s editor stores). On update, send null or "" to clear it; responses return null when empty. Invoices and bills created in the app from a quote or purchase order inherit its memo.
Response
Calculation method (LINE_ITEMS or PERCENTAGE)
Internal-only memo, never shown to customers or on the PDF or portal. Rich text (HTML, like the app’s editor stores). On update, send null or "" to clear it; responses return null when empty. Invoices and bills created in the app from a quote or purchase order inherit its memo.
