# transferAdvice query


`transferAdvice` 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 one transfer advice by its MAX id. Use it to read back a transfer advice, for example
one you created.

- Requires the `transferAdvice.read` permission.
- Returns null when the transfer advice does not exist or your API key cannot see it.

## Arguments

- `id`: [`UUID!`](/chameleoon-max/type/uuid) · required

## Returns

[`TransferAdvice`](/chameleoon-max/type/transfer-advice)

## Example

**Query**

```graphql
query transferAdvice($id: UUID!) {
  transferAdvice(id: $id) {
    id
    number
    status
    state
    sourceWarehouseId
    targetWarehouseId
    legalEntityId
    issuedAt
    plannedAt
    reference
    lines(first: 10) {
      totalCount
    }
    parameters(first: 10) {
      totalCount
    }
    progress {
      linesStarted
      linesDone
      linesInProgress
      linesRemaining
      activeDocuments
      startedAt
    }
    transfers(first: 10) {
      totalCount
    }
  }
}
```

**Variables**

```json
{
  "id": "00000000-0000-4000-8000-000000000001"
}
```

**Response**

```json
{
  "data": {
    "transferAdvice": {
      "id": "00000000-0000-4000-8000-000000000001",
      "number": "example",
      "status": "DRAFT",
      "state": "DRAFT",
      "sourceWarehouseId": "00000000-0000-4000-8000-000000000001",
      "targetWarehouseId": "00000000-0000-4000-8000-000000000001",
      "legalEntityId": "00000000-0000-4000-8000-000000000001",
      "issuedAt": "2026-01-01T00:00:00Z",
      "plannedAt": "2026-01-01T00:00:00Z",
      "reference": "example",
      "lines": {
        "totalCount": 1
      },
      "parameters": {
        "totalCount": 1
      },
      "progress": {
        "linesStarted": 1,
        "linesDone": 1,
        "linesInProgress": 1,
        "linesRemaining": 1,
        "activeDocuments": 1,
        "startedAt": "2026-01-01T00:00:00Z"
      },
      "transfers": {
        "totalCount": 1
      }
    }
  }
}
```

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