FluentaAPI

Get billing

getBillingPermiso read

«Facturación» over a range of plant days, per day, or per day and módulo, operario or puesto.

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

Groupings: day, module, operator, operation. The puestos de salida’s units at the price each was billed at, plus a typed hour no puesto held the billing role in (by day and módulo). Each figure is rounded to the cent where its dashboard counterpart rounds it: a módulo’s day is its «Facturación por módulo» row, a day is that table’s total (its módulos added up), an operario’s is the «Clasificación»’s «Facturado», and a puesto’s is its «reporte por operación» (each hour rounded, then the hours added up). Filters: one of moduleId, operatorId, operationId narrows the answer to that one, each row still its dashboard figure; with groupBy=day the rows are its own figure of each day and name it. Without a filter the answer is the whole plant’s.

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/billing?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,  "currency": "string",  "items": [    {      "day": "string",      "module": {        "id": 0,        "name": "string"      },      "operator": {        "id": 0,        "name": "string"      },      "operation": {        "id": 0,        "name": "string",        "moduleId": 0,        "moduleName": "string"      },      "billableUnits": 0,      "billedAmount": 0    }  ]}