> ## 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.

# Search CoworkerInvoices

> Search and list CoworkerInvoice records with filtering, sorting, and pagination.

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

<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 **`CoworkerInvoice-List`** role.
</Note>

## Enums

<Accordion title="eStorecoveInvoiceStatus — StorecoveInvoiceStatus values">
  | Value | Name             |
  | ----- | ---------------- |
  | 1     | None             |
  | 2     | TransferFailed   |
  | 3     | Processing       |
  | 4     | ProcessingFailed |
  | 5     | Processed        |
</Accordion>

## Query Parameters

### Pagination & Sorting

<ParamField query="page" type="integer" default="1">
  The page number to retrieve.
</ParamField>

<ParamField query="size" type="integer" default="25">
  The number of records per page.
</ParamField>

<ParamField query="orderBy" type="string">
  The property name to sort results by (e.g. `Name`, `CreatedOn`).
</ParamField>

<ParamField query="dir" type="integer">
  Sort direction. `0` for ascending, `1` for descending.
</ParamField>

### Filters

<ParamField query="CoworkerInvoice_Coworker" type="integer">
  Filter by Coworker Id.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_FullName" type="string">
  Filter by full name of the invoiced customer.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_RegularPaymentContractNumber" type="string">
  Filter by Coworker Regular Payment Contract Number.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_RegularPaymentProvider" type="string">
  Filter by Coworker Regular Payment Provider.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_CardNumber" type="string">
  Filter by Coworker Card Number.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_GoCardlessContractNumber" type="string">
  Filter by Coworker Go Cardless Contract Number.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_EnableGoCardlessPayments" type="boolean">
  Filter by Coworker Enable Go Cardless Payments.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_BillingEmail" type="string">
  Filter by billing email address of the customer.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_NotifyOnNewInvoice" type="boolean">
  Filter by Coworker Notify On New Invoice.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_NotifyOnNewPayment" type="boolean">
  Filter by Coworker Notify On New Payment.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_NotifyOnFailedPayment" type="boolean">
  Filter by Coworker Notify On Failed Payment.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_DoNotProcessInvoicesAutomatically" type="boolean">
  Filter by Coworker Do Not Process Invoices Automatically.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_CompanyName" type="string">
  Filter by company name of the invoiced customer.
</ParamField>

<ParamField query="CoworkerInvoice_Coworker_TeamNames" type="string">
  Filter by team names the invoiced customer belongs to.
</ParamField>

<ParamField query="CoworkerInvoice_Business" type="integer">
  Filter by Business Id.
</ParamField>

<ParamField query="CoworkerInvoice_Business_Name" type="string">
  Filter by name of the location that issued the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_InvoiceNumber" type="string">
  Filter by unique invoice number assigned when the invoice is finalised.
</ParamField>

<ParamField query="CoworkerInvoice_PaymentReference" type="string">
  Filter by reference code used to match payments to this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToName" type="string">
  Filter by name of the person or company being billed.
</ParamField>

<ParamField query="CoworkerInvoice_BillToAddress" type="string">
  Filter by billing address on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToCity" type="string">
  Filter by billing city on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToPostCode" type="string">
  Filter by billing post code on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToPhone" type="string">
  Filter by billing phone number on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToFax" type="string">
  Filter by billing fax number on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToState" type="string">
  Filter by billing state or region on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToCountry" type="integer">
  Filter by Bill To Country Id.
</ParamField>

<ParamField query="CoworkerInvoice_BillToCountry_Name" type="string">
  Filter by name of the billing country on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_BillToCountry_TwoDigitsCode" type="string">
  Filter by Bill To Country Two Digits Code.
</ParamField>

<ParamField query="CoworkerInvoice_BillToBankAccount" type="string">
  Filter by bank account number on the invoice for payment.
</ParamField>

<ParamField query="CoworkerInvoice_BillToTaxIDNumber" type="string">
  Filter by tax identification number of the billed party.
</ParamField>

<ParamField query="CoworkerInvoice_PurchaseOrder" type="string">
  Filter by customer purchase order number for this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_Description" type="string">
  Filter by free-text description or notes for the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_DiscountAmount" type="number">
  Filter by discount amount applied to the invoice total.
</ParamField>

<ParamField query="CoworkerInvoice_DueDate" type="string">
  Filter by date by which payment is due.
</ParamField>

<ParamField query="CoworkerInvoice_InvoiceFromDate" type="string">
  Filter by start date of the billing period covered by this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_InvoiceToDate" type="string">
  Filter by end date of the billing period covered by this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_TotalAmount" type="number">
  Filter by total invoice amount including tax.
</ParamField>

<ParamField query="CoworkerInvoice_PaidAmount" type="number">
  Filter by total amount paid against this invoice so far.
</ParamField>

<ParamField query="CoworkerInvoice_TransactionTotalAmount" type="number">
  Filter by Transaction Total Amount.
</ParamField>

<ParamField query="CoworkerInvoice_TransactionCurrency" type="integer">
  Filter by Transaction Currency Id.
</ParamField>

<ParamField query="CoworkerInvoice_TransactionCurrency_Code" type="string">
  Filter by Transaction Currency Code.
</ParamField>

<ParamField query="CoworkerInvoice_TransactionExchangeRate" type="number">
  Filter by Transaction Exchange Rate.
</ParamField>

<ParamField query="CoworkerInvoice_Currency" type="integer">
  Filter by Currency Id.
</ParamField>

<ParamField query="CoworkerInvoice_Currency_Code" type="string">
  Filter by iSO currency code (e.g. USD, EUR, GBP).
</ParamField>

<ParamField query="CoworkerInvoice_TaxAmount" type="number">
  Filter by total tax amount on the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_Draft" type="boolean">
  Filter by whether the invoice is still a draft. Draft invoices can be modified before finalisation.
</ParamField>

<ParamField query="CoworkerInvoice_Void" type="boolean">
  Filter by whether the invoice has been voided (cancelled without a credit note).
</ParamField>

<ParamField query="CoworkerInvoice_WaitingForInvoiceNumber" type="boolean">
  Filter by whether the invoice is queued for invoice number assignment.
</ParamField>

<ParamField query="CoworkerInvoice_Paid" type="boolean">
  Filter by whether the invoice has been fully paid.
</ParamField>

<ParamField query="CoworkerInvoice_Sent" type="boolean">
  Filter by whether the invoice has been emailed to the customer.
</ParamField>

<ParamField query="CoworkerInvoice_SentOn" type="string">
  Filter by date the invoice was emailed to the customer.
</ParamField>

<ParamField query="CoworkerInvoice_PaidOn" type="string">
  Filter by date the invoice was marked as fully paid.
</ParamField>

<ParamField query="CoworkerInvoice_Refunded" type="boolean">
  Filter by whether a refund has been issued for this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_XeroInvoiceTransfered" type="boolean">
  Filter by whether the invoice has been transferred to Xero.
</ParamField>

<ParamField query="CoworkerInvoice_XeroPaymentTransfered" type="boolean">
  Filter by whether the payment has been transferred to Xero.
</ParamField>

<ParamField query="CoworkerInvoice_QuickbooksInvoiceTransfered" type="boolean">
  Filter by whether the invoice has been transferred to QuickBooks.
</ParamField>

<ParamField query="CoworkerInvoice_QuickbooksPaymentTransfered" type="boolean">
  Filter by whether the payment has been transferred to QuickBooks.
</ParamField>

<ParamField query="CoworkerInvoice_MoloniInvoiceTransferred" type="boolean">
  Filter by whether the invoice has been transferred to Moloni.
</ParamField>

<ParamField query="CoworkerInvoice_MoloniPaymentTransferred" type="boolean">
  Filter by whether the payment has been transferred to Moloni.
</ParamField>

<ParamField query="CoworkerInvoice_StorecoveInvoiceStatus" type="integer">
  Filter by status of e-invoicing transfer via Storecove.
</ParamField>

<ParamField query="CoworkerInvoice_AutoTransferToStorecove" type="boolean">
  Filter by whether the invoice is automatically sent to Storecove for e-invoicing.
</ParamField>

<ParamField query="CoworkerInvoice_StorecoveUniqueId" type="string">
  Filter by Storecove Unique Id.
</ParamField>

<ParamField query="CoworkerInvoice_RefundedOn" type="string">
  Filter by date the refund was issued.
</ParamField>

<ParamField query="CoworkerInvoice_CreditNote" type="boolean">
  Filter by whether this document is a credit note rather than an invoice.
</ParamField>

<ParamField query="CoworkerInvoice_OriginalInvoiceGuid" type="string">
  Filter by gUID of the original invoice this credit note reverses.
</ParamField>

<ParamField query="CoworkerInvoice_ContractGuid" type="string">
  Filter by gUID of the contract that generated this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_CustomData" type="string">
  Filter by arbitrary custom data stored with the invoice.
</ParamField>

<ParamField query="CoworkerInvoice_GoCardlessReference" type="string">
  Filter by goCardless payment reference for direct debit collection.
</ParamField>

<ParamField query="CoworkerInvoice_SpreedlyToken" type="string">
  Filter by Spreedly Token.
</ParamField>

<ParamField query="CoworkerInvoice_LastPaymentAttempt" type="string">
  Filter by Last Payment Attempt.
</ParamField>

<ParamField query="CoworkerInvoice_Billed" type="boolean">
  Filter by Billed.
</ParamField>

<ParamField query="CoworkerInvoice_DoNotApplyCreditAutomatically" type="boolean">
  Filter by whether to skip automatic application of available credit to this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_CreatedOnLocal" type="string">
  Filter by Created On Local.
</ParamField>

<ParamField query="CoworkerInvoice_DueDateLocal" type="string">
  Filter by Due Date Local.
</ParamField>

<ParamField query="CoworkerInvoice_InvoiceFromDateLocal" type="string">
  Filter by Invoice From Date Local.
</ParamField>

<ParamField query="CoworkerInvoice_InvoiceToDateLocal" type="string">
  Filter by Invoice To Date Local.
</ParamField>

<ParamField query="CoworkerInvoice_PaidOnLocal" type="string">
  Filter by Paid On Local.
</ParamField>

<ParamField query="CoworkerInvoice_RefundedOnLocal" type="string">
  Filter by Refunded On Local.
</ParamField>

<ParamField query="CoworkerInvoice_LastPaymentAttemptLocal" type="string">
  Filter by Last Payment Attempt Local.
</ParamField>

<ParamField query="CoworkerInvoice_ReceivedAmount" type="number">
  Filter by total amount received via direct payments.
</ParamField>

<ParamField query="CoworkerInvoice_CreditedAmount" type="number">
  Filter by amount paid via credit notes or account credit.
</ParamField>

<ParamField query="CoworkerInvoice_RefundedAmount" type="number">
  Filter by total amount refunded on this invoice.
</ParamField>

<ParamField query="CoworkerInvoice_NexKioskTransactionId" type="string">
  Filter by transaction ID from NexKiosk point-of-sale payment.
</ParamField>

<ParamField query="CoworkerInvoice_AutoTransferToXeroOrQuickBooks" type="boolean">
  Filter by whether the invoice is automatically transferred to Xero or QuickBooks.
</ParamField>

### Range Filters

<ParamField query="from_CoworkerInvoice_DiscountAmount" type="number">
  Filter by discount amount applied to the invoice total greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_DiscountAmount" type="number">
  Filter by discount amount applied to the invoice total less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_DueDate" type="string">
  Filter by date by which payment is due greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_DueDate" type="string">
  Filter by date by which payment is due less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_InvoiceFromDate" type="string">
  Filter by start date of the billing period covered by this invoice greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_InvoiceFromDate" type="string">
  Filter by start date of the billing period covered by this invoice less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_InvoiceToDate" type="string">
  Filter by end date of the billing period covered by this invoice greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_InvoiceToDate" type="string">
  Filter by end date of the billing period covered by this invoice less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_TotalAmount" type="number">
  Filter by total invoice amount including tax greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_TotalAmount" type="number">
  Filter by total invoice amount including tax less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_PaidAmount" type="number">
  Filter by total amount paid against this invoice so far greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_PaidAmount" type="number">
  Filter by total amount paid against this invoice so far less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_TransactionTotalAmount" type="number">
  Filter by transaction total amount greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_TransactionTotalAmount" type="number">
  Filter by transaction total amount less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_TransactionExchangeRate" type="number">
  Filter by transaction exchange rate greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_TransactionExchangeRate" type="number">
  Filter by transaction exchange rate less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_TaxAmount" type="number">
  Filter by total tax amount on the invoice greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_TaxAmount" type="number">
  Filter by total tax amount on the invoice less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_SentOn" type="string">
  Filter by date the invoice was emailed to the customer greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_SentOn" type="string">
  Filter by date the invoice was emailed to the customer less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_PaidOn" type="string">
  Filter by date the invoice was marked as fully paid greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_PaidOn" type="string">
  Filter by date the invoice was marked as fully paid less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_RefundedOn" type="string">
  Filter by date the refund was issued greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_RefundedOn" type="string">
  Filter by date the refund was issued less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_LastPaymentAttempt" type="string">
  Filter by last payment attempt greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_LastPaymentAttempt" type="string">
  Filter by last payment attempt less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_CreatedOnLocal" type="string">
  Filter by created on local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_CreatedOnLocal" type="string">
  Filter by created on local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_DueDateLocal" type="string">
  Filter by due date local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_DueDateLocal" type="string">
  Filter by due date local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_InvoiceFromDateLocal" type="string">
  Filter by invoice from date local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_InvoiceFromDateLocal" type="string">
  Filter by invoice from date local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_InvoiceToDateLocal" type="string">
  Filter by invoice to date local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_InvoiceToDateLocal" type="string">
  Filter by invoice to date local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_PaidOnLocal" type="string">
  Filter by paid on local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_PaidOnLocal" type="string">
  Filter by paid on local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_RefundedOnLocal" type="string">
  Filter by refunded on local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_RefundedOnLocal" type="string">
  Filter by refunded on local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_LastPaymentAttemptLocal" type="string">
  Filter by last payment attempt local greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_LastPaymentAttemptLocal" type="string">
  Filter by last payment attempt local less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_ReceivedAmount" type="number">
  Filter by total amount received via direct payments greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_ReceivedAmount" type="number">
  Filter by total amount received via direct payments less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_CreditedAmount" type="number">
  Filter by amount paid via credit notes or account credit greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_CreditedAmount" type="number">
  Filter by amount paid via credit notes or account credit less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_RefundedAmount" type="number">
  Filter by total amount refunded on this invoice greater than or equal to this value.
</ParamField>

<ParamField query="to_CoworkerInvoice_RefundedAmount" type="number">
  Filter by total amount refunded on this invoice less than or equal to this value.
</ParamField>

<ParamField query="from_CoworkerInvoice_CreatedOn" type="string">
  Filter records created on or after this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_CreatedOn" type="string">
  Filter records created on or before this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_CoworkerInvoice_UpdatedOn" type="string">
  Filter records updated on or after this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_CoworkerInvoice_UpdatedOn" type="string">
  Filter records updated on or before this date. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

## Code Examples

### Simple listing

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/billing/coworkerinvoices?page=1&size=15&orderBy=InvoiceNumber&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/billing/coworkerinvoices?' + new URLSearchParams({
      page: 1,
      size: 15,
      orderBy: 'InvoiceNumber',
      dir: 1 // Ascending
    }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

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

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

  response = requests.get(
      'https://spaces.nexudus.com/api/billing/coworkerinvoices',
      params={
          'page': 1,
          'size': 15,
          'orderBy': 'InvoiceNumber',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

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

### Filtering by InvoiceNumber

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/billing/coworkerinvoices?CoworkerInvoice_InvoiceNumber=example-value&orderBy=InvoiceNumber&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/billing/coworkerinvoices?' + new URLSearchParams({
      CoworkerInvoice_InvoiceNumber: 'example-value',
      orderBy: 'InvoiceNumber',
      dir: 1
    }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

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

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

  response = requests.get(
      'https://spaces.nexudus.com/api/billing/coworkerinvoices',
      params={
          'CoworkerInvoice_InvoiceNumber': 'example-value',
          'orderBy': 'InvoiceNumber',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

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

### Range filters

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET \
    "https://spaces.nexudus.com/api/billing/coworkerinvoices?from_CoworkerInvoice_UpdatedOn=2025-01-01T00:00&to_CoworkerInvoice_UpdatedOn=2025-12-31T23:59&orderBy=UpdatedOn&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/billing/coworkerinvoices?' + new URLSearchParams({
      from_CoworkerInvoice_UpdatedOn: '2025-01-01T00:00',
      to_CoworkerInvoice_UpdatedOn: '2025-12-31T23:59',
      orderBy: 'UpdatedOn',
      dir: 1 // Descending
     }),
    {
      headers: {
        'Authorization': 'Bearer YOUR_TOKEN'
      }
    }
  );

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

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

  response = requests.get(
      'https://spaces.nexudus.com/api/billing/coworkerinvoices',
      params={
          'from_CoworkerInvoice_UpdatedOn': '2025-01-01T00:00',
          'to_CoworkerInvoice_UpdatedOn': '2025-12-31T23:59',
          'orderBy': 'UpdatedOn',
          'dir': 1 // Descending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

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

## Response

### 200

<ResponseField name="Records" type="CoworkerInvoice[]">
  The list of CoworkerInvoice records matching the query. See the [Get one CoworkerInvoice](/rest-api/billing/get-coworkerinvoices-by-id) endpoint for the full list of properties returned for each record.
</ResponseField>

<ResponseField name="CurrentPage" type="integer">
  Current page number.
</ResponseField>

<ResponseField name="CurrentPageSize" type="integer">
  Number of records per page.
</ResponseField>

<ResponseField name="CurrentOrderField" type="string">
  The field used for sorting.
</ResponseField>

<ResponseField name="CurrentSortDirection" type="integer">
  The sort direction (`0` = ascending, `1` = descending).
</ResponseField>

<ResponseField name="FirstItem" type="integer">
  Index of the first item on the current page.
</ResponseField>

<ResponseField name="LastItem" type="integer">
  Index of the last item on the current page.
</ResponseField>

<ResponseField name="TotalItems" type="integer">
  Total number of matching records across all pages.
</ResponseField>

<ResponseField name="TotalPages" type="integer">
  Total number of pages.
</ResponseField>

<ResponseField name="HasNextPage" type="boolean">
  Whether there is a next page of results.
</ResponseField>

<ResponseField name="HasPreviousPage" type="boolean">
  Whether there is a previous page of results.
</ResponseField>

```json Example Response theme={null}
{
  "Records": [
    {
      "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
    }
  ],
  "CurrentPageSize": 15,
  "CurrentPage": 1,
  "CurrentOrderField": "InvoiceNumber",
  "CurrentSortDirection": 1,
  "FirstItem": 1,
  "HasNextPage": false,
  "HasPreviousPage": false,
  "LastItem": 1,
  "PageNumber": 1,
  "PageSize": 15,
  "TotalItems": 1,
  "TotalPages": 1
}
```
