Skip to main content
GET
/
empresas
/
data-report
/
multi
/
business
curl -X GET "https://beta.api-iobot-desarrollo.com/empresas/data-report/multi/business?businessId=1&token=TU_TOKEN"
{
  "data": [
    {
      "id": 1,
      "nombre": "Empresa Principal",
      "img_wa": "https://example.com/logo.png",
      "estatus": true,
      "feature_flags": {
        "currency": "HNL",
        "currency_conversion": "USD"
      }
    },
    {
      "id": 2,
      "nombre": "Sucursal Norte",
      "img_wa": null,
      "estatus": true,
      "feature_flags": {
        "currency": "HNL",
        "currency_conversion": "HNL"
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developer.iobot.chat/llms.txt

Use this file to discover all available pages before exploring further.

Retorna las empresas activas configuradas en feature_flags.aquatec_shared_report del negocio solicitante. Esta lista se usa para filtrar qué empresas incluir al llamar a Obtener Reporte Compartido. El Reporte Compartido debe estar habilitado en el negocio. Si aquatec_shared_report no está configurado, el endpoint retorna 400.

Autenticación

Requiere el parámetro token con el token de sesión del usuario, o el encabezado x-api-key / x-iobot-key con el App Key del negocio. Consulta Autenticación.

Parámetros de consulta

businessId
number
required
ID del negocio raíz que tiene habilitado el Reporte Compartido.
token
string
Token de sesión del usuario (requerido si no se usa x-api-key).

Encabezados

x-api-key
string
App Key del negocio (alternativa al token). Consulta Autenticación.

Respuesta

data
array
Lista de empresas activas configuradas en el grupo del Reporte Compartido.
curl -X GET "https://beta.api-iobot-desarrollo.com/empresas/data-report/multi/business?businessId=1&token=TU_TOKEN"
{
  "data": [
    {
      "id": 1,
      "nombre": "Empresa Principal",
      "img_wa": "https://example.com/logo.png",
      "estatus": true,
      "feature_flags": {
        "currency": "HNL",
        "currency_conversion": "USD"
      }
    },
    {
      "id": 2,
      "nombre": "Sucursal Norte",
      "img_wa": null,
      "estatus": true,
      "feature_flags": {
        "currency": "HNL",
        "currency_conversion": "HNL"
      }
    }
  ]
}