> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get one Invoice

> Retrieve a single Invoice record by its Id.

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

<Note>
  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.
</Note>

## Path Parameters

<ParamField path="id" type="integer" required>
  The Id of the Invoice record to retrieve.
</ParamField>

## Code Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/billing/invoices/87654321" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/billing/invoices/87654321',
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

  const record = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://spaces.nexudus.com/api/billing/invoices/87654321',
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

  record = response.json()
  ```
</CodeGroup>

## Response

### 200

<ResponseField name="BusinessId" type="integer">
  Business Id.
</ResponseField>

<ResponseField name="InvoiceNumber" type="string">
  Unique sequential invoice number assigned at issuance (e.g. INV-00042).
</ResponseField>

<ResponseField name="BillToName" type="string">
  Name of the person or organisation being billed, captured at invoice time.
</ResponseField>

<ResponseField name="BillToAddress" type="string">
  Billing street address, captured at invoice time.
</ResponseField>

<ResponseField name="BillToCity" type="string">
  Billing city, captured at invoice time.
</ResponseField>

<ResponseField name="BillToTaxIDNumber" type="string">
  Tax identification number (VAT/GST/EIN) of the billed party, captured at invoice time.
</ResponseField>

<ResponseField name="BillToPostCode" type="string">
  Billing postal/ZIP code, captured at invoice time.
</ResponseField>

<ResponseField name="BillToPhone" type="string">
  Billing phone number, captured at invoice time.
</ResponseField>

<ResponseField name="BillToFax" type="string">
  Billing fax number, captured at invoice time.
</ResponseField>

<ResponseField name="BillToCountryId" type="integer">
  Bill To Country Id.
</ResponseField>

<ResponseField name="BillToCountryName" type="string">
  Display name of the billing country (read-only, resolved from BillToCountryId).
</ResponseField>

<ResponseField name="Description" type="string">
  Free-text description or notes for this invoice.
</ResponseField>

<ResponseField name="DiscountAmount" type="number">
  Total discount applied to the invoice, in the invoice currency.
</ResponseField>

<ResponseField name="DueDate" type="string">
  Date by which payment is expected.
</ResponseField>

<ResponseField name="InvoiceFromDate" type="string">
  Start date of the billing period covered by this invoice.
</ResponseField>

<ResponseField name="InvoiceToDate" type="string">
  End date of the billing period covered by this invoice.
</ResponseField>

<ResponseField name="SubscriptionAmount" type="number">
  Portion of the total that corresponds to recurring subscription charges.
</ResponseField>

<ResponseField name="ResellerAmount" type="number">
  Portion of the total attributed to the reseller (partner) channel.
</ResponseField>

<ResponseField name="TotalAmount" type="number">
  Grand total of the invoice including all line items, taxes, and discounts.
</ResponseField>

<ResponseField name="CurrencyId" type="integer">
  Currency Id.
</ResponseField>

<ResponseField name="CurrencyCode" type="string">
  ISO 4217 currency code (e.g. USD, EUR), resolved from CurrencyId.
</ResponseField>

<ResponseField name="TaxAmount" type="number">
  Total tax amount calculated for the invoice.
</ResponseField>

<ResponseField name="Paid" type="boolean">
  Whether the invoice has been fully paid.
</ResponseField>

<ResponseField name="PaidOn" type="string">
  Date and time when full payment was recorded.
</ResponseField>

<ResponseField name="CustomData" type="string">
  Arbitrary JSON or text blob for storing integration-specific metadata.
</ResponseField>

<ResponseField name="PaymentAttemptsCount" type="integer">
  Number of automatic payment collection attempts made for this invoice.
</ResponseField>

<ResponseField name="Id" type="integer">
  Unique record identifier.
</ResponseField>

<ResponseField name="UniqueId" type="string">
  UUID of the record.
</ResponseField>

<ResponseField name="CreatedOn" type="string">
  Date and time the record was created (ISO 8601).
</ResponseField>

<ResponseField name="UpdatedOn" type="string">
  Date and time the record was last updated (ISO 8601).
</ResponseField>

<ResponseField name="UpdatedBy" type="string">
  Email of the user who last updated this record.
</ResponseField>

<ResponseField name="IsNew" type="boolean">
  Whether the record was recently created.
</ResponseField>

<ResponseField name="SystemId" type="string">
  External system identifier.
</ResponseField>

```json Example Response theme={null}
{
  "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
}
```
