Charges
Create Charge
Create a new Charge record.
POST
Create Charge
A charge (internal name CoworkerCharge) is a one-off debit billed to a customer at a location. It records the item, quantity, amount, optional tax, discount, credit, and invoicing timing; a recurring charge is eligible only when the customer’s main contract is due for renewal.
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 Charge-Create role.Request Body
Required Fields
ID of the customer billed for this charge; the customer’s invoicing location controls access..
Internal monetary discount amount; charge creation uses the system default and this field is not exposed to the agent..
Internal monetary credit amount; charge creation uses the system default and this field is not exposed to the agent..
Optional Fields
Optional customer-facing text to display for the resulting invoice line instead of Description..
Whether this recurring charge is invoiced only when the customer has a main contract due for renewal..
Optional ID of the tax rate applied to this charge; required when the issuing location requires tax rates..
Optional ID of the financial account that categorises this charge; required when the issuing location requires financial accounts..
Whether this charge has been added to an invoice; changing an invoiced charge is blocked for locked periods and its amount cannot change after payment..
Internal flag for team-member charges; it bypasses the normal tax-rate and financial-account validation and must not be set by the agent..
System-maintained GUID of the customer product sale that generated this charge, when applicable..
Code Examples
Response
200
Example Response
400
Example Response