# shipment query


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

- Requires the `shipment.read` permission.
- Returns null when the shipment does not exist, is outside your API key's legal-entity or
  warehouse scope, or never reached the carrier.

## Arguments

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

## Returns

[`Shipment`](/chameleoon-max/type/shipment)

## Example

**Query**

```graphql
query shipment($id: UUID!) {
  shipment(id: $id) {
    id
    number
    status
    numbers
    trackingStatus
    carrier {
      code
      profile
      name
      service
    }
    salesOrderId
    fulfilmentId
    version
    createdAt
    changedAt
  }
}
```

**Variables**

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

**Response**

```json
{
  "data": {
    "shipment": {
      "id": "00000000-0000-4000-8000-000000000001",
      "number": "example",
      "status": "CREATED",
      "numbers": [
        "example"
      ],
      "trackingStatus": "example",
      "carrier": {
        "code": "example",
        "profile": "example",
        "name": "example",
        "service": "example"
      },
      "salesOrderId": "00000000-0000-4000-8000-000000000001",
      "fulfilmentId": "00000000-0000-4000-8000-000000000001",
      "version": 1,
      "createdAt": "2026-01-01T00:00:00Z",
      "changedAt": "2026-01-01T00:00:00Z"
    }
  }
}
```

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