---
title: "Available customers"
description: "Fetch multiple customers linked to a user via GraphQL, using the availableCustomers query field with optional pagination and sorting."
lang: en
languages:
  en: https://docs.vismasoftware.no/businessnxtapi/apireference/schema/customers/index.md
lastmod: 2026-07-10
---

> Documentation index: https://docs.vismasoftware.no/businessnxtapi/apireference/schema/llms.txt


# Available customers

Last modified July 10, 2026

> Fetch multiple customers linked to a user via GraphQL, using the availableCustomers query field with optional pagination and sorting.


Typically, a user is associated with a single Visma.net customer. However, it is possible that one user is linked to multipled customers. Business NXT GraphQL allows to fetch all these customers. The list of customers linked to the authenticated user is available with a special field under the `Query` type. This field is called `availableCustomers`. It is similar to the connection types seen so far, except that the `pageInfo` field is missing.

![availableCustomers field](https://docs.vismasoftware.no/businessnxtapi/apireference/schema/availablecustomers.png)

Here is a query example:

```graphql { title = "Query" }
{
  availableCustomers
  {
    totalCount
    items
    {
      name
      vismaNetCustomerId
    }
  }
}
```

```graphql { title = "Result" }
{
  "data": {
    "availableCustomers": {
      "totalCount": 1,
      "items": [
        {
          "name": "Test Customer for Business NXT",
          "vismaNetCustomerId": 1234567
        }
      ]
    }
  }
}
```

The `availableCustomers` field has several optional arguments:

- an argument called `first` that indicates the number of elements to be fetched from the top of the customers list
- an argument called `last` that indicates the number of elements to be fetched from the back of the customers list; if both `first` and `last` are present, `first` is used and `last` is ignored
- an argument called `orderBy` that defines the sorting order of the result
- a deprecated argument called `sortOrder` that defines the sorting order of the result


---

[View this page](https://docs.vismasoftware.no/businessnxtapi/apireference/schema/customers/)
