# transferAdvices query


`transferAdvices` 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 transfer advices that match a filter, newest issued first. Use it to browse
transfer advices or to find the ones that still wait for work.

- Requires the `transferAdvice.read` permission.
- A connection, paged with `first`/`after` or `last`/`before`, at most 250 a page. 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.
- A page costs 2 + first (or last) × the cost of one node.

## Arguments

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

## Returns

[`TransferAdviceConnection!`](/chameleoon-max/type/transfer-advice-connection): a page of [`TransferAdvice`](/chameleoon-max/type/transfer-advice).

## Example

**Query**

```graphql
query transferAdvices($first: Int) {
  transferAdvices(first: $first) {
    edges {
      cursor
    }
    nodes {
      id
      number
      status
      state
      sourceWarehouseId
      targetWarehouseId
    }
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}
```

**Variables**

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

**Response**

```json
{
  "data": {
    "transferAdvices": {
      "edges": [
        {
          "cursor": "example"
        }
      ],
      "nodes": [
        {
          "id": "00000000-0000-4000-8000-000000000001",
          "number": "example",
          "status": "DRAFT",
          "state": "DRAFT",
          "sourceWarehouseId": "00000000-0000-4000-8000-000000000001",
          "targetWarehouseId": "00000000-0000-4000-8000-000000000001"
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example",
        "endCursor": "example"
      }
    }
  }
}
```

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