Skip to main content
POST
Create CoworkerProduct
A CoworkerProduct is a record of a product sold to a customer as a one-off or on a recurrent basis. RepeatCycle can only be set to PricePlan if the customer has a contract set as their main contract. In general, it is best to use ContractProduct instead of adding CoworkerProducts repeating based on PricePlan. InvoiceThisCoworker indicates this customer should be invoiced for this product instead of the paying member of their team. ActivateNow releases any benefits (credits or passes) even before the product is invoiced and paid. ProductApplyProRating indicates the sold product is configured to prorate the price of this sale based on the prorating rules of the main contract of the customer: it adjusts the price based on the number of days left between the current date and the next invoice date (RenewalDate) of the customer’s main contract. Properties ending in UniqueId link the sale to the originating record using its GUID UniqueId property (not the integer ID). Only one of these will be populated per record:

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

Request Body

Required Fields

integer
required
ID of the coworker linked to this record.
integer
required
ID of the business linked to this record.
integer
required
ID of the product linked to this record.
integer
required
Number of units.
integer
required
Repeat cycle pattern. PricePlan can only be used if the customer has a main contract; prefer ContractProduct instead of CoworkerProducts repeating on PricePlan. Defaults to eRecurrentChargePattern.PricePlan.
number
required
Credit amount.
number
required
Discount amount.

Optional Fields

string
Optional notes or comments about this coworker product.
string
Purchase order.
boolean
Activate immediately, releasing any benefits (credits or passes) even before the product is invoiced and paid.
boolean
Invoice this customer for this product instead of the paying member of their team.
number
Price override.
boolean
Whether this is a regular charge.
integer
Number of repeat units.
string
Invoice on date.
string
Repeat from date.
string
Repeat until date.
string
Sale date.
string
Due date.
boolean
Whether it has been invoiced.
boolean
Whether mrm reminded is enabled.
boolean
Apply pro-rating.
string
ID of the proposal unique associated with this record.
integer
Coworker invoice ID.
string
Coworker invoice number.
boolean
Whether coworker invoice is paid.

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