ProductExtraServices
Create ProductExtraService
Create a new ProductExtraService record.
POST
Create ProductExtraService
A ProductExtraService links anDocumentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
ExtraService to a Product. The meaning of UsesIncluded depends on the type of the linked extra service:
- Booking time (ExtraService with
IsPrintingCredit = false) — customers receive an allowance of booking time for the resource type(s) associated with that extra service. For example, a product called “Hot Desk Bundle” might include 2 hours of meeting room usage — achieved by linking a “Meeting Room Hourly” extra service with “UsesIncluded120. - Printing credit (ExtraService with
IsPrintingCredit = true) — customers receive a number of print jobs/pages.UsesIncludedis the number of printing credits included. The linked extra service must haveChargePeriod = 5(Uses) andPrice = 1.
IsPrintingCredit on the linked extra service before interpreting UsesIncluded.
For booking-time extra services, the unit of UsesIncluded is determined by the ChargePeriod of the linked ExtraService:
| ExtraService ChargePeriod | UsesIncluded unit |
|---|---|
| 1 (Minutes) | Minutes |
| 2 (Days) | Days |
| 3 (Weeks) | Weeks |
| 4 (Months) | Months |
| 5 (Uses) | Individual uses |
| 6 (FourWeekMonths) | 4-week periods |
60 on a minutes extra service means 60 minutes of booking time included. On a daily extra service it means 60 full days.
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 ProductExtraService-Create role.Enums
eChargePeriod — ExtraServiceChargePeriod values
eChargePeriod — ExtraServiceChargePeriod values
| Value | Name |
|---|---|
| 1 | Minutes |
| 2 | Days |
| 3 | Weeks |
| 4 | Months |
| 5 | Uses |
| 6 | FourWeekMonths |
eRecurrentChargePattern
eRecurrentChargePattern
| Value | Name |
|---|---|
| 1 | PricePlan |
| 2 | Day |
| 3 | Week |
| 4 | Month |
| 5 | Year |
| 6 | LastDayOfMonth |
Request Body
Required Fields
ID of the product linked to this record.
ID of the extra service linked to this record.
Uses included.
Optional Fields
The expire time in months value for this product extra service.
The expire time in weeks value for this product extra service.
Expiration type. See
eRecurrentChargePattern? enum above.Expires in.
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 productextraservice 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 ProductExtraService