Skip to main content
GET
/
api
/
billing
/
coworkerbookingcreditusehistories
/
{id}
{
  "Description": "<string>",
  "CoworkerBookingCreditId": 123,
  "BookingId": 123,
  "BookingFromTime": "<string>",
  "BookingToTime": "<string>",
  "BookingResourceName": "<string>",
  "CoworkerInvoiceLineId": 123,
  "CoworkerInvoiceLineCoworkerInvoiceId": 123,
  "CoworkerInvoiceLineCoworkerInvoiceInvoiceNumber": "<string>",
  "EventAttendeeId": 123,
  "EventAttendeeCalendarEventName": "<string>",
  "EventAttendeeEventProductName": "<string>",
  "EventAttendeeFullName": "<string>",
  "EventAttendeeEmail": "<string>",
  "CreditUsed": 123,
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
A CoworkerBookingCreditUseHistory records each time a CoworkerBookingCredit was consumed. Each entry captures the amount of credit deducted and links back to the booking, event attendance, or invoice line that triggered the use. Use the read-only denormalised fields (BookingFromTime, BookingResourceName, EventAttendeeCalendarEventName, etc.) to inspect what the credit was spent on without needing to fetch the related records separately.

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

Path Parameters

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

Code Examples

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

Response

200

Description
string
Optional description or note for this credit use entry.
CoworkerBookingCreditId
integer
ID of the booking credit that was consumed.
BookingId
integer
ID of the booking this credit was applied to, if the credit was used for a booking.
BookingFromTime
string
Start time of the booking.
BookingToTime
string
End time of the booking.
BookingResourceName
string
Name of the resource that was booked.
CoworkerInvoiceLineId
integer
ID of the invoice line this credit was applied to, if the credit was used against an invoice.
CoworkerInvoiceLineCoworkerInvoiceId
integer
ID of the invoice containing the linked invoice line.
CoworkerInvoiceLineCoworkerInvoiceInvoiceNumber
string
Invoice number of the invoice containing the linked invoice line.
EventAttendeeId
integer
ID of the event attendance record this credit was applied to, if the credit was used for an event.
EventAttendeeCalendarEventName
string
Name of the calendar event the credit was used for.
EventAttendeeEventProductName
string
Name of the event ticket product purchased by the attendee.
EventAttendeeFullName
string
Full name of the event attendee.
EventAttendeeEmail
string
Email address of the event attendee.
CreditUsed
number
Amount of credit consumed by this entry.
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
{
  "Description": null,
  "CoworkerBookingCreditId": 0,
  "BookingId": null,
  "BookingFromTime": null,
  "BookingToTime": null,
  "BookingResourceName": null,
  "CoworkerInvoiceLineId": null,
  "CoworkerInvoiceLineCoworkerInvoiceId": null,
  "CoworkerInvoiceLineCoworkerInvoiceInvoiceNumber": null,
  "EventAttendeeId": null,
  "EventAttendeeCalendarEventName": null,
  "EventAttendeeEventProductName": null,
  "EventAttendeeFullName": null,
  "EventAttendeeEmail": null,
  "CreditUsed": 0,
  "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": "CoworkerBookingCreditUseHistory Example",
  "LocalizationDetails": null,
  "CustomFields": null
}