Saltar al contenido principal
POST
/
v1
/
production
/
orders
/
{orderReference}
/
operations
/
{operationReference}
/
outputs
Create a new output
curl --request POST \
  --url https://api.bold-factory.com/v1/production/orders/{orderReference}/operations/{operationReference}/outputs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "completedQuantity": 123,
  "rejectedQuantity": 123,
  "inputs": [
    {
      "quantity": 123,
      "inputReference": "<string>",
      "lotId": "<string>"
    }
  ],
  "coProducts": [
    {
      "quantity": 123,
      "coProductReference": "<string>"
    }
  ],
  "employeeId": "<string>",
  "comments": "<string>"
}
'
{
  "id": "<string>",
  "operationId": "<string>",
  "employeeId": "<string>",
  "completedQuantity": 123,
  "rejectedQuantity": 123,
  "comments": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "operation": {
    "id": "<string>",
    "externalReference": "<string>",
    "orderId": "<string>",
    "order": {
      "id": "<string>",
      "externalReference": "<string>",
      "code": "<string>",
      "skuId": "<string>",
      "sku": {
        "id": "<string>",
        "externalReference": "<string>",
        "code": "<string>",
        "name": "<string>",
        "status": "<string>",
        "productId": "<string>",
        "managesLots": true,
        "unit": {
          "id": "<string>",
          "code": "<string>",
          "name": "<string>"
        },
        "displayDecimalPlaces": 123
      },
      "requestId": "<string>",
      "relatedId": "<string>",
      "requester": "<string>",
      "recipeId": "<string>",
      "recipe": {
        "id": "<string>",
        "externalReference": "<string>",
        "name": "<string>",
        "recipeId": "<string>",
        "productId": "<string>",
        "recipe": {
          "id": "<string>",
          "externalReference": "<string>",
          "name": "<string>",
          "productId": "<string>",
          "product": {
            "id": "<string>",
            "code": "<string>",
            "name": "<string>",
            "externalReference": "<string>"
          },
          "conditionFormula": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "createdBy": "<string>",
          "lastModifiedAt": "2023-11-07T05:31:56Z",
          "lastModifiedBy": "<string>"
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "createdBy": "<string>",
        "lastModifiedAt": "2023-11-07T05:31:56Z",
        "lastModifiedBy": "<string>"
      },
      "obsoleteRecipe": true,
      "plannedQuantity": 123,
      "completedQuantity": 123,
      "rejectedQuantity": 123,
      "notes": "<string>",
      "requiredAvailability": {
        "time": "2023-11-07T05:31:56Z"
      },
      "plannedAt": "2023-11-07T05:31:56Z",
      "startedAt": "2023-11-07T05:31:56Z",
      "cancelledAt": "2023-11-07T05:31:56Z",
      "finishedAt": "2023-11-07T05:31:56Z",
      "targetedAt": "2023-11-07T05:31:56Z",
      "stockExpectedAt": "2023-11-07T05:31:56Z",
      "plannedDurationSeconds": 123,
      "plannedManpowerSeconds": 123,
      "completedWorkloadSeconds": 123,
      "completedDurationSeconds": 123,
      "netScheduledSeconds": 123,
      "netOperatingSeconds": 123,
      "realManpowerSeconds": 123,
      "completionPercent": 123,
      "availability": 123,
      "efficiency": 123,
      "productivity": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "name": "<string>",
    "orderCode": "<string>",
    "isFinalOperation": true,
    "skuId": "<string>",
    "sku": {
      "id": "<string>",
      "externalReference": "<string>",
      "code": "<string>",
      "name": "<string>",
      "status": "<string>",
      "productId": "<string>",
      "managesLots": true,
      "unit": {
        "id": "<string>",
        "code": "<string>",
        "name": "<string>"
      },
      "displayDecimalPlaces": 123
    },
    "positionX": 123,
    "positionY": 123,
    "restrictedBy": [
      {
        "id": "<string>",
        "fromId": "<string>",
        "from": null,
        "toId": "<string>",
        "to": null
      }
    ],
    "requiredCharacteristicId": "<string>",
    "requiredCharacteristic": {
      "id": "<string>",
      "name": "<string>",
      "toolsCount": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "toolId": "<string>",
    "tool": {
      "id": "<string>",
      "name": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "typeId": "<string>",
    "type": {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "description": "<string>",
      "possibleWorkstations": 123,
      "skillCount": 123,
      "deletedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "workstationId": "<string>",
    "workstation": {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "description": "<string>",
      "areaId": "<string>",
      "area": {
        "id": "<string>",
        "externalReference": "<string>",
        "name": "<string>",
        "description": "<string>",
        "parentId": "<string>",
        "parent": null,
        "deletedAt": "2023-11-07T05:31:56Z",
        "createdAt": "2023-11-07T05:31:56Z",
        "createdBy": "<string>",
        "lastModifiedAt": "2023-11-07T05:31:56Z",
        "lastModifiedBy": "<string>"
      },
      "autocompleteOperations": true,
      "infiniteCapacity": true,
      "deletedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "operationsGroupId": "<string>",
    "stockExpectedAt": "2023-11-07T05:31:56Z",
    "requiredEmployees": 123,
    "plannedQuantity": 123,
    "completedQuantity": 123,
    "rejectedQuantity": 123,
    "plannedDurationSeconds": 123,
    "plannedManpowerSeconds": 123,
    "completedManpowerSeconds": 123,
    "completedDurationSeconds": 123,
    "elapsedSeconds": 123,
    "netScheduledSeconds": 123,
    "netOperatingSeconds": 123,
    "realManpowerSeconds": 123,
    "completionPercent": 123,
    "availability": 123,
    "efficiency": 123,
    "productivity": 123,
    "requiredAvailability": {
      "time": "2023-11-07T05:31:56Z"
    },
    "startedAt": "2023-11-07T05:31:56Z",
    "finishedAt": "2023-11-07T05:31:56Z",
    "targetedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  }
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

operationReference
string
requerido
orderReference
string
requerido

Cuerpo

application/json
completedQuantity
number<double>
requerido
rejectedQuantity
number<double>
requerido
inputs
object[]
requerido
coProducts
object[]
employeeId
null | string
comments
null | string

Respuesta

Created

id
string
requerido
operationId
string
requerido
employeeId
null | string
requerido
completedQuantity
number<double>
requerido
rejectedQuantity
number<double>
requerido
comments
null | string
requerido
createdAt
string<date-time>
requerido
operation
object