Skip to main content
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

Request Body

Required Fields

integer
required
The Id of the TariffBookingCredit record to update.
string
required
Credit name.
integer
required
ID of the plan linked to this record.
number
required
Credit amount.
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..

Optional Fields

integer[]
List of the IDs of the resource types this booking credit can be used for.
integer[]
IDs added to the ElegibleResourceTypes relationship..
integer[]
IDs removed from the ElegibleResourceTypes relationship..
integer[]
List of the IDs of the products this booking credit can be used for. Applies only when IsUniversalCredit is true..
integer[]
IDs added to the ElegibleProducts relationship..
integer[]
IDs removed from the ElegibleProducts relationship..
integer[]
List of the IDs of the plans this booking credit can be used for. Applies only when IsUniversalCredit is true..
integer[]
IDs added to the ElegibleTariffs relationship..
integer[]
IDs removed from the ElegibleTariffs relationship..
boolean
Whether this credit can be used to pay for bookings. Restrict to specific resource types using elegible-resource-types.
boolean
Whether this credit can be used to pay for event sign-ups. Restrict to specific categories with ElegibleResourceTypes.
integer[]
List of the IDs of the event categories this booking credit can be used for. Applies only when IsUniversalCredit is true..
integer[]
IDs added to the EventCategories relationship..
integer[]
IDs removed from the EventCategories relationship..
boolean
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.
integer[]
List of the IDs of the passes this booking credit can be used for. Applies only when IsUniversalCredit is true..
integer[]
IDs added to the ElegiblePasses relationship..
integer[]
IDs removed from the ElegiblePasses relationship..
boolean
Whether this universal credit applies to other charges.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the tariffbookingcredit was updated 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