Skip to main content
GET
/
api
/
billing
/
productbookingcredits
/
{id}
{
  "Name": "<string>",
  "ProductId": 123,
  "ProductName": "<string>",
  "ProductBusinessCurrencyCode": "<string>",
  "ElegibleResourceTypes": [
    123
  ],
  "ElegibleProducts": [
    123
  ],
  "ElegibleTariffs": [
    123
  ],
  "Credit": 123,
  "ExpireTimeInMonths": 123,
  "ExpireTimeInWeeks": 123,
  "CaneBeUsedForBookings": true,
  "CaneBeUsedForEvents": true,
  "EventCategories": [
    123
  ],
  "ExpirationType": 123,
  "ExpiresIn": 123,
  "IsUniversalCredit": true,
  "ElegiblePasses": [
    123
  ],
  "AppliesToCharges": true,
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
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 CaneBeUsedForBookings to allow the credit to pay for bookings. Use ElegibleResourceTypes to restrict the credit to specific resource types; if left empty the credit is valid for all resource types.
  • Events — set CaneBeUsedForEvents to allow the credit to pay for event sign-ups. Use EventCategories to restrict to specific event categories; if left empty the credit is valid for all events.
Setting 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

id
integer
required
The Id of the ProductBookingCredit record to retrieve.

Code Examples

curl -X GET \
  "https://spaces.nexudus.com/api/billing/productbookingcredits/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"

Response

200

Name
string
Credit name.
ProductId
integer
Product Id.
ProductName
string
Product name.
ProductBusinessCurrencyCode
string
Product business currency code.
ElegibleResourceTypes
integer[]
Elegible Resource Types.
ElegibleProducts
integer[]
Elegible Products.
ElegibleTariffs
integer[]
Elegible Tariffs.
Credit
number
Credit amount.
ExpireTimeInMonths
integer
Expire Time In Months.
ExpireTimeInWeeks
integer
Expire Time In Weeks.
CaneBeUsedForBookings
boolean
Whether this credit can be used to pay for bookings. Restrict to specific resource types with ElegibleResourceTypes.
CaneBeUsedForEvents
boolean
Whether this credit can be used to pay for event sign-ups. Restrict to specific categories with EventCategories.
EventCategories
integer[]
Event Categories.
ExpirationType
integer
Expiration type.
ExpiresIn
integer
Number of periods (of ExpirationType) until the released credit expires.
IsUniversalCredit
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.
ElegiblePasses
integer[]
Elegible Passes.
AppliesToCharges
boolean
Whether this universal credit applies to other charges.
Id
integer
Unique record identifier.
UniqueId
string
UUID of the record.
CreatedOn
string
Date and time the record was created (ISO 8601).
UpdatedOn
string
Date and time the record was last updated (ISO 8601).
UpdatedBy
string
Email of the user who last updated this record.
IsNew
boolean
Whether the record was recently created.
SystemId
string
External system identifier.
Example Response
{
  "Name": "",
  "ProductId": 0,
  "ProductName": null,
  "ProductBusinessCurrencyCode": null,
  "ElegibleResourceTypes": [],
  "ElegibleProducts": [],
  "ElegibleTariffs": [],
  "Credit": 0,
  "ExpireTimeInMonths": null,
  "ExpireTimeInWeeks": null,
  "CaneBeUsedForBookings": false,
  "CaneBeUsedForEvents": false,
  "EventCategories": [],
  "ExpirationType": 0,
  "ExpiresIn": null,
  "IsUniversalCredit": false,
  "ElegiblePasses": [],
  "AppliesToCharges": false,
  "Id": 87654321,
  "UpdatedOn": "2025-01-15T10:30:00Z",
  "CreatedOn": "2025-01-10T08:00:00Z",
  "UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "UpdatedBy": "admin@example.com",
  "IsNew": false,
  "SystemId": null,
  "ToStringText": "ProductBookingCredit Example",
  "LocalizationDetails": null,
  "CustomFields": null
}