Skip to main content
GET
Get one CoworkerInvoice
A CoworkerInvoice is the bill a location issues to one of its customers (member, contact or team) for plans, bookings, products, passes and other charges, including totals, payment status, credits and invoice delivery. THIS IS THE DEFAULT INVOICE ENTITY: when an operator says ‘invoice’, ‘invoices’, ‘unpaid invoices’, ‘overdue invoices’, ‘invoice 1042’, ‘send the invoice’ or ‘credit note’, they mean a CoworkerInvoice — use the coworker_invoice_* tools and do not ask which kind of invoice they meant. The separate Invoice entity (invoice_* tools) is the platform bill Nexudus issues to the operator and is almost never what an operator is asking about. Call this record an ‘invoice’ when speaking to the operator; never say ‘CoworkerInvoice’.

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

integer
required
The Id of the CoworkerInvoice record to retrieve.

Code Examples

Response

200

integer
ID of the customer billed by this invoice..
string
Display value for Coworker.FullName..
string
Display value for Coworker.RegularPaymentContractNumber..
string
Display value for Coworker.RegularPaymentProvider..
string
Display value for Coworker.CardNumber..
string
Display value for Coworker.GoCardlessContractNumber..
boolean
Display value for Coworker.EnableGoCardlessPayments..
string
Display value for Coworker.BillingEmail..
boolean
Display value for Coworker.NotifyOnNewInvoice..
boolean
Display value for Coworker.NotifyOnNewPayment..
boolean
Display value for Coworker.NotifyOnFailedPayment..
boolean
Display value for Coworker.DoNotProcessInvoicesAutomatically..
string
Display value for Coworker.CompanyName..
string
Display value for Coworker.TeamNames..
integer
ID of the location that owns and issues this invoice..
string
Display value for Business.Name..
string
Unique invoice number, assigned when the invoice is issued..
string
Payment reference used for reconciliation; normally follows the invoice number..
string
Name of the person or organisation billed, captured on the invoice..
string
Billing street address captured on the invoice..
string
Billing city captured on the invoice..
string
Billing postal or ZIP code captured on the invoice..
string
Optional billing phone number captured on the invoice..
string
Optional billing fax number captured on the invoice..
string
Optional billing state, province, or region captured on the invoice..
integer
ID of the country in the billing address..
string
Display value for BillToCountry.Name..
string
Display value for BillToCountry.TwoDigitsCode..
string
Optional bank-account details printed for payment instructions..
string
Optional tax identification number of the billed party..
string
Optional customer purchase-order reference..
string
Read-only summary generated from the invoice lines; change lines instead..
number
Read-only stored invoice-level discount amount in the invoice currency; UpdateTotals does not recalculate it because line SubTotal values already include line discounts..
string
Optional payment due date in the location’s timezone. When an invoice is created, the system calculates it using the customer’s due day or InvoiceDueDatePeriod first, then a due-date term configured for a plan on the invoice’s contract lines, the contract-period-start setting, and finally the location default; customer and plan periods are capped at 365 days. If several plan due-date terms apply, it uses the earliest next due date..
string
Read-only start of the contract billing period, calculated from the InvoicedPeriod of the contract being invoiced..
string
Read-only end of the contract billing period, calculated from the billing period of the contract’s associated plan..
number
Read-only gross invoice total: sum of every line’s SubTotal plus TaxAmount after each line is rounded, then rounded to the location’s invoice decimal precision..
number
Read-only database total of all CoworkerLedgerEntry Credit values linked to this invoice; negative credit entries reduce the amount..
number
Stored total to collect in the payment transaction currency, set to TotalAmount multiplied by Payments.ExchangeRate and rounded to two decimals; the outstanding balance proportionally subtracts net ledger credits..
integer
ID of the currency used to collect payment; defaults to the location’s invoice currency unless Payments.Currency specifies a transaction currency..
string
Display value for TransactionCurrency.Code..
number
Fixed multiplier from invoice currency to transaction currency, copied from the location’s Payments.ExchangeRate setting when invoice totals are updated..
integer
ID of the currency used to state invoice amounts..
string
Display value for Currency.Code..
number
Read-only tax total: sum of every rounded invoice-line TaxAmount, then rounded to the location’s invoice decimal precision..
boolean
Whether this invoice remains a draft rather than a final issued invoice..
boolean
Whether this invoice has been voided or cancelled; voiding deletes all CoworkerLedgerEntry records associated with the invoice..
boolean
Whether the invoice is awaiting its final sequential number..
boolean
Whether payments have marked the invoice as paid..
boolean
Whether the invoice has been sent to the customer..
string
Read-only date and time when the invoice was sent..
string
Date and time recorded as paid; it updates payment ledger dates..
boolean
Whether all non-zero invoice lines have been refunded..
boolean
Whether the invoice has been transferred to Xero..
boolean
Whether invoice payments have been transferred to Xero..
boolean
Whether the invoice has been transferred to QuickBooks..
boolean
Whether invoice payments have been transferred to QuickBooks..
boolean
Whether the invoice has been transferred to Moloni..
boolean
Whether invoice payments have been transferred to Moloni..
integer
Read-only Storecove transfer state: None, TransferFailed, Processing, ProcessingFailed, or Processed.. See eStorecoveInvoiceStatus enum values: 1 = None, 2 = TransferFailed, 3 = Processing, 4 = ProcessingFailed, 5 = Processed.
boolean
Whether the invoice is configured for automatic Storecove transfer..
string
Read-only identifier assigned by Storecove after transfer..
string
Read-only date and time when the invoice was refunded..
boolean
Whether this invoice is a credit note..
string
Read-only unique ID of the original invoice related to this credit note..
string
Read-only unique ID of the customer plan contract that generated this invoice..
string
Internal payment-provider payload such as Stripe identifiers..
string
Internal GoCardless payment reference..
string
Sensitive payment-provider token used for Spreedly processing..
string
Read-only timestamp of the most recent automatic payment attempt..
boolean
Internal billing-processing flag..
boolean
Whether credit resulting from crediting a paid invoice must not be automatically applied to future invoices; the operator can allocate the credit manually..
string
Location-timezone mirror of the system CreatedOn timestamp..
string
Location-timezone mirror of DueDate; use DueDate instead..
string
Location-timezone mirror of InvoiceFromDate; use InvoiceFromDate instead..
string
Location-timezone mirror of InvoiceToDate; use InvoiceToDate instead..
string
Location-timezone mirror of PaidOn; use PaidOn instead..
string
Location-timezone mirror of RefundedOn; use RefundedOn instead..
string
Location-timezone mirror of LastPaymentAttempt..
number
Read-only database-maintained reporting amount for payments received; it is not calculated by invoice UpdateTotals..
number
Read-only database-maintained reporting amount for credit applied or issued; it is not calculated by invoice UpdateTotals..
number
Read-only database-maintained reporting amount for refunds; it is not calculated by invoice UpdateTotals..
string
Internal NexKiosk payment transaction identifier..
boolean
Whether the invoice is configured for automatic Xero or QuickBooks transfer..
integer
Unique record identifier.
string
UUID of the record.
string
Date and time the record was created (ISO 8601).
string
Date and time the record was last updated (ISO 8601).
string
Email of the user who last updated this record.
boolean
Whether the record was recently created.
string
External system identifier.
Example Response