Create Bill
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.
Response
Calculation method (LINE_ITEMS or PERCENTAGE)
