> ## 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.

# GetProductionOrderById

> Retrieves a production order by its ID.



**query** `GetProductionOrderById(id: ID!): ProductionOrder!`

## Arguments

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

## Returns

`ProductionOrder!`

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

The ID of the production order.

---

**`productionItemId`**: `ID!`

The ID of the production item to be produced by this production order.

---

**`billOfMaterialId`**: `ID!`

The ID of the bill of material used to produce the production item.

---

**`dispositionId`**: `ID`

The ID of the disposition from which the production order originates.

---

**`lotCount`**: `Int!`

Planned number of lots to be produced.

---

**`lotSize`**: `Decimal!`

Planned size of the lots to be produced.

---

**`targetTotalQuantity`**: `Decimal!`

Planned total quantity to be produced.

---

**`actualQuantity`**: `Decimal!`

Actual total quantity produced.

---

**`isTargetTotalQuantityBelowLotSizeAllowed`**: `Boolean!`

Indicates whether it is allowed for this order to have a total quantity below the lot size (true) or not (false).

---

**`progress`**: `Decimal!`

Progress of the production order.

---

**`targetStartTimestamp`**: `DateTime`

Planned start time of the production order.

---

**`targetCompletionTimestamp`**: `DateTime`

Planned completion time of the production order.

---

**`actualStartTimestamp`**: `DateTime`

Actual (reported) start time of the production order.

---

**`actualCompletionTimestamp`**: `DateTime`

Actual (reported) completion time of the production order.

---

**`projectNumber`**: `String!`

The project number associated with the production order.

---

**`referenceNumber`**: `String!`

The reference number associated with the underlying order for this production order.

---

**`issueNumber`**: `String!`

The issue number of the production order.

---

**`issueDate`**: `DateTime!`

The date when the production order was issued.

---

**`notice`**: `String!`

Additional note on the order that will be displayed during production.

---

**`releaseTimestamp`**: `DateTime`

The timestamp when the production order was released.

---

**`deliveryTimestamp`**: `DateTime`

Planned delivery date.

---

**`creationUserId`**: `ID!`

The ID of the user who created the production order.

---

**`releaseUserId`**: `ID`

The ID of the user who released the production order.

---

**`lastModificationUserId`**: `ID!`

The ID of the user who last modified the production order.

---

**`lastModificationTimestamp`**: `DateTime!`

The timestamp of the last modification of the production order.

---

**`resourceTypeId`**: `ID`

The ID type of the resource (workbench-types only) which is allowed to produce this production order.

---

**`workbenchResourceId`**: `ID`

The ID of the workbench resource onto which the production order was assigned.

