Skip to main content
GET
/
api
/
billing
/
invoices
/
{id}
{
  "BusinessId": 123,
  "InvoiceNumber": "<string>",
  "BillToName": "<string>",
  "BillToAddress": "<string>",
  "BillToCity": "<string>",
  "BillToTaxIDNumber": "<string>",
  "BillToPostCode": "<string>",
  "BillToPhone": "<string>",
  "BillToFax": "<string>",
  "BillToCountryId": 123,
  "BillToCountryName": "<string>",
  "Description": "<string>",
  "DiscountAmount": 123,
  "DueDate": "<string>",
  "InvoiceFromDate": "<string>",
  "InvoiceToDate": "<string>",
  "SubscriptionAmount": 123,
  "ResellerAmount": 123,
  "TotalAmount": 123,
  "CurrencyId": 123,
  "CurrencyCode": "<string>",
  "TaxAmount": 123,
  "Paid": true,
  "PaidOn": "<string>",
  "CustomData": "<string>",
  "PaymentAttemptsCount": 123,
  "Id": 123,
  "UniqueId": "<string>",
  "CreatedOn": "<string>",
  "UpdatedOn": "<string>",
  "UpdatedBy": "<string>",
  "IsNew": true,
  "SystemId": "<string>"
}
An Invoice represents a bill issued by Nexudus to the operator (the business running the coworking space). Invoices are generated automatically by the billing engine or can be created manually via the API. Each invoice captures a snapshot of the billing details at issuance time — bill-to address, currency, tax amounts, and line items. Once issued, the invoice record is immutable with respect to these captured values; changes to the underlying financial accounts, products or customer details do not retroactively update existing invoices. Invoices support list, get, and create operations. They cannot be updated or deleted through the API.

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

Path Parameters

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

Code Examples

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

Response

200

BusinessId
integer
Business Id.
InvoiceNumber
string
Unique sequential invoice number assigned at issuance (e.g. INV-00042).
BillToName
string
Name of the person or organisation being billed, captured at invoice time.
BillToAddress
string
Billing street address, captured at invoice time.
BillToCity
string
Billing city, captured at invoice time.
BillToTaxIDNumber
string
Tax identification number (VAT/GST/EIN) of the billed party, captured at invoice time.
BillToPostCode
string
Billing postal/ZIP code, captured at invoice time.
BillToPhone
string
Billing phone number, captured at invoice time.
BillToFax
string
Billing fax number, captured at invoice time.
BillToCountryId
integer
Bill To Country Id.
BillToCountryName
string
Display name of the billing country (read-only, resolved from BillToCountryId).
Description
string
Free-text description or notes for this invoice.
DiscountAmount
number
Total discount applied to the invoice, in the invoice currency.
DueDate
string
Date by which payment is expected.
InvoiceFromDate
string
Start date of the billing period covered by this invoice.
InvoiceToDate
string
End date of the billing period covered by this invoice.
SubscriptionAmount
number
Portion of the total that corresponds to recurring subscription charges.
ResellerAmount
number
Portion of the total attributed to the reseller (partner) channel.
TotalAmount
number
Grand total of the invoice including all line items, taxes, and discounts.
CurrencyId
integer
Currency Id.
CurrencyCode
string
ISO 4217 currency code (e.g. USD, EUR), resolved from CurrencyId.
TaxAmount
number
Total tax amount calculated for the invoice.
Paid
boolean
Whether the invoice has been fully paid.
PaidOn
string
Date and time when full payment was recorded.
CustomData
string
Arbitrary JSON or text blob for storing integration-specific metadata.
PaymentAttemptsCount
integer
Number of automatic payment collection attempts made for this invoice.
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
{
  "BusinessId": 0,
  "InvoiceNumber": "",
  "BillToName": "",
  "BillToAddress": "",
  "BillToCity": "",
  "BillToTaxIDNumber": null,
  "BillToPostCode": "",
  "BillToPhone": null,
  "BillToFax": null,
  "BillToCountryId": 0,
  "BillToCountryName": null,
  "Description": null,
  "DiscountAmount": 0,
  "DueDate": null,
  "InvoiceFromDate": null,
  "InvoiceToDate": null,
  "SubscriptionAmount": 0,
  "ResellerAmount": 0,
  "TotalAmount": 0,
  "CurrencyId": 0,
  "CurrencyCode": null,
  "TaxAmount": 0,
  "Paid": false,
  "PaidOn": null,
  "CustomData": null,
  "PaymentAttemptsCount": 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": "Invoice Example",
  "LocalizationDetails": null,
  "CustomFields": null
}