# transfers query


`transfers` is a GraphQL query of the Chameleoon MAX API. Send it as `POST https://max-api.chameleoon.sk/api/v1/graphql` with your API key, see [Chameleoon MAX](/chameleoon-max).

Returns a page of transfers that match a filter, newest first by `effectiveAt`, then by when
they were created, then by `id`. Use it to read a transfer back after the events feed reports
that it was opened, completed, cancelled or revised.

#### Permissions

- Requires the `transfer.read` permission.
- A transfer is returned when either of its warehouses is in your API key's warehouse scope.
- A transfer is left out when neither warehouse is in that scope, or when its company is
  outside your API key's legal-entity scope.

#### Paging

Pass exactly one of `first` or `last`, from 1 to 250. `first` (with `after`) pages forward;
`last` (with `before`) pages backward. `last` alone returns the last page. Every edge carries
its own cursor.

#### Good to know

- Draft transfers are never returned.
- `filter.ids` names at most 50 transfers. An id that does not exist, is not a transfer, is a
  draft or is outside your API key's scope is left out of the result. It is never an error.
- The connection has no total count.
- A page costs 2 + first (or last) × the cost of one node.

## Arguments

- `filter`: [`TransferFilter`](/chameleoon-max/type/transfer-filter)
- `first`: `Int`
- `after`: `String`
- `last`: `Int`
- `before`: `String`

## Returns

[`TransferConnection!`](/chameleoon-max/type/transfer-connection): a page of [`Transfer`](/chameleoon-max/type/transfer).

## Example

**Query**

```graphql
query transfers($first: Int) {
  transfers(first: $first) {
    edges {
      cursor
    }
    nodes {
      stockVersion
      id
      number
      status
      version
      effectiveAt
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

**Variables**

```json
{
  "first": 10
}
```

**Response**

```json
{
  "data": {
    "transfers": {
      "edges": [
        {
          "cursor": "example"
        }
      ],
      "nodes": [
        {
          "stockVersion": "example",
          "id": "00000000-0000-4000-8000-000000000001",
          "number": "example",
          "status": "OPEN",
          "version": 1,
          "effectiveAt": "2026-01-01T00:00:00Z"
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example",
        "endCursor": "example"
      }
    }
  }
}
```

Values are illustrative: replace IDs and codes with your own before you send the call.
