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
ID of the invoice that contains this line; it determines the customer, location, currency, and payment state..
Required line-item description; shown on the invoice unless DisplayAs supplies replacement printed text..
Number of units on the line; changes the linked product quantity when the line originated from a product sale..
Net line amount before tax; changing it recalculates tax and invoice totals and may update the linked charge, pass, time credit, or product sale..
Calculated tax amount for this line, derived from SubTotal and the resolved TaxCategoryName, customer, or location tax rate; do not set directly..
Calculated tax percentage applied to this line; resolved from TaxCategoryName, the customer’s personal rate, or the location default; do not set directly..
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
Optional customer-facing text displayed on printed and emailed invoices instead of Description..
Optional tax-category name used to resolve the line tax rate; otherwise the customer’s personal rate or the location default applies..
GUID of the entity that issued this line, such as the issuing contract or location; retain for provenance rather than setting manually..
GUID of the original line cancelled by this line; maintained by cancellation workflows and used when reversing cancellation..
Optional purchase-order reference for this line, used when billing splits or groups items by purchase order..
Code Examples
Response
200
Example Response
400
Example Response