FluentaAPI

Get production

getProductionPermiso read

«Producido» over a range of plant days, per day, or per day and módulo, referencia or categoría.

GET/v1/external/organizations/{organizationId}/analytics/production

Groupings: day, module, reference, category. A typed hour counts its «conteo manual», any other hour the puestos de salida’s marcas, and an hour folded into a typed «Extra» 0: a módulo’s figure for a day is its «Tablero de producción» total (getHoursBoard totals.produced). The plant’s figure for a day (groupBy=day) is every módulo that produced added up — the boards’ totals, a módulo deleted since included, as Reportes keep its past days. The live board’s «unidades hoy» (getLiveBoard plant.produced) is the same sum over the módulos with a meta that day only, because it is the numerator of the plant’s eficiencia: it leaves out a módulo that produced with no meta (outside its jornada, or on an OC with no meta per hour), and this figure counts it. Filter: moduleId alone, under any grouping — a typed hour belongs to no puesto and no operario.

Autorización

apiToken
AutorizaciónBearer <token>

An API token created in Configuración › Tokens de API, or a connected app’s access token

En: header

Parámetros de ruta

organizationId*number

Parámetros de consulta

from*string

First plant day of the range, YYYY-MM-DD on the plant's clock, included. At most 92 days from from to to.

Patrón^\d{4}-\d{2}-\d{2}$
Longitudlength <= 10
to*string

Last plant day of the range, YYYY-MM-DD on the plant’s clock, included; not before from.

Patrón^\d{4}-\d{2}-\d{2}$
Longitudlength <= 10
groupBy?string

One row per day, or per day and módulo / operario / puesto (operation) / referencia / categoría. Each figure answers the groupings the dashboard shows it by; any other is a 400 GROUP_BY_UNSUPPORTED that lists the ones it has.

Predeterminado"day"

Valores posibles

  • "day"
  • "module"
  • "operator"
  • "operation"
  • "reference"
  • "category"
page?number

1-based page; 100 rows per page, by day then group.

Rango1 <= value <= 1000000
Predeterminado1
moduleId?integer

Only this módulo. With groupBy=day (or none), its own figure of each day, each row naming it; with module, its rows; with operation, the puestos whose day is filed under it; and, for production, with reference or category too. One filter per request; a second one, or a grouping the filter does not answer, is a 400 FILTER_UNSUPPORTED. An id of another organization is a 404 MODULE_NOT_FOUND.

Rango1 <= value <= 2147483647
operatorId?integer

Only this operario: their own figure of each day (groupBy=day, or none) or their rows (groupBy=operator), as the «Clasificación» counts them. Efficiency and billing; production has no operario (400 FILTER_UNSUPPORTED). An id of another organization is a 404 OPERATOR_NOT_FOUND.

Rango1 <= value <= 2147483647
operationId?integer

Only this puesto: its own figure of each day (groupBy=day, or none) or its rows (groupBy=operation), as its «reporte por operación» totals them. Efficiency and billing; production has no puesto (400 FILTER_UNSUPPORTED). An id of another organization is a 404 OPERATION_NOT_FOUND.

Rango1 <= value <= 2147483647

Respuestas

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0/analytics/production?from=2026-10-01&to=2026-10-31" \  -H "Authorization: Bearer fluenta_live_XXXX"
{  "from": "string",  "to": "string",  "groupBy": "day",  "page": 0,  "pageSize": 0,  "total": 0,  "items": [    {      "day": "string",      "module": {        "id": 0,        "name": "string"      },      "reference": {        "id": 0,        "name": "string",        "orderNumber": "string",        "garment": "string"      },      "category": {        "key": "string",        "label": "string"      },      "units": 0    }  ]}