CoworkerProducts
Create CoworkerProduct
Create a new CoworkerProduct record.
POST
Create CoworkerProduct
A product sale (CoworkerProduct) records a product sold to a customer, either as a one-off purchase or a recurring charge, and can grant the product’s included passes, time credit, and booking credit.
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 CoworkerProduct-Create role.Enums
eRecurrentChargePattern — RepeatCycle values
eRecurrentChargePattern — RepeatCycle values
Request Body
Required Fields
integer
required
ID of the customer purchasing this product; the customer must be accessible at the selected location..
integer
required
ID of the location that owns and issues this product sale; set automatically from the tool’s location context..
integer
required
ID of the product being sold; the product must be available to the selected customer at this location..
integer
required
Number of product units to sell; must be at least 1 and multiplies price and included benefits..
integer
required
Recurring schedule pattern: PricePlan, Day, Week, Month, Year, or LastDayOfMonth. PricePlan follows the customer’s main contract; prefer ContractProduct for plan-linked recurring products.. Defaults to
eRecurrentChargePattern.PricePlan.number
required
Monetary discount amount applied to this sale in the invoice currency..
Optional Fields
string
Optional internal notes about this product sale..
string
Optional customer purchase-order reference for this sale..
boolean
Whether to activate included passes, time credit, and booking credit immediately, before the sale is invoiced or paid..
boolean
Whether to invoice this customer directly instead of the paying customer in their team..
number
Optional unit-price override in the product currency; when omitted, the product’s current price is used, then multiplied by Quantity..
boolean
Whether this is a recurring product sale rather than a one-off sale; requires scheduling values for non-PricePlan repeat cycles..
integer
Positive number of RepeatCycle units between recurring charges; required when RegularCharge is true and RepeatCycle is not PricePlan..
string
Date and time when this sale is next due for invoicing; required for recurring sales whose RepeatCycle is not PricePlan..
string
Optional date and time from which recurring invoicing begins; a future value delays activation until that date..
string
Optional exclusive end date for recurring invoicing; no later charge is created when the next invoicing date reaches this value..
string
Optional sale date for this product sale; when omitted, reports use the record creation date..
string
Optional date and time by which payment is due; benefits can auto-activate when it has passed and the discounted price is zero..
boolean
Internal reminder-processing flag set after product reminders are handled..
boolean
Whether the sale price is prorated against the customer’s main contract billing period; the product’s prorating setting can also apply..
string
Internal GUID link to the proposal that created this sale; manage the proposal instead..
boolean
Whether the deposit represented by this sale is refunded when its connected contract is cancelled; applies only to deposit products..
Code Examples
Response
200
integer
HTTP status code.
200 on success.string
A human-readable message confirming the creation.
object
Contains the
Id of the newly created record.boolean
true if the coworkerproduct was created 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