# QA partial quantity entry during a running order (appends; does NOT verify) (/docs/api-reference/production-orders/ProductionOrdersController_logQuantityDuringProduction)

`POST /api/factories/{factoryId}/production-orders/{id}/log-quantity`

Base URL: https://api.xentr.ai

Authentication: bearer token (`Authorization: Bearer <token>`).

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `factoryId` | path | yes | string | Factory ID |
| `id` | path | yes | string | Production Order ID |

## Request body

Required.

Content type: `application/json`

```json
{
  "type": "object",
  "properties": {
    "quantityProduced": {
      "type": "number",
      "description": "Quantity produced in this entry (will be added to the running total).",
      "example": 50
    },
    "quantityGood": {
      "type": "number",
      "description": "Quantity good in this entry (will be added).",
      "example": 48
    },
    "quantityRejected": {
      "type": "number",
      "description": "Quantity rejected in this entry (will be added).",
      "example": 2
    },
    "notes": {
      "type": "string",
      "description": "Free-text notes from QA."
    },
    "subOrderId": {
      "type": "string",
      "description": "Sub-order ID to log against. Defaults to the order's active sub-order."
    },
    "loggedBy": {
      "type": "string",
      "description": "User id of the QA inspector. Set by the controller."
    }
  },
  "required": [
    "quantityProduced",
    "quantityGood",
    "quantityRejected"
  ]
}
```

## Responses

### 201