Skip to main content
POST
Create ExtraServicePrice
An ExtraServicePrice provides an overriding price for an ExtraService (resource price) for members on a specific Tariff (plan). When a member whose active plan matches TariffId books a resource priced by the linked extra service, the Price (and optional MaximumPrice) from this record are used instead of the default extra service price. In most cases it is preferred to create additional ExtraService records connected to the same ResourceTypes and restricted to specific plans via ExtraService.Tariffs, rather than using ExtraServicePrice overrides. Use ExtraServicePrice only when you need a simple price override without duplicating the full extra service configuration.

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 ExtraServicePrice-Create role.

Request Body

Required Fields

integer
required
ID of the extra service linked to this record.
integer
required
ID of the tariff linked to this record.
number
required
Overriding price charged to members on the specified tariff.

Optional Fields

number
Optional maximum price cap for time-based extra services on the specified tariff.

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 extraserviceprice 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