TariffExtraServices
Create TariffExtraService
Create a new TariffExtraService record.
POST
Create TariffExtraService
Plan time credit (internally TariffExtraService) links an time credit type (internally ExtraService) to a plan (internally Tariff), defining an included allowance of booking time or printing credits for customers on that plan. The
UsesIncluded value specifies how much is included. The renewal time controls how often the credit expires and the allowance resets.
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 TariffExtraService-Create role.Enums
eTimeSpanWeekMonth — ServiceRenewalTime values
eTimeSpanWeekMonth — ServiceRenewalTime values
Request Body
Required Fields
integer
required
ID of the plan linked to this record.
integer
required
ID of the time credit type linked to this record. An ExtraService with IsBookingCredit = true associated with the type of resources this time credit is valid for. .
integer
required
Number of uses included in the unit associated with the selected time credit type (ExtraService.ChargePeriod). ExtraServiceChargePeriod in this entity. Minutes = 1, Days = 2, Weeks = 3, Months = 4, Uses = 5, FourWeekMonths = 6.
integer
required
How often will this credit amount will expire and be issued again. Most common option is TariffMonth, which follows the plan renewal cycle..
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 tariffextraservice 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