TariffBookingCredits
Update TariffBookingCredit
Update an existing TariffBookingCredit record.
PUT
Update TariffBookingCredit
Updates an existing TariffBookingCredit 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 TariffBookingCredit-Edit role.Enums
eTimeSpanWeekMonth — ServiceRenewalTime values
eTimeSpanWeekMonth — ServiceRenewalTime values
| Value | Name |
|---|---|
| 1 | Week |
| 2 | CalendarMonth |
| 3 | TariffMonth |
| 4 | Year |
| 5 | Day |
Request Body
Required Fields
The Id of the TariffBookingCredit record to update.
Credit name.
ID of the tariff linked to this record.
Credit amount.
Service renewal time period.
Optional Fields
List of elegible resource types linked to this record.
The added elegible resource types value for this tariff booking credit.
The removed elegible resource types value for this tariff booking credit.
List of elegible products linked to this record.
The added elegible products value for this tariff booking credit.
The removed elegible products value for this tariff booking credit.
List of elegible tariffs linked to this record.
The added elegible tariffs value for this tariff booking credit.
The removed elegible tariffs value for this tariff booking credit.
Whether this credit can be used to pay for bookings. Restrict to specific resource types with
ElegibleResourceTypes.Whether this credit can be used to pay for event sign-ups. Restrict to specific categories with
EventCategories.List of event categories linked to this record.
The added event categories value for this tariff booking credit.
The removed event categories value for this tariff booking credit.
Whether this is a universal credit applicable to products, time passes and other charges. Restrict with
ElegibleProducts, ElegiblePasses and AppliesToCharges; if all are empty the credit applies to all products, passes and charges.List of elegible passes linked to this record.
The added elegible passes value for this tariff booking credit.
The removed elegible passes value for this tariff booking credit.
Whether this universal credit applies to other charges.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the update.
Contains the
Id of the updated record.true if the tariffbookingcredit was updated 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
Update TariffBookingCredit