CoworkerBookingCredits
Update CoworkerBookingCredit
Update an existing CoworkerBookingCredit record.
PUT
Update CoworkerBookingCredit
Updates an existing CoworkerBookingCredit record. You must include theDocumentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
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 CoworkerBookingCredit-Edit role.Request Body
Required Fields
The Id of the CoworkerBookingCredit record to update.
ID of the customer this credit is assigned to.
ID of the location issuing the credit.
Total credit amount originally assigned.
Optional Fields
Optional description or label for this credit.
Resource types this credit can be used for. If empty, the credit is valid for all resource types.
Resource type IDs to add to ElegibleResourceTypes.
Resource type IDs to remove from ElegibleResourceTypes.
Products this credit can be used for. If empty, applies to all products.
Product IDs to add to ElegibleProducts.
Product IDs to remove from ElegibleProducts.
Plans (tariffs) this credit is restricted to. If empty, applies to customers on any plan.
Plan IDs to add to ElegibleTariffs.
Plan IDs to remove from ElegibleTariffs.
Date from which this credit is valid.
Date on which this credit expires.
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.Event categories this credit can be used for. If empty, applies to all event categories.
Event category IDs to add to EventCategories.
Event category IDs to remove from EventCategories.
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.Whether to use the credit price instead of the standard booking price when this credit is applied.
Unique ID of the contract that originated this credit.
Time passes this credit can be used for. If empty, applies to all passes.
Pass IDs to add to ElegiblePasses.
Pass IDs to remove from ElegiblePasses.
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 coworkerbookingcredit 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 CoworkerBookingCredit