Update Bill
Update an existing bill. Supports partial updates.
Updatable fields:
- `calculationMethod`: Must be "LINE_ITEMS" or "PERCENTAGE"
- `lineItems`: Array of line items if calculationMethod is "LINE_ITEMS"
- `percentage`: Percentage if calculationMethod is "PERCENTAGE"
- `dueDate`: ISO 8601 datetime string
- `issueDate`: ISO 8601 datetime string
- `description`: Bill description
- `status`: Bill status
Authentication
x-api-keystring
API Key authentication via header
Path parameters
billId
Bill identifier
Request
This endpoint expects an object.
lineItems
Line items (LINE_ITEMS bills only)
percentage
Percentage value (PERCENTAGE bills only)
dueDate
Due date (ISO 8601 datetime string)
issueDate
Issue date (LINE_ITEMS bills only). When provided, status must also be provided and must not be DRAFT.
status
Bill status (LINE_ITEMS bills only). Only valid when issueDate is also provided.
Allowed values:
description
Bill description
Response
Bill updated successfully
id
Bill identifier
status
Bill status
amount
Total bill amount
amountPaid
Amount paid
calculationMethod
Calculation method (LINE_ITEMS or PERCENTAGE)
createdAt
Creation timestamp
updatedAt
Last update timestamp
billNumber
Unique bill number
description
Bill description
type
Document type
Allowed values:
basedOnId
ID of the record this bill is based on
basedOnUid
UID of the record this bill is based on
dueDate
Due date
issueDate
Issue date
isArchived
Whether the bill is archived
percentage
Percentage if calculationMethod is PERCENTAGE
baseAmount
Base amount if calculationMethod is PERCENTAGE
account
record
lineItems
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
