CoworkerProducts
Create CoworkerProduct
Create a new CoworkerProduct record.
POST
Create CoworkerProduct
A CoworkerProduct is a record of a product sold to a customer as a one-off or on a recurrent basis.Documentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
| UniqueId property | Source entity |
|---|---|
CoworkerContractUniqueId | CoworkerContract |
ContractDepositUniqueId | ContractDeposit |
ContractProductUniqueId | ContractProduct |
BookingUniqueId | Booking |
CoworkerDeliveryUniqueId | CoworkerDelivery |
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
| Value | Name |
|---|---|
| 1 | PricePlan |
| 2 | Day |
| 3 | Week |
| 4 | Month |
| 5 | Year |
| 6 | LastDayOfMonth |
Request Body
Required Fields
ID of the coworker linked to this record.
ID of the business linked to this record.
ID of the product linked to this record.
Number of units.
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.Credit amount.
Discount amount.
Optional Fields
Optional notes or comments about this coworker product.
Purchase order.
Activate immediately, releasing any benefits (credits or passes) even before the product is invoiced and paid.
Invoice this customer for this product instead of the paying member of their team.
Price override.
Whether this is a regular charge.
Number of repeat units.
Invoice on date.
Repeat from date.
Repeat until date.
Sale date.
Due date.
Whether it has been invoiced.
Whether mrm reminded is enabled.
Apply pro-rating.
ID of the proposal unique associated with this record.
Coworker invoice ID.
Coworker invoice number.
Whether coworker invoice is paid.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the coworkerproduct was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create CoworkerProduct