# fulfilment query


`fulfilment` 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 fulfilment by its MAX id. Use it with the `entityId` of a `fulfilment.*` event to
read the fulfilment the event is about.

- Requires the `fulfilment.read` and `order.read` permissions.
- Returns null when the fulfilment does not exist, or when its order or its warehouse is outside
  your API key's legal-entity or warehouse scope.

## Arguments

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

## Returns

[`Fulfilment`](/chameleoon-max/type/fulfilment)

## Example

**Query**

```graphql
query fulfilment($id: UUID!) {
  fulfilment(id: $id) {
    id
    number
    status
    salesOrderId
    warehouseId
    warehouse {
      id
      code
      name
      street
      city
      postalCode
    }
    carrier {
      code
      profile
      name
      service
    }
    shippedAt
    parcels {
      trackingNumber
    }
    lines(first: 10) {
      totalCount
    }
    createdAt
  }
}
```

**Variables**

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

**Response**

```json
{
  "data": {
    "fulfilment": {
      "id": "00000000-0000-4000-8000-000000000001",
      "number": "example",
      "status": "OPEN",
      "salesOrderId": "00000000-0000-4000-8000-000000000001",
      "warehouseId": "00000000-0000-4000-8000-000000000001",
      "warehouse": {
        "id": "00000000-0000-4000-8000-000000000001",
        "code": "example",
        "name": "example",
        "street": "example",
        "city": "example",
        "postalCode": "example"
      },
      "carrier": {
        "code": "example",
        "profile": "example",
        "name": "example",
        "service": "example"
      },
      "shippedAt": "2026-01-01T00:00:00Z",
      "parcels": [
        {
          "trackingNumber": "example"
        }
      ],
      "lines": {
        "totalCount": 1
      },
      "createdAt": "2026-01-01T00:00:00Z"
    }
  }
}
```

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