ExtraServices
Create ExtraService
Create a new ExtraService record.
POST
Create ExtraService
An ExtraService serves two distinct purposes: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.
- Resource-type pricing rule — defines how one or more resource types are billed. A single resource type can have multiple extra services — for example, one per charge period (hourly, half-day, full-day) or one per customer segment.
- Printing credit — when
IsPrintingCreditistrue, the extra service represents a printing allowance rather than booking time. In this caseChargePeriodmust always be5(Uses) andPriceshould be set to1.
- Charge period — hourly, daily, etc. (
ChargePeriod). For printing credit, always use5(Uses). - Customer type — members only (
OnlyForMembers) or contacts only (OnlyForContacts) - Time window — bookings must fall within specific hours (
FromTime,ToTime) - Booking length — minimum/maximum duration (
MinLength,MaxLength) - Fixed-cost slot — charge a flat fee for bookings up to a fixed length (
FixedCostLength,FixedCostPrice) - Dynamic pricing — price factors for low/average/high demand and last-minute bookings
- Date range — apply only between specific dates (
ApplyFrom,ApplyTo)
ExtraService per pricing rule and associate it with the desired resource type(s) using or the resource types assignment. The ResourceTypeNames field on an extra service shows which resource types it currently applies to.
To create a printing credit extra service, set IsPrintingCredit` true`, ChargePeriod 5, and “Price 1. Resource type assignment is not required for printing credit extra services.
Setting up hourly pricing
For hourly pricing, setChargePeriod` 1` (Minutes) and Price“ to the cost of 60 minutes. The system interprets a charge period of 1 minute as hourly billing when the price represents a full hour.
Example — create a $50/hour meeting room pricing rule:
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 ExtraService-Create role.Enums
eChargePeriod — ChargePeriod values
eChargePeriod — ChargePeriod values
| Value | Name |
|---|---|
| 1 | Minutes |
| 2 | Days |
| 3 | Weeks |
| 4 | Months |
| 5 | Uses |
| 6 | FourWeekMonths |
eLastMinuteDiscountType — LastMinuteAdjustmentType values
eLastMinuteDiscountType — LastMinuteAdjustmentType values
| Value | Name |
|---|---|
| 1 | Disabled |
| 2 | Fixed |
| 3 | Gradual |
Request Body
Required Fields
ID of the business linked to this record.
Extra service name.
Display order. Defaults to
0.Unit price amount.
Charge period. Defaults to
eChargePeriod.Minutes.ID of the currency linked to this record.
Last-minute discount type. Defaults to
eLastMinuteDiscountType.Gradual.Optional Fields
Free-text description of this extra service.
Invoice line display text.
Whether the price is visible on the portal and app. Defaults to
true.List of resource types linked to this record.
Credit price.
Maximum price cap.
Use as the default price for matched resource types if more than one price applies.
Use per-night pricing.
ID of the tax rate linked to this record.
ID of the reduced tax rate linked to this record.
ID of the exempt tax rate linked to this record.
ID of the financial account linked to this record.
Start time restriction (minutes from midnight).
End time restriction (minutes from midnight).
Minimum booking length (minutes).
Maximum booking length (minutes).
Only apply within the resource’s available times.
Fixed cost booking length threshold (minutes).
Fixed cost price applied once the threshold is reached.
List of tariffs linked to this record.
Only available for contacts.
Only available for members.
Price uses booking credits.
Price uses printing credits.
Apply charge to visitors.
Price factor for low demand periods.
Price factor for average demand periods.
Price factor for high demand periods.
Price factor for last-minute bookings.
Last-minute period threshold (minutes before booking).
Date from which this price applies.
Date until which this price applies.
Comma-separated names of associated resource types.
List of teams linked to this record.
Children
The days and times this extra service price is available for booking. The year, month and day component of FromTime/ToTime is always 1976-01-01.
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 extraservice 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 ExtraService