Skip to main content
GET
/
api
/
billing
/
coworkerinvoices
/
{id}
{
  "CoworkerId": 123,
  "CoworkerFullName": "<string>",
  "CoworkerRegularPaymentContractNumber": "<string>",
  "CoworkerRegularPaymentProvider": "<string>",
  "CoworkerCardNumber": "<string>",
  "CoworkerGoCardlessContractNumber": "<string>",
  "CoworkerEnableGoCardlessPayments": true,
  "CoworkerBillingEmail": "<string>",
  "CoworkerNotifyOnNewInvoice": true,
  "CoworkerNotifyOnNewPayment": true,
  "CoworkerNotifyOnFailedPayment": true,
  "CoworkerDoNotProcessInvoicesAutomatically": true,
  "CoworkerCompanyName": "<string>",
  "CoworkerTeamNames": "<string>",
  "BusinessId": 123,
  "BusinessName": "<string>",
  "InvoiceNumber": "<string>",
  "PaymentReference": "<string>",
  "BillToName": "<string>",
  "BillToAddress": "<string>",
  "BillToCity": "<string>",
  "BillToPostCode": "<string>",
  "BillToPhone": "<string>",
  "BillToFax": "<string>",
  "BillToState": "<string>",
  "BillToCountryId": 123,
  "BillToCountryName": "<string>",
  "BillToCountryTwoDigitsCode": "<string>",
  "BillToBankAccount": "<string>",
  "BillToTaxIDNumber": "<string>",
  "PurchaseOrder": "<string>",
  "Description": "<string>",
  "DiscountAmount": 123,
  "DueDate": "<string>",
  "InvoiceFromDate": "<string>",
  "InvoiceToDate": "<string>",
  "TotalAmount": 123,
  "PaidAmount": 123,
  "TransactionTotalAmount": 123,
  "TransactionCurrencyId": 123,
  "TransactionCurrencyCode": "<string>",
  "TransactionExchangeRate": 123,
  "CurrencyId": 123,
  "CurrencyCode": "<string>",
  "TaxAmount": 123,
  "Draft": true,
  "Void": true,
  "WaitingForInvoiceNumber": true,
  "Paid": true,
  "Sent": true,
  "SentOn": "<string>",
  "PaidOn": "<string>",
  "Refunded": true,
  "XeroInvoiceTransfered": true,
  "XeroPaymentTransfered": true,
  "QuickbooksInvoiceTransfered": true,
  "QuickbooksPaymentTransfered": true,
  "MoloniInvoiceTransferred": true,
  "MoloniPaymentTransferred": true,
  "StorecoveInvoiceStatus": 123,
  "AutoTransferToStorecove": true,
  "StorecoveUniqueId": "<string>",
  "RefundedOn": "<string>",
  "CreditNote": true,
  "OriginalInvoiceGuid": "<string>",
  "ContractGuid": "<string>",
  "CustomData": "<string>",
  "GoCardlessReference": "<string>",
  "SpreedlyToken": "<string>",
  "LastPaymentAttempt": "<string>",
  "Billed": true,
  "DoNotApplyCreditAutomatically": true,
  "CreatedOnLocal": "<string>",
  "DueDateLocal": "<string>",
  "InvoiceFromDateLocal": "<string>",
  "InvoiceToDateLocal": "<string>",
  "PaidOnLocal": "<string>",
  "RefundedOnLocal": "<string>",
  "LastPaymentAttemptLocal": "<string>",
  "ReceivedAmount": 123,
  "CreditedAmount": 123,
  "RefundedAmount": 123,
  "NexKioskTransactionId": "<string>",
  "AutoTransferToXeroOrQuickBooks": true,
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
A CoworkerInvoice represents an invoice document issued to a customer. Invoices track amounts owed, payment status, billing details, and integration state with external accounting systems. Invoices can be in draft or final state. A draft invoice (“Draft true) can still be modified before being finalised. Once finalised, an invoice number is assigned and the invoice can be sent to the customer. An invoice may also be a credit note (CreditNote` true`), which references the original invoice via OriginalInvoiceGuid“ and represents a reversal or adjustment. Payment status is tracked via Paid, PaidAmount, and PaidOn. Partial payments are possible — compare PaidAmount against TotalAmount to determine outstanding balance. Refunds are tracked separately via Refunded, RefundedOn, and RefundedAmount.

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

Path Parameters

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

Code Examples

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

Response

200

CoworkerId
integer
Coworker Id.
CoworkerFullName
string
Full name of the invoiced customer.
CoworkerRegularPaymentContractNumber
string
Coworker Regular Payment Contract Number.
CoworkerRegularPaymentProvider
string
Coworker Regular Payment Provider.
CoworkerCardNumber
string
Coworker Card Number.
CoworkerGoCardlessContractNumber
string
Coworker Go Cardless Contract Number.
CoworkerEnableGoCardlessPayments
boolean
Coworker Enable Go Cardless Payments.
CoworkerBillingEmail
string
Billing email address of the customer.
CoworkerNotifyOnNewInvoice
boolean
Coworker Notify On New Invoice.
CoworkerNotifyOnNewPayment
boolean
Coworker Notify On New Payment.
CoworkerNotifyOnFailedPayment
boolean
Coworker Notify On Failed Payment.
CoworkerDoNotProcessInvoicesAutomatically
boolean
Coworker Do Not Process Invoices Automatically.
CoworkerCompanyName
string
Company name of the invoiced customer.
CoworkerTeamNames
string
Team names the invoiced customer belongs to.
BusinessId
integer
Business Id.
BusinessName
string
Name of the location that issued the invoice.
InvoiceNumber
string
Unique invoice number assigned when the invoice is finalised.
PaymentReference
string
Reference code used to match payments to this invoice.
BillToName
string
Name of the person or company being billed.
BillToAddress
string
Billing address on the invoice.
BillToCity
string
Billing city on the invoice.
BillToPostCode
string
Billing post code on the invoice.
BillToPhone
string
Billing phone number on the invoice.
BillToFax
string
Billing fax number on the invoice.
BillToState
string
Billing state or region on the invoice.
BillToCountryId
integer
Bill To Country Id.
BillToCountryName
string
Name of the billing country on the invoice.
BillToCountryTwoDigitsCode
string
Bill To Country Two Digits Code.
BillToBankAccount
string
Bank account number on the invoice for payment.
BillToTaxIDNumber
string
Tax identification number of the billed party.
PurchaseOrder
string
Customer purchase order number for this invoice.
Description
string
Free-text description or notes for the invoice.
DiscountAmount
number
Discount amount applied to the invoice total.
DueDate
string
Date by which payment is due.
InvoiceFromDate
string
Start date of the billing period covered by this invoice.
InvoiceToDate
string
End date of the billing period covered by this invoice.
TotalAmount
number
Total invoice amount including tax.
PaidAmount
number
Total amount paid against this invoice so far.
TransactionTotalAmount
number
Transaction Total Amount.
TransactionCurrencyId
integer
Transaction Currency Id.
TransactionCurrencyCode
string
Transaction Currency Code.
TransactionExchangeRate
number
Transaction Exchange Rate.
CurrencyId
integer
Currency Id.
CurrencyCode
string
ISO currency code (e.g. USD, EUR, GBP).
TaxAmount
number
Total tax amount on the invoice.
Draft
boolean
Whether the invoice is still a draft. Draft invoices can be modified before finalisation.
Void
boolean
Whether the invoice has been voided (cancelled without a credit note).
WaitingForInvoiceNumber
boolean
Whether the invoice is queued for invoice number assignment.
Paid
boolean
Whether the invoice has been fully paid.
Sent
boolean
Whether the invoice has been emailed to the customer.
SentOn
string
Date the invoice was emailed to the customer.
PaidOn
string
Date the invoice was marked as fully paid.
Refunded
boolean
Whether a refund has been issued for this invoice.
XeroInvoiceTransfered
boolean
Whether the invoice has been transferred to Xero.
XeroPaymentTransfered
boolean
Whether the payment has been transferred to Xero.
QuickbooksInvoiceTransfered
boolean
Whether the invoice has been transferred to QuickBooks.
QuickbooksPaymentTransfered
boolean
Whether the payment has been transferred to QuickBooks.
MoloniInvoiceTransferred
boolean
Whether the invoice has been transferred to Moloni.
MoloniPaymentTransferred
boolean
Whether the payment has been transferred to Moloni.
StorecoveInvoiceStatus
integer
Status of e-invoicing transfer via Storecove. See eStorecoveInvoiceStatus enum values: 1 = None, 2 = TransferFailed, 3 = Processing, 4 = ProcessingFailed, 5 = Processed.
AutoTransferToStorecove
boolean
Whether the invoice is automatically sent to Storecove for e-invoicing.
StorecoveUniqueId
string
Storecove Unique Id.
RefundedOn
string
Date the refund was issued.
CreditNote
boolean
Whether this document is a credit note rather than an invoice.
OriginalInvoiceGuid
string
GUID of the original invoice this credit note reverses.
ContractGuid
string
GUID of the contract that generated this invoice.
CustomData
string
Arbitrary custom data stored with the invoice.
GoCardlessReference
string
GoCardless payment reference for direct debit collection.
SpreedlyToken
string
Spreedly Token.
LastPaymentAttempt
string
Last Payment Attempt.
Billed
boolean
Billed.
DoNotApplyCreditAutomatically
boolean
Whether to skip automatic application of available credit to this invoice.
CreatedOnLocal
string
Created On Local.
DueDateLocal
string
Due Date Local.
InvoiceFromDateLocal
string
Invoice From Date Local.
InvoiceToDateLocal
string
Invoice To Date Local.
PaidOnLocal
string
Paid On Local.
RefundedOnLocal
string
Refunded On Local.
LastPaymentAttemptLocal
string
Last Payment Attempt Local.
ReceivedAmount
number
Total amount received via direct payments.
CreditedAmount
number
Amount paid via credit notes or account credit.
RefundedAmount
number
Total amount refunded on this invoice.
NexKioskTransactionId
string
Transaction ID from NexKiosk point-of-sale payment.
AutoTransferToXeroOrQuickBooks
boolean
Whether the invoice is automatically transferred to Xero or QuickBooks.
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
{
  "CoworkerId": 0,
  "CoworkerFullName": null,
  "CoworkerRegularPaymentContractNumber": null,
  "CoworkerRegularPaymentProvider": null,
  "CoworkerCardNumber": null,
  "CoworkerGoCardlessContractNumber": null,
  "CoworkerEnableGoCardlessPayments": null,
  "CoworkerBillingEmail": null,
  "CoworkerNotifyOnNewInvoice": null,
  "CoworkerNotifyOnNewPayment": null,
  "CoworkerNotifyOnFailedPayment": null,
  "CoworkerDoNotProcessInvoicesAutomatically": null,
  "CoworkerCompanyName": null,
  "CoworkerTeamNames": null,
  "BusinessId": 0,
  "BusinessName": null,
  "InvoiceNumber": "",
  "PaymentReference": null,
  "BillToName": "",
  "BillToAddress": "",
  "BillToCity": "",
  "BillToPostCode": "",
  "BillToPhone": null,
  "BillToFax": null,
  "BillToState": null,
  "BillToCountryId": 0,
  "BillToCountryName": null,
  "BillToCountryTwoDigitsCode": null,
  "BillToBankAccount": null,
  "BillToTaxIDNumber": null,
  "PurchaseOrder": null,
  "Description": null,
  "DiscountAmount": 0,
  "DueDate": null,
  "InvoiceFromDate": null,
  "InvoiceToDate": null,
  "TotalAmount": 0,
  "PaidAmount": null,
  "TransactionTotalAmount": null,
  "TransactionCurrencyId": null,
  "TransactionCurrencyCode": null,
  "TransactionExchangeRate": null,
  "CurrencyId": 0,
  "CurrencyCode": null,
  "TaxAmount": 0,
  "Draft": false,
  "Void": false,
  "WaitingForInvoiceNumber": false,
  "Paid": false,
  "Sent": false,
  "SentOn": null,
  "PaidOn": null,
  "Refunded": false,
  "XeroInvoiceTransfered": false,
  "XeroPaymentTransfered": false,
  "QuickbooksInvoiceTransfered": false,
  "QuickbooksPaymentTransfered": false,
  "MoloniInvoiceTransferred": false,
  "MoloniPaymentTransferred": false,
  "StorecoveInvoiceStatus": 0,
  "AutoTransferToStorecove": false,
  "StorecoveUniqueId": null,
  "RefundedOn": null,
  "CreditNote": false,
  "OriginalInvoiceGuid": null,
  "ContractGuid": null,
  "CustomData": null,
  "GoCardlessReference": null,
  "SpreedlyToken": null,
  "LastPaymentAttempt": null,
  "Billed": false,
  "DoNotApplyCreditAutomatically": false,
  "CreatedOnLocal": null,
  "DueDateLocal": null,
  "InvoiceFromDateLocal": null,
  "InvoiceToDateLocal": null,
  "PaidOnLocal": null,
  "RefundedOnLocal": null,
  "LastPaymentAttemptLocal": null,
  "ReceivedAmount": null,
  "CreditedAmount": null,
  "RefundedAmount": null,
  "NexKioskTransactionId": null,
  "AutoTransferToXeroOrQuickBooks": 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": "CoworkerInvoice Example",
  "LocalizationDetails": null,
  "CustomFields": null
}