v1Referencia de la APIRegistros de producción

Obtener un registro de producción

Devuelve un registro de producción por su ID, con sus registros relacionados incluidos. Un ID que pertenece a otra empresa se reporta como 404, no como 403.

Parámetros de ruta

production_log_id*Production Log Id

El ID del registro de producción.

Formatouuid4

Cuerpo de la respuesta

application/json

application/json

Pruébalo en vivo
GET
/v1/production-logs/{production_log_id}

Este endpoint requiere autenticación. Pega un token en la sección Autorización, más abajo.

curl -X GET "https://example.com/v1/production-logs/string"
{  "id": "36f7b519-d93e-4ec8-8245-7f4b8c123456",  "type": "correct",  "sensorCount": 500,  "count": 1000,  "nominalSpeed": 60,  "countingFactor": 1,  "start": "2024-01-01T00:00:00",  "end": "2024-01-01T08:00:00",  "isReviewed": true,  "isAutomated": true,  "machineId": 12,  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "deletedAt": "2019-08-24T14:15:22Z",  "live": true,  "machine": {    "id": 0,    "name": "string",    "isCountEnabled": true,    "externalName": "string"  },  "company": {    "id": 0,    "name": "string",    "timezone": "string"  },  "shift": {    "id": 0,    "name": "string",    "start": "2019-08-24T14:15:22Z",    "end": "2019-08-24T14:15:22Z",    "isConsidered": true  },  "operator": {    "id": 0,    "firstName": "string",    "lastName": "string",    "email": "string"  },  "sku": {    "id": "string",    "name": "string",    "description": "string",    "unit": "string"  },  "workOrder": {    "id": "string",    "name": "string",    "description": "string",    "status": "InProgress"  },  "simpleWorkOrder": {    "id": "string",    "name": "string"  }}