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

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

A **ResellerAccount** represents the financial account associated with a reseller, tracking commissions, payouts, and billing between Nexudus and the reseller partner.

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

## 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="ResellerAccount_Reseller" type="integer">
  Filter by iD of the reseller linked to this record.
</ParamField>

<ParamField query="ResellerAccount_Reseller_Currency_Id" type="integer">
  Filter by iD of the reseller currency associated with this record.
</ParamField>

<ParamField query="ResellerAccount_Reseller_Currency_Code" type="string">
  Filter by the reseller currency code value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_Business" type="integer">
  Filter by iD of the business linked to this record.
</ParamField>

<ParamField query="ResellerAccount_Business_Name" type="string">
  Filter by display name of the linked business (read-only).
</ParamField>

<ParamField query="ResellerAccount_Business_PreAuthId" type="string">
  Filter by iD of the business pre auth associated with this record.
</ParamField>

<ParamField query="ResellerAccount_Business_Last4Digits" type="string">
  Filter by the business last4 digits value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_Business_PreAuthLastError" type="string">
  Filter by the business pre auth last error value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_Business_Suspended" type="boolean">
  Filter by whether business suspended is enabled.
</ParamField>

<ParamField query="ResellerAccount_Business_NextInvoice" type="string">
  Filter by date/time value for business next invoice.
</ParamField>

<ParamField query="ResellerAccount_Business_TrialExpireDate" type="string">
  Filter by date/time value for business trial expire date.
</ParamField>

<ParamField query="ResellerAccount_Business_SupportTier" type="string">
  Filter by the business support tier value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_Business_OnBoardingTier" type="string">
  Filter by the business on boarding tier value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_Approved" type="boolean">
  Filter by whether approved is enabled.
</ParamField>

<ParamField query="ResellerAccount_ComissionPercentage" type="number">
  Filter by the comission percentage value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_NextPayoutDate" type="string">
  Filter by date/time value for next payout date.
</ParamField>

<ParamField query="ResellerAccount_ExpirationDate" type="string">
  Filter by date/time value for expiration date.
</ParamField>

<ParamField query="ResellerAccount_LastAccess" type="string">
  Filter by date/time value for last access.
</ParamField>

<ParamField query="ResellerAccount_LastInvoiceAmount" type="number">
  Filter by the last invoice amount value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_AverageInvoiceAmount" type="number">
  Filter by the average invoice amount value for this reseller account.
</ParamField>

<ParamField query="ResellerAccount_CanManageAccount" type="boolean">
  Filter by whether can manage account is enabled.
</ParamField>

<ParamField query="ResellerAccount_ProvidesFirstLineSupport" type="boolean">
  Filter by whether provides first line support is enabled.
</ParamField>

<ParamField query="ResellerAccount_Notes" type="string">
  Filter by optional notes or comments about this reseller account.
</ParamField>

<ParamField query="ResellerAccount_ScopeOfWork" type="string">
  Filter by the scope of work value for this reseller account.
</ParamField>

### Range Filters

<ParamField query="from_ResellerAccount_ResellerCurrencyId" type="integer">
  Filter by iD of the reseller currency associated with this record greater than or equal to this value.
</ParamField>

<ParamField query="to_ResellerAccount_ResellerCurrencyId" type="integer">
  Filter by iD of the reseller currency associated with this record less than or equal to this value.
</ParamField>

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

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

<ParamField query="from_ResellerAccount_BusinessTrialExpireDate" type="string">
  Filter by date/time value for business trial expire date greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_ResellerAccount_BusinessTrialExpireDate" type="string">
  Filter by date/time value for business trial expire date less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_ResellerAccount_ComissionPercentage" type="number">
  Filter by the comission percentage value for this reseller account greater than or equal to this value.
</ParamField>

<ParamField query="to_ResellerAccount_ComissionPercentage" type="number">
  Filter by the comission percentage value for this reseller account less than or equal to this value.
</ParamField>

<ParamField query="from_ResellerAccount_NextPayoutDate" type="string">
  Filter by date/time value for next payout date greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_ResellerAccount_NextPayoutDate" type="string">
  Filter by date/time value for next payout date less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

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

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

<ParamField query="from_ResellerAccount_LastAccess" type="string">
  Filter by date/time value for last access greater than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="to_ResellerAccount_LastAccess" type="string">
  Filter by date/time value for last access less than or equal to this value. Format: `YYYY-MM-DDTHH:mm`.
</ParamField>

<ParamField query="from_ResellerAccount_LastInvoiceAmount" type="number">
  Filter by the last invoice amount value for this reseller account greater than or equal to this value.
</ParamField>

<ParamField query="to_ResellerAccount_LastInvoiceAmount" type="number">
  Filter by the last invoice amount value for this reseller account less than or equal to this value.
</ParamField>

<ParamField query="from_ResellerAccount_AverageInvoiceAmount" type="number">
  Filter by the average invoice amount value for this reseller account greater than or equal to this value.
</ParamField>

<ParamField query="to_ResellerAccount_AverageInvoiceAmount" type="number">
  Filter by the average invoice amount value for this reseller account less than or equal to this value.
</ParamField>

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

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

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

<ParamField query="to_ResellerAccount_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/sys/reselleraccounts?page=1&size=15&orderBy=CreatedOn&dir=0" \
    -H "Authorization: Bearer YOUR_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/sys/reselleraccounts?' + new URLSearchParams({
      page: 1,
      size: 15,
      orderBy: 'CreatedOn',
      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/sys/reselleraccounts',
      params={
          'page': 1,
          'size': 15,
          'orderBy': 'CreatedOn',
          'dir': 0 // Ascending
      },
      headers={
          'Authorization': 'Bearer YOUR_TOKEN'
      }
  )

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

### Filtering by CreatedOn

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

  ```javascript JavaScript theme={null}
  const response = await fetch(
    'https://spaces.nexudus.com/api/sys/reselleraccounts?' + new URLSearchParams({
      ResellerAccount_CreatedOn: 'example-value',
      orderBy: 'CreatedOn',
      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/sys/reselleraccounts',
      params={
          'ResellerAccount_CreatedOn': 'example-value',
          'orderBy': 'CreatedOn',
          '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/sys/reselleraccounts?from_ResellerAccount_UpdatedOn=2025-01-01T00:00&to_ResellerAccount_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/sys/reselleraccounts?' + new URLSearchParams({
      from_ResellerAccount_UpdatedOn: '2025-01-01T00:00',
      to_ResellerAccount_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/sys/reselleraccounts',
      params={
          'from_ResellerAccount_UpdatedOn': '2025-01-01T00:00',
          'to_ResellerAccount_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="ResellerAccount[]">
  The list of ResellerAccount records matching the query. See the [Get one ResellerAccount](/rest-api/sys/get-reselleraccounts-by-id) endpoint for the full list of properties returned for each record.
</ResponseField>

<Warning>
  **Partial records** — The listing endpoint returns a summary representation of each ResellerAccount. The following fields are **not populated** in the `Records[]` response: `Notes`, `ScopeOfWork`.

  To get all fields, fetch the full record using the [Get one ResellerAccount](/rest-api/sys/get-reselleraccounts-by-id) endpoint.

  **Important for updates:** When updating a record via `PUT`, always retrieve the full record with a `GET` request first, apply your changes to that complete data, and then send the updated record. Do not use data from a listing response as the base for a `PUT` request, as missing fields may be unintentionally cleared.
</Warning>

<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": [
    {
      "ResellerId": 0,
      "ResellerCurrencyId": null,
      "ResellerCurrencyCode": null,
      "BusinessId": 0,
      "BusinessName": null,
      "BusinessPreAuthId": null,
      "BusinessLast4Digits": null,
      "BusinessPreAuthLastError": null,
      "BusinessSuspended": null,
      "BusinessNextInvoice": null,
      "BusinessTrialExpireDate": null,
      "BusinessSupportTier": null,
      "BusinessOnBoardingTier": null,
      "Approved": false,
      "ComissionPercentage": 0,
      "NextPayoutDate": null,
      "ExpirationDate": null,
      "LastAccess": null,
      "LastInvoiceAmount": null,
      "AverageInvoiceAmount": null,
      "CanManageAccount": false,
      "ProvidesFirstLineSupport": 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": "ResellerAccount Example",
      "LocalizationDetails": null,
      "CustomFields": null
    }
  ],
  "CurrentPageSize": 15,
  "CurrentPage": 1,
  "CurrentOrderField": "CreatedOn",
  "CurrentSortDirection": 1,
  "FirstItem": 1,
  "HasNextPage": false,
  "HasPreviousPage": false,
  "LastItem": 1,
  "PageNumber": 1,
  "PageSize": 15,
  "TotalItems": 1,
  "TotalPages": 1
}
```
