List organization stations
listOrganizationStationsPermiso read
The organization’s «puestos» (stations) across its «módulos», optionally of one «módulo», as the live board reads them now. 50 per page, by «módulo» in the floor’s order, then in the board’s.
/v1/external/organizations/{organizationId}/stationsAnswers the «puestos» of the «Tablero en tiempo real» as one flat list, across every «módulo» or narrowed to one with moduleId (an id of listModules or getFloor). The dashboard has no such screen: it lists them one «módulo» at a time, which is listStations.
Paged: 50 «puestos» per page, ordered by «módulo» in the floor’s order and then in the board’s. page is 1-based (default 1); total counts every «puesto» that matches, so the last page is ceil(total / 50), and a page past it answers items: [] with the same total. A deleted «puesto», or one of a deleted «módulo», is never listed.
Each «puesto» is read as the «Tablero en tiempo real» reads it now: unitsThisHour and hourGoal are units of the hour currentHour names, unitsToday units of the plant day today names, color the «semáforo» (GRAY, RED, YELLOW, GREEN), pausedAt an ISO 8601 UTC instant, and currentReference.price money per unit in the organization’s currency (getOrganization.currency).
The answer carries no today or currentHour: read them from getSettings. Every day and hour is on the plant’s own clock, its «zona horaria» (getSettings.timezone, an IANA name), never UTC and never the caller’s.
A «puesto» is station in this API’s paths and answers, and OPERATION in its error code.
Plan: on every plan, Light included. A «token de API» reads it in any organization the user who created it belongs to; a connected AI app (a «conexión») reads it only where the organization has «Conectar con IA» (getPlan.features.aiConnector, a Pro feature), and answers 403 PLAN_LIMIT elsewhere.
Rate limit: one request of the credential’s ordinary budget in this organization (getPlan answers the numbers); past it, 429 RATE_LIMITED with Retry-After in seconds.
Autorización
apiToken An API token created in Configuración › Tokens de API, or a connected app’s access token
En: header
Parámetros de ruta
The organization, from getMe or listOrganizations.
Parámetros de consulta
Only the «puestos» of this «módulo»: an id of listModules or getFloor. One of another organization answers 404 MODULE_NOT_FOUND.
1 <= value <= 21474836471-based page; 50 «puestos» per page, by «módulo» in the floor’s order, then in the board’s order. A page past the last answers no item.
1 <= value <= 10000001Respuestas
application/json
application/json
curl -X GET "https://api.fluenta.io/v1/external/organizations/0/stations" \ -H "Authorization: Bearer fluenta_live_XXXX"{ "items": [ { "id": 0, "name": "string", "position": 0, "moduleId": 0, "isBilling": true, "isEntry": true, "isRework": true, "operator": { "id": 0, "name": "string", "active": true }, "operatorActive": true, "pausedAt": "2019-08-24T14:15:22Z", "currentReference": { "id": 0, "name": "string", "stationGoal": 0, "price": 0 }, "currentStep": 0, "stepUnitsToday": { "whole": 0, "step1": 0, "step2": 0 }, "goalReference": 0, "hourGoal": 0, "unitsThisHour": 0, "unitsToday": 0, "color": "GRAY", "total": 0, "totalCompleted": 0, "remaining": 0, "reworkCurrent": 0, "reworkTotal": 0 } ], "page": 1, "total": 0}