ProductBookingCredits
Get one ProductBookingCredit
Retrieve a single ProductBookingCredit record by its Id.
GET
Get one ProductBookingCredit
A ProductBookingCredit represents an amount of credit linked to a
Product. When a customer purchases the product, the credit is automatically released as a CoworkerBookingCredit on the customer’s account.
Credit can be configured for two primary uses:
- Bookings — set
CaneBeUsedForBookingsto allow the credit to pay for bookings. UseElegibleResourceTypesto restrict the credit to specific resource types; if left empty the credit is valid for all resource types. - Events — set
CaneBeUsedForEventsto allow the credit to pay for event sign-ups. UseEventCategoriesto restrict to specific event categories; if left empty the credit is valid for all events.
IsUniversalCredit enables the credit for products, time passes, and other charges. Use ElegibleProducts, ElegiblePasses, and AppliesToCharges to restrict which products or passes the credit is valid for. If all restriction lists are empty the universal credit applies to all products, passes and charges.
Use ExpirationType and ExpiresIn to control when the released credit expires.
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-Read role.Path Parameters
integer
required
The Id of the ProductBookingCredit record to retrieve.
Code Examples
Response
200
string
Credit name.
integer
ID of the product linked to this record.
string
Product name.
string
Product business currency code.
integer[]
List of elegible resource types linked to this record.
integer[]
List of elegible products linked to this record.
integer[]
List of elegible tariffs linked to this record.
number
Credit amount.
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
Expiration type.
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.
boolean
Whether this universal credit applies to other charges.
integer
Unique record identifier.
string
UUID of the record.
string
Date and time the record was created (ISO 8601).
string
Date and time the record was last updated (ISO 8601).
string
Email of the user who last updated this record.
boolean
Whether the record was recently created.
string
External system identifier.
Example Response
Get one ProductBookingCredit