Skip to main content
GET
Get one CoworkerBookingCredit
A booking credit (internally CoworkerBookingCredit) is a monetary balance assigned to a customer that can pay for bookings, event sign-ups, or, when universal credit is enabled, products, plans, passes, and selected one-off charges. It can be created manually or released from a plan or product benefit, and its availability can be limited by eligibility and a validity period.

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-Read role.

Path Parameters

integer
required
The Id of the CoworkerBookingCredit record to retrieve.

Code Examples

Response

200

integer
ID of the customer this booking credit belongs to.
string
Display value for Coworker.FullName..
integer
ID of the location that issued and owns this booking credit.
string
Display value for Business.Name..
string
Display value for Business.Currency.Code..
string
Optional operator-facing label or description for this booking credit.
integer
Read-only ID of the plan booking-credit definition that created this credit, if applicable.
string
Display value for TariffBookingCredit.Name..
integer[]
List of resource-type IDs this credit can pay for when CaneBeUsedForBookings is true; an empty list allows every resource type.
integer[]
List of product IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every product.
integer[]
List of plan IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every plan.
number
Read-only monetary amount still available; the system initializes it from TotalCredit and changes it through credit use or an adjustment.
number
Total monetary amount assigned when this credit is created; it sets the initial RemainingCredit.
string
Optional UTC date and time when this credit becomes usable; blank means it is usable immediately.
string
Optional UTC date and time when this credit stops being usable; blank means no expiry, and when set it must be later than ValidFrom.
boolean
Whether this credit can pay for bookings; use ElegibleResourceTypes to limit eligible resource types.
boolean
Whether this credit can pay for event sign-ups; use EventCategories to limit eligible event categories.
integer[]
List of event-category IDs this credit can pay for when CaneBeUsedForEvents is true; an empty list allows every event category.
boolean
Whether this credit can pay for products, plans, passes, and eligible charges; use the eligibility lists and AppliesToCharges to restrict those uses.
string
Internal unique ID linking this credit to the product purchase that created it.
boolean
System-calculated flag indicating whether any eligible resource type has a booking rate with a credit price.
string
Internal unique ID linking this credit to the contract that originated it.
integer[]
List of pass IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every pass.
boolean
Whether this universal credit can pay for one-off charges in addition to products, plans, and passes.
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