Skip to main content
PUT
Update ProductBookingCredit
Updates an existing ProductBookingCredit 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 ProductBookingCredit-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the ProductBookingCredit record to update.
string
required
Credit name.
integer
required
ID of the product linked to this record.
number
required
Credit amount.

Optional Fields

integer[]
List of elegible resource types linked to this record.
integer[]
The added elegible resource types value for this product booking credit.
integer[]
The removed elegible resource types value for this product booking credit.
integer[]
List of elegible products linked to this record.
integer[]
The added elegible products value for this product booking credit.
integer[]
The removed elegible products value for this product booking credit.
integer[]
List of elegible tariffs linked to this record.
integer[]
The added elegible tariffs value for this product booking credit.
integer[]
The removed elegible tariffs value for this product booking credit.
integer
The expire time in months value for this product booking credit.
integer
The expire time in weeks value for this product booking credit.
boolean
Whether this credit can be used to pay for bookings. Restrict to specific resource types with ElegibleResourceTypes.
boolean
Whether this credit can be used to pay for event sign-ups. Restrict to specific categories with EventCategories.
integer[]
List of event categories linked to this record.
integer[]
The added event categories value for this product booking credit.
integer[]
The removed event categories value for this product booking credit.
integer
Expiration type. See eRecurrentChargePattern? enum above.
integer
Number of periods (of ExpirationType) until the released credit expires.
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 elegible passes linked to this record.
integer[]
The added elegible passes value for this product booking credit.
integer[]
The removed elegible passes value for this product booking credit.
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 productbookingcredit 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