> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetProductionItemById

> Retrieves a production item by its ID.



**query** `GetProductionItemById(id: ID!): ProductionItem!`

## Arguments

**`id`**: `ID!` (required)

## Returns

`ProductionItem!`

**`id`**: `ID!`

The ID of this production item.

---

**`itemId`**: `ID!`

The ID of the item underlying this production item.

---

**`lotType`**: `LotType!`

Defines the type of lot size configuration for this production item.

---

**`productionType`**: `ProductionType!`

Defines the type of manufacturing of this production item.

---

**`lotLabelTemplateKey`**: `ID`

The ID of a template to be used for printing an item label when a lot is completed, or NULL if no item label should be printed on completion.

---

**`singleItemLabelTemplateKey`**: `ID`

The ID of a template to be used for printing an item label for each produced unit when a lot is completed, or NULL if no item label for each produced unit should be printed on completion.

---

**`createDate`**: `DateTime!`

The timestamp when this production item was created.

---

**`updateDate`**: `DateTime!`

The timestamp when this production item was last modified.

---

**`updateUserId`**: `ID`

The ID of the user who last modified this production item, or NULL if this production item has not been modified yet.

## Examples

```graphql Query
query GetProductionItemById($id: ID!) {
  GetProductionItemById(id: $id) {
    id
    itemId
    lotType
    productionType
    lotLabelTemplateKey
    singleItemLabelTemplateKey
  }
}
```

```json Variables
{
  "id": "id"
}
```

```json Response
{
  "data": {
    "GetProductionItemById": {
      "id": "id",
      "itemId": "id",
      "lotType": "OWN",
      "productionType": "REGULAR",
      "lotLabelTemplateKey": "id",
      "singleItemLabelTemplateKey": "id"
    }
  }
}
```
