Skip to main content
GET
/
api
/
billing
/
coworkerinvoicelines
/
{id}
{
  "CoworkerInvoiceId": 123,
  "CoworkerInvoiceInvoiceNumber": "<string>",
  "CoworkerInvoicePaid": "<string>",
  "CoworkerInvoicePaidOn": "<string>",
  "CoworkerInvoiceCreditNote": "<string>",
  "CoworkerInvoiceCurrencyCode": "<string>",
  "CoworkerInvoiceDueDate": "<string>",
  "Description": "<string>",
  "DisplayAs": "<string>",
  "TaxCategoryName": "<string>",
  "Quantity": 123,
  "SubTotal": 123,
  "TaxAmount": 123,
  "TaxRate": 123,
  "CoworkerContractUniqueId": "<string>",
  "ContractDepositUniqueId": "<string>",
  "BookingUniqueId": "<string>",
  "CoworkerExtraServiceUniqueId": "<string>",
  "ExtraServiceUniqueId": "<string>",
  "CoworkerTimePassUniqueId": "<string>",
  "CoworkerChargeUniqueId": "<string>",
  "CoworkerProductUniqueId": "<string>",
  "EventAttendeeUniqueId": "<string>",
  "GroupedLineUniqueId": "<string>",
  "RefundedAmount": 123,
  "Refunded": true,
  "RefundedOn": "<string>",
  "SaleDate": "<string>",
  "DiscountCode": "<string>",
  "DiscountAmount": 123,
  "CoworkerExtraServiceName": "<string>",
  "CoworkerTimePassName": "<string>",
  "CoworkerProductName": "<string>",
  "EventAttendeeProductName": "<string>",
  "TariffName": "<string>",
  "FinancialAccountCode": "<string>",
  "FinancialAccountName": "<string>",
  "IssuedByUniqueId": "<string>",
  "CancelledCoworkerInvoiceLineUniqueId": "<string>",
  "CreatedOnLocal": "<string>",
  "RefundedOnLocal": "<string>",
  "SaleDateLocal": "<string>",
  "Position": 123,
  "IsHidden": true,
  "IsUniversalCredit": true,
  "PurchaseOrder": "<string>",
  "CreditAmount": 123,
  "IsProratedContract": true,
  "CoworkerDiscountCodeUniqueId": "<string>",
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
A CoworkerInvoiceLine represents an individual line item on a customer invoice. Each line captures the description, quantity, amounts, tax, and an optional link to the sale item that generated it. Properties ending in UniqueId link the line to the originating sale record using its GUID UniqueId property (not the integer ID). Only one of these will be populated per line:
UniqueId propertySource entity
CoworkerContractUniqueIdCoworkerContract
ContractDepositUniqueIdContractDeposit
BookingUniqueIdBooking
CoworkerExtraServiceUniqueIdCoworkerExtraService
CoworkerTimePassUniqueIdCoworkerTimePass
CoworkerChargeUniqueIdCharge
CoworkerProductUniqueIdCoworkerProduct
EventAttendeeUniqueIdEventAttendee

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

Path Parameters

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

Code Examples

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

Response

200

CoworkerInvoiceId
integer
Coworker Invoice Id.
CoworkerInvoiceInvoiceNumber
string
Invoice number of the parent invoice.
CoworkerInvoicePaid
string
Whether the parent invoice has been fully paid.
CoworkerInvoicePaidOn
string
Coworker Invoice Paid On.
CoworkerInvoiceCreditNote
string
Whether the parent invoice is a credit note.
CoworkerInvoiceCurrencyCode
string
Currency code of the parent invoice (e.g. USD, EUR).
CoworkerInvoiceDueDate
string
Coworker Invoice Due Date.
Description
string
Line item description shown internally.
DisplayAs
string
Override text displayed on the printed/emailed invoice instead of the description.
TaxCategoryName
string
Name of the tax category applied to this line.
Quantity
integer
Number of units for this line item.
SubTotal
number
Line subtotal before tax (unit price x quantity).
TaxAmount
number
Tax amount calculated for this line.
TaxRate
number
Tax rate percentage applied to this line.
CoworkerContractUniqueId
string
UniqueId (GUID) of the CoworkerContract that generated this line.
ContractDepositUniqueId
string
UniqueId (GUID) of the ContractDeposit that generated this line.
BookingUniqueId
string
UniqueId (GUID) of the Booking that generated this line.
CoworkerExtraServiceUniqueId
string
UniqueId (GUID) of the CoworkerExtraService that generated this line.
ExtraServiceUniqueId
string
UniqueId (GUID) of the base ExtraService linked to this line.
CoworkerTimePassUniqueId
string
UniqueId (GUID) of the CoworkerTimePass that generated this line.
CoworkerChargeUniqueId
string
UniqueId (GUID) of the Charge that generated this line.
CoworkerProductUniqueId
string
UniqueId (GUID) of the CoworkerProduct that generated this line.
EventAttendeeUniqueId
string
UniqueId (GUID) of the EventAttendee that generated this line.
GroupedLineUniqueId
string
UniqueId (GUID) linking this line to a group of related invoice lines.
RefundedAmount
number
Amount that has been refunded for this line.
Refunded
boolean
Whether this line has been fully or partially refunded.
RefundedOn
string
Date and time when this line was refunded.
SaleDate
string
Date the sale occurred for this line item.
DiscountCode
string
Discount code applied to this line.
DiscountAmount
number
Discount amount deducted from this line.
CoworkerExtraServiceName
string
Name of the linked CoworkerExtraService.
CoworkerTimePassName
string
Name of the linked CoworkerTimePass.
CoworkerProductName
string
Name of the linked CoworkerProduct.
EventAttendeeProductName
string
Event Attendee Product Name.
TariffName
string
Name of the plan (tariff) associated with this line.
FinancialAccountCode
string
Code of the financial account (revenue category) for this line.
FinancialAccountName
string
Name of the financial account (revenue category) for this line.
IssuedByUniqueId
string
Issued By Unique Id.
CancelledCoworkerInvoiceLineUniqueId
string
Cancelled Coworker Invoice Line Unique Id.
CreatedOnLocal
string
Created On Local.
RefundedOnLocal
string
Refunded On Local.
SaleDateLocal
string
Sale Date Local.
Position
integer
Display order of this line on the invoice.
IsHidden
boolean
Whether this line is hidden from the customer-facing invoice.
IsUniversalCredit
boolean
Whether this line represents a universal credit applied to the invoice.
PurchaseOrder
string
Purchase order reference for this line.
CreditAmount
number
Credit amount applied to this line.
IsProratedContract
boolean
Whether this line is a prorated charge from a mid-cycle contract change.
CoworkerDiscountCodeUniqueId
string
Coworker Discount Code Unique Id.
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
{
  "CoworkerInvoiceId": 0,
  "CoworkerInvoiceInvoiceNumber": null,
  "CoworkerInvoicePaid": null,
  "CoworkerInvoicePaidOn": null,
  "CoworkerInvoiceCreditNote": null,
  "CoworkerInvoiceCurrencyCode": null,
  "CoworkerInvoiceDueDate": null,
  "Description": "",
  "DisplayAs": null,
  "TaxCategoryName": null,
  "Quantity": 0,
  "SubTotal": 0,
  "TaxAmount": 0,
  "TaxRate": 0,
  "CoworkerContractUniqueId": null,
  "ContractDepositUniqueId": null,
  "BookingUniqueId": null,
  "CoworkerExtraServiceUniqueId": null,
  "ExtraServiceUniqueId": null,
  "CoworkerTimePassUniqueId": null,
  "CoworkerChargeUniqueId": null,
  "CoworkerProductUniqueId": null,
  "EventAttendeeUniqueId": null,
  "GroupedLineUniqueId": null,
  "RefundedAmount": null,
  "Refunded": false,
  "RefundedOn": null,
  "SaleDate": null,
  "DiscountCode": null,
  "DiscountAmount": null,
  "CoworkerExtraServiceName": null,
  "CoworkerTimePassName": null,
  "CoworkerProductName": null,
  "EventAttendeeProductName": null,
  "TariffName": null,
  "FinancialAccountCode": null,
  "FinancialAccountName": null,
  "IssuedByUniqueId": null,
  "CancelledCoworkerInvoiceLineUniqueId": null,
  "CreatedOnLocal": null,
  "RefundedOnLocal": null,
  "SaleDateLocal": null,
  "Position": 0,
  "IsHidden": false,
  "IsUniversalCredit": false,
  "PurchaseOrder": null,
  "CreditAmount": 0,
  "IsProratedContract": false,
  "CoworkerDiscountCodeUniqueId": null,
  "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": "CoworkerInvoiceLine Example",
  "LocalizationDetails": null,
  "CustomFields": null
}