Skip to main content
PUT
/
api
/
billing
/
extraservices
{
  "Status": 123,
  "Message": "<string>",
  "Value": "<any>",
  "WasSuccessful": true,
  "Errors": [
    {
      "AttemptedValue": "<any>",
      "Message": "<string>",
      "PropertyName": "<string>"
    }
  ]
}
Updates an existing ExtraService record. You must include the Id of the record to update along with all required fields.

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-Edit role.

Enums

ValueName
1Minutes
2Days
3Weeks
4Months
5Uses
6FourWeekMonths
ValueName
1Disabled
2Fixed
3Gradual

Request Body

Required Fields

Id
integer
required
The Id of the ExtraService record to update.
BusinessId
integer
required
Business Id.
Name
string
required
Extra service name.
DisplayOrder
integer
required
Display order.
Price
number
required
Price.
CurrencyId
integer
required
Currency Id.

Optional Fields

Description
string
Description.
InvoiceLineDisplayAs
string
Invoice line display text.
Visible
boolean
Whether the price is visible on the portal and app.
ResourceTypes
integer[]
Resource Types.
AddedResourceTypes
integer[]
Added Resource Types.
RemovedResourceTypes
integer[]
Removed Resource Types.
CreditPrice
number
Credit price.
ChargePeriod
integer
Charge period. See eChargePeriod enum above.
MaximumPrice
number
Maximum price cap.
IsDefaultPrice
boolean
Use as the default price for matched resource types if more than one price applies.
UsePerNightPricing
boolean
Use per-night pricing.
TaxRateId
integer
Tax Rate Id.
ReducedTaxRateId
integer
Reduced Tax Rate Id.
ExemptTaxRateId
integer
Exempt Tax Rate Id.
FinancialAccountId
integer
Financial Account Id.
FromTime
integer
Start time restriction (minutes from midnight).
ToTime
integer
End time restriction (minutes from midnight).
MinLength
integer
Minimum booking length (minutes).
MaxLength
integer
Maximum booking length (minutes).
OnlyWithinAvailableTimes
boolean
Only apply within the resource’s available times.
FixedCostLength
integer
Fixed cost booking length threshold (minutes).
FixedCostPrice
number
Fixed cost price applied once the threshold is reached.
Tariffs
integer[]
Tariffs.
AddedTariffs
integer[]
Added Tariffs.
RemovedTariffs
integer[]
Removed Tariffs.
OnlyForContacts
boolean
Only available for contacts.
OnlyForMembers
boolean
Only available for members.
IsBookingCredit
boolean
Price uses booking credits.
IsPrintingCredit
boolean
Price uses printing credits.
ApplyChargeToVisitors
boolean
Apply charge to visitors.
PriceFactorLowDemand
number
Price factor for low demand periods.
PriceFactorAverageDemand
number
Price factor for average demand periods.
PriceFactorHighDemand
number
Price factor for high demand periods.
PriceFactorLastMinute
number
Price factor for last-minute bookings.
LastMinutePeriodMinutes
integer
Last-minute period threshold (minutes before booking).
LastMinuteAdjustmentType
integer
Last-minute discount type. See eLastMinuteDiscountType enum above.
ApplyFrom
string
Date from which this price applies.
ApplyTo
string
Date until which this price applies.
ResourceTypeNames
string
Comma-separated names of associated resource types.
Teams
integer[]
Teams.
AddedTeams
integer[]
Added Teams.
RemovedTeams
integer[]
Removed Teams.

Children

TimeSlots
object[]
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

curl -X PUT \
  "https://spaces.nexudus.com/api/billing/extraservices" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "BusinessId": 0,
    "Name": "",
    "DisplayOrder": 0,
    "Price": 0,
    "CurrencyId": 0,
    "Id": 87654321,
    "TimeSlots": [
        {
            "DayOfWeek": 0,
            "FromTime": "2025-01-15T10:30:00Z",
            "ToTime": "2025-01-15T10:30:00Z",
            "Available": null
        }
    ]
}'

Response

200

Status
integer
HTTP status code. 200 on success.
Message
string
A human-readable message confirming the update.
Value
object
Contains the Id of the updated record.
WasSuccessful
boolean
true if the extraservice was updated successfully.
Errors
array
null on success.
Example Response
{
  "Status": 200,
  "Message": "ExtraService was successfully updated.",
  "Value": {
    "Id": 87654321
  },
  "OpenInDialog": false,
  "OpenInWindow": false,
  "RedirectURL": null,
  "JavaScript": null,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "UpdatedBy": "admin@example.com",
  "Errors": null,
  "WasSuccessful": true
}

400

Message
string
A summary of the validation error(s), in the format PropertyName: error message.
Value
any
null on validation failure.
Errors
object[]
Array of validation errors.
WasSuccessful
boolean
false when the request fails validation.
Example Response
{
  "Message": "Name: is a required field",
  "Value": null,
  "Errors": [
    {
      "AttemptedValue": null,
      "Message": "is a required field",
      "PropertyName": "Name"
    }
  ],
  "WasSuccessful": false
}