CoworkerInvoiceLines
Update CoworkerInvoiceLine
Update an existing CoworkerInvoiceLine record.
PUT
Update CoworkerInvoiceLine
Updates an existing CoworkerInvoiceLine record. You must include the
Id of the record to update along with all required fields.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the CoworkerInvoiceLine-Edit role.Request Body
Required Fields
integer
required
The Id of the CoworkerInvoiceLine record to update.
integer
required
ID of the invoice that contains this line; it determines the customer, location, currency, and payment state..
string
required
Required line-item description; shown on the invoice unless DisplayAs supplies replacement printed text..
integer
required
Number of units on the line; changes the linked product quantity when the line originated from a product sale..
number
required
Net line amount before tax; changing it recalculates tax and invoice totals and may update the linked charge, pass, time credit, or product sale..
number
required
Calculated tax amount for this line, derived from SubTotal and the resolved TaxCategoryName, customer, or location tax rate; do not set directly..
number
required
Calculated tax percentage applied to this line; resolved from TaxCategoryName, the customer’s personal rate, or the location default; do not set directly..
number
required
Read-only monetary amount of the customer’s available booking credit applied to the originating product sale; copied to this line for reference and does not reduce SubTotal or TaxAmount..
Optional Fields
string
Optional customer-facing text displayed on printed and emailed invoices instead of Description..
string
Optional tax-category name used to resolve the line tax rate; otherwise the customer’s personal rate or the location default applies..
string
Financial-account code that categorises this line’s revenue for accounting..
string
Financial-account name that categorises this line’s revenue for accounting..
string
GUID of the entity that issued this line, such as the issuing contract or location; retain for provenance rather than setting manually..
string
GUID of the original line cancelled by this line; maintained by cancellation workflows and used when reversing cancellation..
string
Location-timezone mirror of CreatedOn; use the canonical CreatedOn value instead..
string
Location-timezone mirror of RefundedOn; use the canonical RefundedOn value instead..
string
Location-timezone mirror of SaleDate; use the canonical SaleDate value instead..
string
Optional purchase-order reference for this line, used when billing splits or groups items by purchase order..
Code Examples
Response
200
integer
HTTP status code.
200 on success.string
A human-readable message confirming the update.
object
Contains the
Id of the updated record.boolean
true if the coworkerinvoiceline was updated successfully.array
null on success.Example Response
400
string
A summary of the validation error(s), in the format
PropertyName: error message.any
null on validation failure.object[]
Array of validation errors.
boolean
false when the request fails validation.Example Response