> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one CoworkerBookingCredit

> Retrieve a single CoworkerBookingCredit record by its Id.

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

> [!NOTE]
>
> 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

**id** `integer` *required*

The Id of the CoworkerBookingCredit record to retrieve.

## Code Examples

```bash cURL theme={null}
curl -X GET \
  "https://spaces.nexudus.com/api/billing/coworkerbookingcredits/87654321" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

```javascript JavaScript theme={null}
const response = await fetch(
  'https://spaces.nexudus.com/api/billing/coworkerbookingcredits/87654321',
  {
    headers: {
      'Authorization': 'Bearer YOUR_TOKEN'
    }
  }
);

const record = await response.json();
```

```python Python theme={null}
import requests

response = requests.get(
    'https://spaces.nexudus.com/api/billing/coworkerbookingcredits/87654321',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN'
    }
)

record = response.json()
```

## Response

### 200

**CoworkerId** `integer`

ID of the customer this booking credit belongs to.

**CoworkerFullName** `string`

Display value for Coworker.FullName..

**BusinessId** `integer`

ID of the location that issued and owns this booking credit.

**BusinessName** `string`

Display value for Business.Name..

**BusinessCurrencyCode** `string`

Display value for Business.Currency.Code..

**Description** `string`

Optional operator-facing label or description for this booking credit.

**TariffBookingCreditId** `integer`

Read-only ID of the plan booking-credit definition that created this credit, if applicable.

**TariffBookingCreditName** `string`

Display value for TariffBookingCredit.Name..

**ElegibleResourceTypes** `integer[]`

List of resource-type IDs this credit can pay for when CaneBeUsedForBookings is true; an empty list allows every resource type.

**ElegibleProducts** `integer[]`

List of product IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every product.

**ElegibleTariffs** `integer[]`

List of plan IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every plan.

**RemainingCredit** `number`

Read-only monetary amount still available; the system initializes it from TotalCredit and changes it through credit use or an adjustment.

**TotalCredit** `number`

Total monetary amount assigned when this credit is created; it sets the initial RemainingCredit.

**ValidFrom** `string`

Optional UTC date and time when this credit becomes usable; blank means it is usable immediately.

**ExpireDate** `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.

**CaneBeUsedForBookings** `boolean`

Whether this credit can pay for bookings; use ElegibleResourceTypes to limit eligible resource types.

**CaneBeUsedForEvents** `boolean`

Whether this credit can pay for event sign-ups; use EventCategories to limit eligible event categories.

**EventCategories** `integer[]`

List of event-category IDs this credit can pay for when CaneBeUsedForEvents is true; an empty list allows every event category.

**IsUniversalCredit** `boolean`

Whether this credit can pay for products, plans, passes, and eligible charges; use the eligibility lists and AppliesToCharges to restrict those uses.

**CoworkerProductUniqueId** `string`

Internal unique ID linking this credit to the product purchase that created it.

**UseCreditPrice** `boolean`

System-calculated flag indicating whether any eligible resource type has a booking rate with a credit price.

**CoworkerContractUniqueId** `string`

Internal unique ID linking this credit to the contract that originated it.

**ElegiblePasses** `integer[]`

List of pass IDs this universal credit can pay for; when IsUniversalCredit is true, an empty list allows every pass.

**AppliesToCharges** `boolean`

Whether this universal credit can pay for one-off charges in addition to products, plans, and passes.

**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.

```json Example Response theme={null}
{
  "CoworkerId": 0,
  "CoworkerFullName": null,
  "BusinessId": 0,
  "BusinessName": null,
  "BusinessCurrencyCode": null,
  "Description": null,
  "TariffBookingCreditId": null,
  "TariffBookingCreditName": null,
  "ElegibleResourceTypes": [],
  "ElegibleProducts": [],
  "ElegibleTariffs": [],
  "RemainingCredit": 0,
  "TotalCredit": 0,
  "ValidFrom": null,
  "ExpireDate": null,
  "CaneBeUsedForBookings": false,
  "CaneBeUsedForEvents": false,
  "EventCategories": [],
  "IsUniversalCredit": false,
  "CoworkerProductUniqueId": null,
  "UseCreditPrice": false,
  "CoworkerContractUniqueId": null,
  "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": "CoworkerBookingCredit Example",
  "LocalizationDetails": null,
  "CustomFields": null
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.