FluentaAPI

Get organization

getOrganizationPermiso read

The organization: «país», «zona horaria» and today in its clock, «moneda», «jornada», the módulos’ «descansos», «categorías» and the plan features it has.

GET/v1/external/organizations/{organizationId}

Answers the organization in one read: where it is (country, department, city), its clock (timezone, with today and currentHour on it), its currency, its plan, the switches of «Configuración», the «jornada» (shift), every «módulo»’s «descansos» (moduleRestTimes) and its «categorías» (categories).

organizationId comes from getMe or listOrganizations; one that does not exist or is out of the credential’s reach answers 404 ORGANIZATION_NOT_FOUND. getPlan, getSettings, listCategories and listModuleRestTimes answer its parts on their own.

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*integer

The organization, from getMe or listOrganizations.

Respuestas

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0" \  -H "Authorization: Bearer fluenta_live_XXXX"
{  "id": 0,  "name": "string",  "country": "CO",  "countryName": "Colombia",  "department": "string",  "city": "string",  "timezone": "America/Bogota",  "today": "2019-08-24",  "currentHour": 0,  "currency": {    "code": "COP",    "locale": "es-CO",    "fractionDigits": 0  },  "plan": {    "tier": "light",    "features": {      "reports": true,      "billingAnalytics": true,      "moduleReports": true,      "operatorReports": true,      "analytics": true,      "pace": true,      "rework": true,      "pauses": true,      "operatorPicksReference": true,      "referenceColor": true,      "aiConnector": true,      "maxReferencesPerModule": 0    }  },  "switches": {    "pausesEnabled": true,    "operatorPicksReference": true,    "showMoneyOnBoard": true  },  "shift": {    "configured": true,    "startMin": 0,    "endMinsByWeekday": [      0    ],    "continuousDays": [      0    ],    "specialDays": [      {        "day": "2026-12-19",        "endMin": 0,        "reason": "string"      }    ],    "holidays": [      "2019-08-24"    ],    "workedHolidays": [      "2019-08-24"    ],    "nationalHolidays": [      {        "day": "2026-12-08",        "name": "Inmaculada Concepción",        "worked": true      }    ]  },  "moduleRestTimes": [    {      "moduleId": 0,      "moduleName": "string",      "restTimes": [        {          "id": 0,          "startHour": 0,          "startMin": 0,          "endHour": 0,          "endMin": 0        }      ]    }  ],  "categories": {    "own": [      "string"    ],    "brands": [      {        "companyAdminId": 0,        "name": "string",        "categories": [          {            "code": "01",            "short": "Blusa",            "name": "Blusa · Vestido",            "emoji": "string"          }        ]      }    ]  }}