REFERENCIA DE API · 2.3.0

NEXOSOLT · API administrativa

Administración central con bases de datos independientes por empresa. Token exclusivo del propietario, permisos explícitos, IP/CIDR y vencimiento. POST requiere Idempotency-Key. Importes de salida en centavos enteros; precios de entrada decimales como cadenas. La creación de empresas es asíncrona y requiere confirmación del correo. Esta API utiliza identificadores globales de solicitudes/facturas; conserva local_id para correlacionar el registro en la empresa. No mezclar con los ID de la API de red.

Descargar OpenAPIColección PostmanGuía de integración

Conexión y flujo

https://admin.nexos.com.do/api/admin/v1
API administrativa NEXOSOLT
Base: https://admin.globalolt.com/api/admin/v1
Crear claves desde Administracion > API administrativa. Elegir permisos, IP/CIDR y vencimiento. Se muestran una sola vez. Autenticar con Authorization: Bearer <TOKEN> o X-Admin-Token. No usar la contraseña del propietario como token ni exponer esta clave en el navegador.
GET /capabilities permite revisar version/permisos. Todos los POST requieren Content-Type: application/json e Idempotency-Key de8-128 caracteres. Crear una clave de idempotencia por operacion; persistirla ANTES del envio. Reintentar la misma operacion con el MISMO cuerpo/clave. Un409 requiere consultar el estado; cambiar de clave a ciegas puede duplicar un cobro.
Alta: POST /companies ->202 pending_email. El cliente confirma su correo; pasa queued/provisioning/ready o failed. Consultar GET /companies/{id}. Despues de ready configurar cuenta/precios/usuarios y solicitar pagos. Confirmar pago exige autorizacion manual y referencia, nunca un simple comprobante.
Precios de entrada como cadena decimal; salida en centavos enteros. Planes3,6,12meses. Los IDs de empresas son globales; OLT/ONT son locales. Solicitudes/facturas/pagos devuelven IDs globales y local_id para correlacion.
Paginacion: /companies?after_id=0&limit=50. /requests usa before_id y limit. Actividad/correo usan p y limit25/50/100; fechas from/until en America/Santo_Domingo, timestamps JSON UTC.
Backups/traslados/eliminaciones son tareas asincronas:202 indica aceptada; consultar hasta complete/completed o failed, segun recurso. Descargar ZIP/PDF como binario. No interpretar el binario como JSON.
Eliminacion normal es recuperable, con respaldo previo. companies:delete es un permiso explicito separado. La cuenta se bloquea y detiene; datos, facturas y vigencia se conservan. Restaurar no agrega dias y exige crear nuevas claves API.
Cuota:60 llamadas/minuto; cuerpo max64KiB. Respetar Retry-After. 401 clave vencida/revocada;403 host/IP/scope;409 conflicto;422 validacion;423 mantenimiento;429 cuota;500 revisar request_id. Para errores inciertos de pagos/equipos consultar antes de reenviar.


LICENCIAS PARA OLT ADICIONALES (v164)
POST /api/admin/v1/companies/{company_id}/requests
Scopes: billing:write y activation:write. Idempotency-Key obligatorio.
Consulta primero GET /api/admin/v1/companies/{company_id}/pricing y conserva fingerprint.
Cuerpo de ejemplo:
{"tariff_fingerprint":"HUELLA_DE_LA_TARIFA","additional_olts":1,"capacity_months":12,"customer_note":"Segunda OLT"}
additional_olts: entero de 1 a 50. capacity_months: 3, 6 o 12.
No mezclar con months, advance_payments o demo_olts. Esta compra es de pago y no concede una demo.
La respuesta es una solicitud normal con su ID administrativo global. Sus items incluyen item_kind="capacity", quantity y olt_id=null. Los IDs de items siguen siendo locales y se usan como claves en prices/line_discounts al cotizar. El ID del encabezado request es global.
La creación de la solicitud y el reporte del comprobante no habilitan capacidad ni registran un cobro. Se aplican las mismas rutas /requests/{id}/quote, /report-payment, /approve y /cancel. La aprobación exige revisión, payment_confirmed="1", fecha, método y referencia; aumenta el cupo una sola vez y emite la factura.
La licencia tiene su propio período desde la aprobación. Al registrar la nueva OLT, se le asigna una licencia pagada disponible de su empresa y su vencimiento. No se renueva la OLT existente al comprar capacidad.
Interfaz cliente: Configuración > OLT > Añadir OLT. Al alcanzar el límite, lleva a Activaciones y pagos > Solicitar otra OLT.
Interfaz propietario: Empresas > Ver ficha > Añadir OLT; usa el mismo flujo dentro de esa empresa.
Los documentos y avisos existentes se reutilizan. El comprobante por WhatsApp lo envía el usuario; nunca implica una confirmación automática del pago.

Ejemplos cURL

Completa las variables, el subdominio y los datos de ejemplo antes de ejecutar una solicitud.

Consultar capacidades

curl --fail-with-body -H "Authorization: Bearer $NEXOSOLT_ADMIN_TOKEN" \
  https://admin.nexos.com.do/api/admin/v1/capabilities

Listar empresas

curl --fail-with-body -H "Authorization: Bearer $NEXOSOLT_ADMIN_TOKEN" \
  "https://admin.nexos.com.do/api/admin/v1/companies?after_id=0&limit=50"

Crear registro (reemplaza los datos de ejemplo)

curl --fail-with-body -X POST \
  -H "Authorization: Bearer $NEXOSOLT_ADMIN_TOKEN" \
  -H "Idempotency-Key: $NEXOSOLT_OPERATION_KEY" \
  -H "Content-Type: application/json" \
  --data @registro-empresa.json \
  https://admin.nexos.com.do/api/admin/v1/companies
{
    "name": "Mi empresa",
    "slug": "miempresa",
    "administrator_name": "Administrador",
    "email": "administrador@miempresa.example",
    "password": "REEMPLAZA_POR_UNA_CLAVE_SEGURA"
}

Referencia de operaciones

GET/capabilitiesVersion and token capabilities

Required scope(s): authenticated

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Version and token capabilities",
    "description": "Required scope(s): authenticated",
    "operationId": "get__capabilities",
    "parameters": [],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/companiesList companies (after_id/limit)

Required scope(s): companies:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
include_retiredqueryNobooleanIncluir empresas eliminadas de forma recuperable; por defecto se omiten.
after_idqueryNointeger
limitqueryNointeger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "List companies (after_id/limit)",
    "description": "Required scope(s): companies:read",
    "operationId": "get__companies",
    "parameters": [
        {
            "name": "include_retired",
            "in": "query",
            "schema": {
                "type": "boolean",
                "default": false
            },
            "description": "Incluir empresas eliminadas de forma recuperable; por defecto se omiten."
        },
        {
            "name": "after_id",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 0,
                "maximum": 999999999
            }
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companiesCrear registro de empresa y enviar verificación

companies:write. Devuelve202. La empresa comienza pending_email y no dispone de base de datos ni prueba activa hasta confirmar el correo. Las etapas siguientes son queued/provisioning/ready o failed. La prueba inicial dura72h desde ready. Configura los datos de cuenta, precios y usuarios mediante /companies/{id} después de ready. El subdominio es inmutable. Un correo principal identifica un único registro.

Parámetros

NombreUbicaciónObligatorioTipoRegla
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
nameSístring
slugSístring
administrator_nameSístring
emailSístring
passwordSístring · Mínimo 14 caracteres
phoneNostring
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "name",
        "slug",
        "administrator_name",
        "email",
        "password"
    ],
    "properties": {
        "name": {
            "type": "string",
            "maxLength": 120
        },
        "slug": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9-]{1,40}[a-z0-9]$"
        },
        "administrator_name": {
            "type": "string",
            "maxLength": 120
        },
        "email": {
            "type": "string",
            "format": "email"
        },
        "password": {
            "type": "string",
            "format": "password",
            "minLength": 14,
            "maxLength": 200,
            "writeOnly": true
        },
        "phone": {
            "type": "string",
            "maxLength": 40
        }
    },
    "additionalProperties": false
}

Respuestas

HTTPResultado
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
202Registro aceptado; no implica cuenta preparada ni pago confirmado.
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Crear registro de empresa y enviar verificación",
    "description": "companies:write. Devuelve202. La empresa comienza pending_email y no dispone de base de datos ni prueba activa hasta confirmar el correo. Las etapas siguientes son queued/provisioning/ready o failed. La prueba inicial dura72h desde ready. Configura los datos de cuenta, precios y usuarios mediante /companies/{id} después de ready. El subdominio es inmutable. Un correo principal identifica un único registro.",
    "operationId": "post__companies",
    "parameters": [
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "202": {
            "description": "Registro aceptado; no implica cuenta preparada ni pago confirmado.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "name",
                        "slug",
                        "administrator_name",
                        "email",
                        "password"
                    ],
                    "properties": {
                        "name": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "slug": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9-]{1,40}[a-z0-9]$"
                        },
                        "administrator_name": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "email": {
                            "type": "string",
                            "format": "email"
                        },
                        "password": {
                            "type": "string",
                            "format": "password",
                            "minLength": 14,
                            "maxLength": 200,
                            "writeOnly": true
                        },
                        "phone": {
                            "type": "string",
                            "maxLength": 40
                        }
                    },
                    "additionalProperties": false
                }
            }
        }
    }
}
GET/companies/{company_id}Get or update company

Required scope(s): companies:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Get or update company",
    "description": "Required scope(s): companies:read",
    "operationId": "get__companies_company_id",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{company_id}Get or update company

Required scope(s): companies:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
nameNostring
slugNostringSe define al crear la empresa y no se puede renombrar.
accountNoobjectDatos editables de la cuenta; las fechas de prueba se controlan mediante activación.
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "maxLength": 120
        },
        "slug": {
            "type": "string",
            "description": "Se define al crear la empresa y no se puede renombrar.",
            "readOnly": true
        },
        "account": {
            "type": "object",
            "properties": {
                "legal_name": {
                    "type": "string",
                    "maxLength": 160
                },
                "tax_id": {
                    "type": "string",
                    "maxLength": 40
                },
                "contact_name": {
                    "type": "string",
                    "maxLength": 120
                },
                "contact_email": {
                    "type": "string",
                    "maxLength": 190
                },
                "phone": {
                    "type": "string",
                    "maxLength": 40
                },
                "address": {
                    "type": "string",
                    "maxLength": 240
                },
                "city": {
                    "type": "string",
                    "maxLength": 100
                },
                "country": {
                    "type": "string",
                    "maxLength": 80
                },
                "website": {
                    "type": "string",
                    "maxLength": 240
                },
                "plan_name": {
                    "type": "string",
                    "maxLength": 80
                },
                "billing_email": {
                    "type": "string",
                    "maxLength": 190
                },
                "payment_contact": {
                    "type": "string",
                    "maxLength": 600
                },
                "notes": {
                    "type": "string",
                    "maxLength": 4000
                },
                "olt_limit": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000,
                    "nullable": true
                },
                "paid_until": {
                    "type": "string",
                    "format": "date",
                    "nullable": true
                },
                "auto_suspend": {
                    "type": "boolean"
                },
                "manual_suspended": {
                    "type": "boolean"
                },
                "notify_email": {
                    "type": "boolean",
                    "description": "Requiere billing_email válido si se habilita."
                },
                "currency": {
                    "type": "string",
                    "enum": [
                        "USD",
                        "DOP",
                        "EUR"
                    ]
                }
            },
            "description": "Datos editables de la cuenta; las fechas de prueba se controlan mediante activación."
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Get or update company",
    "description": "Required scope(s): companies:write",
    "operationId": "post__companies_company_id",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string",
                            "maxLength": 120
                        },
                        "slug": {
                            "type": "string",
                            "description": "Se define al crear la empresa y no se puede renombrar.",
                            "readOnly": true
                        },
                        "account": {
                            "type": "object",
                            "properties": {
                                "legal_name": {
                                    "type": "string",
                                    "maxLength": 160
                                },
                                "tax_id": {
                                    "type": "string",
                                    "maxLength": 40
                                },
                                "contact_name": {
                                    "type": "string",
                                    "maxLength": 120
                                },
                                "contact_email": {
                                    "type": "string",
                                    "maxLength": 190
                                },
                                "phone": {
                                    "type": "string",
                                    "maxLength": 40
                                },
                                "address": {
                                    "type": "string",
                                    "maxLength": 240
                                },
                                "city": {
                                    "type": "string",
                                    "maxLength": 100
                                },
                                "country": {
                                    "type": "string",
                                    "maxLength": 80
                                },
                                "website": {
                                    "type": "string",
                                    "maxLength": 240
                                },
                                "plan_name": {
                                    "type": "string",
                                    "maxLength": 80
                                },
                                "billing_email": {
                                    "type": "string",
                                    "maxLength": 190
                                },
                                "payment_contact": {
                                    "type": "string",
                                    "maxLength": 600
                                },
                                "notes": {
                                    "type": "string",
                                    "maxLength": 4000
                                },
                                "olt_limit": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 10000,
                                    "nullable": true
                                },
                                "paid_until": {
                                    "type": "string",
                                    "format": "date",
                                    "nullable": true
                                },
                                "auto_suspend": {
                                    "type": "boolean"
                                },
                                "manual_suspended": {
                                    "type": "boolean"
                                },
                                "notify_email": {
                                    "type": "boolean",
                                    "description": "Requiere billing_email válido si se habilita."
                                },
                                "currency": {
                                    "type": "string",
                                    "enum": [
                                        "USD",
                                        "DOP",
                                        "EUR"
                                    ]
                                }
                            },
                            "description": "Datos editables de la cuenta; las fechas de prueba se controlan mediante activación."
                        }
                    }
                }
            }
        }
    }
}
POST/companies/{company_id}/suspendsuspend company; keeps login/payments accessible

Required scope(s): companies:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
Ver esquema completo del cuerpo
{
    "type": "object"
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "suspend company; keeps login/payments accessible",
    "description": "Required scope(s): companies:write",
    "operationId": "post__companies_company_id_suspend",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object"
                }
            }
        }
    }
}
POST/companies/{company_id}/resumeresume company; keeps login/payments accessible

Required scope(s): companies:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
Ver esquema completo del cuerpo
{
    "type": "object"
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "resume company; keeps login/payments accessible",
    "description": "Required scope(s): companies:write",
    "operationId": "post__companies_company_id_resume",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object"
                }
            }
        }
    }
}
GET/companies/{company_id}/oltsOLT subscriptions and expiry

Required scope(s): companies:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "OLT subscriptions and expiry",
    "description": "Required scope(s): companies:read",
    "operationId": "get__companies_company_id_olts",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/companies/{company_id}/usersList/get/create/update tenant users

Required scope(s): users:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "List/get/create/update tenant users",
    "description": "Required scope(s): users:read",
    "operationId": "get__companies_company_id_users",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{company_id}/usersList/get/create/update tenant users

Required scope(s): users:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
nameSístring
emailSístring
roleNostring · ["admin","technician","viewer"]
passwordSístring · Mínimo 14 caracteres
activeNointeger · [0,1]
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "name",
        "email",
        "password"
    ],
    "properties": {
        "name": {
            "type": "string"
        },
        "email": {
            "type": "string",
            "format": "email"
        },
        "role": {
            "type": "string",
            "enum": [
                "admin",
                "technician",
                "viewer"
            ]
        },
        "password": {
            "type": "string",
            "format": "password",
            "writeOnly": true,
            "minLength": 14,
            "maxLength": 200
        },
        "active": {
            "type": "integer",
            "enum": [
                0,
                1
            ]
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "List/get/create/update tenant users",
    "description": "Required scope(s): users:write",
    "operationId": "post__companies_company_id_users",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "name",
                        "email",
                        "password"
                    ],
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "email": {
                            "type": "string",
                            "format": "email"
                        },
                        "role": {
                            "type": "string",
                            "enum": [
                                "admin",
                                "technician",
                                "viewer"
                            ]
                        },
                        "password": {
                            "type": "string",
                            "format": "password",
                            "writeOnly": true,
                            "minLength": 14,
                            "maxLength": 200
                        },
                        "active": {
                            "type": "integer",
                            "enum": [
                                0,
                                1
                            ]
                        }
                    }
                }
            }
        }
    }
}
GET/companies/{company_id}/users/{user_id}List/get/create/update tenant users

Required scope(s): users:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
user_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "List/get/create/update tenant users",
    "description": "Required scope(s): users:read",
    "operationId": "get__companies_company_id_users_user_id",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{company_id}/users/{user_id}List/get/create/update tenant users

Required scope(s): users:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
user_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
nameNostring
emailNostring
roleNostring · ["admin","technician","viewer"]
passwordNostring · Mínimo 14 caracteres
activeNointeger · [0,1]
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "email": {
            "type": "string",
            "format": "email"
        },
        "role": {
            "type": "string",
            "enum": [
                "admin",
                "technician",
                "viewer"
            ]
        },
        "password": {
            "type": "string",
            "format": "password",
            "writeOnly": true,
            "minLength": 14,
            "maxLength": 200
        },
        "active": {
            "type": "integer",
            "enum": [
                0,
                1
            ]
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "List/get/create/update tenant users",
    "description": "Required scope(s): users:write",
    "operationId": "post__companies_company_id_users_user_id",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "path",
            "name": "user_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string"
                        },
                        "email": {
                            "type": "string",
                            "format": "email"
                        },
                        "role": {
                            "type": "string",
                            "enum": [
                                "admin",
                                "technician",
                                "viewer"
                            ]
                        },
                        "password": {
                            "type": "string",
                            "format": "password",
                            "writeOnly": true,
                            "minLength": 14,
                            "maxLength": 200
                        },
                        "active": {
                            "type": "integer",
                            "enum": [
                                0,
                                1
                            ]
                        }
                    }
                }
            }
        }
    }
}
GET/pricing/globalRead/update monthly price and 3/6/12-month discounts

Required scope(s): pricing:read

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Read/update monthly price and 3/6/12-month discounts",
    "description": "Required scope(s): pricing:read",
    "operationId": "get__pricing_global",
    "parameters": [],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/pricing/globalRead/update monthly price and 3/6/12-month discounts

Required scope(s): pricing:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
price_revisionSíintegerGET pricing.revision first.
price_modeNostring · ["custom","inherit"]
monthly_priceSístring
price_currencyNostring · ["USD","DOP","EUR"]
discountsNoobjectKeys 3,6,12; percent strings.
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "price_revision": {
            "type": "integer",
            "description": "GET pricing.revision first."
        },
        "price_mode": {
            "type": "string",
            "enum": [
                "custom",
                "inherit"
            ]
        },
        "monthly_price": {
            "type": "string",
            "example": "25.00"
        },
        "price_currency": {
            "type": "string",
            "enum": [
                "USD",
                "DOP",
                "EUR"
            ]
        },
        "discounts": {
            "type": "object",
            "description": "Keys 3,6,12; percent strings.",
            "example": {
                "3": "0",
                "6": "0",
                "12": "10"
            }
        }
    },
    "required": [
        "price_revision",
        "monthly_price"
    ]
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Read/update monthly price and 3/6/12-month discounts",
    "description": "Required scope(s): pricing:write",
    "operationId": "post__pricing_global",
    "parameters": [
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "price_revision": {
                            "type": "integer",
                            "description": "GET pricing.revision first."
                        },
                        "price_mode": {
                            "type": "string",
                            "enum": [
                                "custom",
                                "inherit"
                            ]
                        },
                        "monthly_price": {
                            "type": "string",
                            "example": "25.00"
                        },
                        "price_currency": {
                            "type": "string",
                            "enum": [
                                "USD",
                                "DOP",
                                "EUR"
                            ]
                        },
                        "discounts": {
                            "type": "object",
                            "description": "Keys 3,6,12; percent strings.",
                            "example": {
                                "3": "0",
                                "6": "0",
                                "12": "10"
                            }
                        }
                    },
                    "required": [
                        "price_revision",
                        "monthly_price"
                    ]
                }
            }
        }
    }
}
GET/companies/{company_id}/pricingRead/update monthly price and 3/6/12-month discounts

Required scope(s): pricing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Read/update monthly price and 3/6/12-month discounts",
    "description": "Required scope(s): pricing:read",
    "operationId": "get__companies_company_id_pricing",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{company_id}/pricingRead/update monthly price and 3/6/12-month discounts

Required scope(s): pricing:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
price_revisionSíintegerGET pricing.revision first.
price_modeNostring · ["custom","inherit"]
monthly_priceNostring
price_currencyNostring · ["USD","DOP","EUR"]
discountsNoobjectKeys 3,6,12; percent strings.
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "price_revision": {
            "type": "integer",
            "description": "GET pricing.revision first."
        },
        "price_mode": {
            "type": "string",
            "enum": [
                "custom",
                "inherit"
            ]
        },
        "monthly_price": {
            "type": "string",
            "example": "25.00"
        },
        "price_currency": {
            "type": "string",
            "enum": [
                "USD",
                "DOP",
                "EUR"
            ]
        },
        "discounts": {
            "type": "object",
            "description": "Keys 3,6,12; percent strings.",
            "example": {
                "3": "0",
                "6": "0",
                "12": "10"
            }
        }
    },
    "required": [
        "price_revision"
    ]
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Read/update monthly price and 3/6/12-month discounts",
    "description": "Required scope(s): pricing:write",
    "operationId": "post__companies_company_id_pricing",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "price_revision": {
                            "type": "integer",
                            "description": "GET pricing.revision first."
                        },
                        "price_mode": {
                            "type": "string",
                            "enum": [
                                "custom",
                                "inherit"
                            ]
                        },
                        "monthly_price": {
                            "type": "string",
                            "example": "25.00"
                        },
                        "price_currency": {
                            "type": "string",
                            "enum": [
                                "USD",
                                "DOP",
                                "EUR"
                            ]
                        },
                        "discounts": {
                            "type": "object",
                            "description": "Keys 3,6,12; percent strings.",
                            "example": {
                                "3": "0",
                                "6": "0",
                                "12": "10"
                            }
                        }
                    },
                    "required": [
                        "price_revision"
                    ]
                }
            }
        }
    }
}
GET/companies/{company_id}/requestsList requests newest first (before_id/limit)

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "List requests newest first (before_id/limit)",
    "description": "Required scope(s): billing:read",
    "operationId": "get__companies_company_id_requests",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{company_id}/requestsSolicitar renovación o licencias OLT adicionales; crea proforma sin confirmar pago

Required scope(s): billing:write + activation:write Para comprar capacidad sin equipo: additional_olts + capacity_months + tariff_fingerprint. Solo la aprobación manual aumenta olt_limit y crea las licencias. Los items devueltos incluyen item_kind=capacity, quantity y olt_id=null. No se crean equipos ficticios. La solicitud de licencias adicionales no renueva OLT existentes. Los permisos y la idempotencia no cambian.

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
tariff_fingerprintSístringGET company pricing fingerprint.
monthsNoobjectMapa de ID local de OLT a meses para renovar equipos existentes. Omitir al solicitar additional_olts.
advance_paymentsNoobjectMapa de ID local de OLT a la cadena1 para autorizar pago adelantado; usar cadena, no booleano.
customer_noteNostring
plan_typeNostringDemo is owner-only and cannot replace paid accounts. · ["paid","demo"]
demo_oltsNoarray
additional_oltsNointegerLicencias para OLT adicionales sin equipo registrado. No combinar con months ni demo_olts; plan_type debe ser paid.
capacity_monthsNointegerPeríodo de las licencias adicionales. La vigencia comienza al aprobar el pago. · [3,6,12]
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "tariff_fingerprint"
    ],
    "properties": {
        "tariff_fingerprint": {
            "type": "string",
            "description": "GET company pricing fingerprint."
        },
        "months": {
            "type": "object",
            "additionalProperties": {
                "type": "integer",
                "enum": [
                    3,
                    6,
                    12
                ]
            },
            "description": "Mapa de ID local de OLT a meses para renovar equipos existentes. Omitir al solicitar additional_olts."
        },
        "advance_payments": {
            "type": "object",
            "additionalProperties": {
                "type": "string",
                "enum": [
                    "1",
                    "0"
                ]
            },
            "description": "Mapa de ID local de OLT a la cadena1 para autorizar pago adelantado; usar cadena, no booleano."
        },
        "customer_note": {
            "type": "string",
            "maxLength": 1000
        },
        "plan_type": {
            "type": "string",
            "enum": [
                "paid",
                "demo"
            ],
            "default": "paid",
            "description": "Demo is owner-only and cannot replace paid accounts."
        },
        "demo_olts": {
            "type": "array",
            "items": {
                "type": "integer"
            }
        },
        "additional_olts": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "description": "Licencias para OLT adicionales sin equipo registrado. No combinar con months ni demo_olts; plan_type debe ser paid."
        },
        "capacity_months": {
            "type": "integer",
            "enum": [
                3,
                6,
                12
            ],
            "description": "Período de las licencias adicionales. La vigencia comienza al aprobar el pago."
        }
    },
    "example": {
        "tariff_fingerprint": "USE_COMPANY_PRICING_FINGERPRINT",
        "additional_olts": 1,
        "capacity_months": 12,
        "customer_note": "Solicito licencia para mi segunda OLT."
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Solicitar renovación o licencias OLT adicionales; crea proforma sin confirmar pago",
    "description": "Required scope(s): billing:write + activation:write Para comprar capacidad sin equipo: additional_olts + capacity_months + tariff_fingerprint. Solo la aprobación manual aumenta olt_limit y crea las licencias. Los items devueltos incluyen item_kind=capacity, quantity y olt_id=null. No se crean equipos ficticios. La solicitud de licencias adicionales no renueva OLT existentes. Los permisos y la idempotencia no cambian.",
    "operationId": "post__companies_company_id_requests",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "tariff_fingerprint"
                    ],
                    "properties": {
                        "tariff_fingerprint": {
                            "type": "string",
                            "description": "GET company pricing fingerprint."
                        },
                        "months": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "integer",
                                "enum": [
                                    3,
                                    6,
                                    12
                                ]
                            },
                            "description": "Mapa de ID local de OLT a meses para renovar equipos existentes. Omitir al solicitar additional_olts."
                        },
                        "advance_payments": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string",
                                "enum": [
                                    "1",
                                    "0"
                                ]
                            },
                            "description": "Mapa de ID local de OLT a la cadena1 para autorizar pago adelantado; usar cadena, no booleano."
                        },
                        "customer_note": {
                            "type": "string",
                            "maxLength": 1000
                        },
                        "plan_type": {
                            "type": "string",
                            "enum": [
                                "paid",
                                "demo"
                            ],
                            "default": "paid",
                            "description": "Demo is owner-only and cannot replace paid accounts."
                        },
                        "demo_olts": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            }
                        },
                        "additional_olts": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 50,
                            "description": "Licencias para OLT adicionales sin equipo registrado. No combinar con months ni demo_olts; plan_type debe ser paid."
                        },
                        "capacity_months": {
                            "type": "integer",
                            "enum": [
                                3,
                                6,
                                12
                            ],
                            "description": "Período de las licencias adicionales. La vigencia comienza al aprobar el pago."
                        }
                    },
                    "example": {
                        "tariff_fingerprint": "USE_COMPANY_PRICING_FINGERPRINT",
                        "additional_olts": 1,
                        "capacity_months": 12,
                        "customer_note": "Solicito licencia para mi segunda OLT."
                    }
                }
            }
        }
    }
}
GET/companies/{company_id}/paymentsList payments newest first (before_id/limit)

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "List payments newest first (before_id/limit)",
    "description": "Required scope(s): billing:read",
    "operationId": "get__companies_company_id_payments",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/companies/{company_id}/invoicesList invoices newest first (before_id/limit)

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
company_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "List invoices newest first (before_id/limit)",
    "description": "Required scope(s): billing:read",
    "operationId": "get__companies_company_id_invoices",
    "parameters": [
        {
            "in": "path",
            "name": "company_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/requestsAll companies requests, newest first (before_id/limit)

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
before_idqueryNointeger
limitqueryNointeger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "All companies requests, newest first (before_id/limit)",
    "description": "Required scope(s): billing:read",
    "operationId": "get__requests",
    "parameters": [
        {
            "name": "before_id",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 999999999
            }
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/requests/{request_id}Request, items, payments, documents and current revision

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
request_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Request, items, payments, documents and current revision",
    "description": "Required scope(s): billing:read",
    "operationId": "get__requests_request_id",
    "parameters": [
        {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/requests/{request_id}/quotequote request

Required scope(s): billing:write + activation:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
request_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
revisionSíinteger
currencySístring · ["USD","DOP","EUR"]
pricesSíobjectActivation ITEM ID to monthly decimal string.
line_discountsNoobjectActivation ITEM ID to percent string.
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "revision",
        "currency",
        "prices"
    ],
    "properties": {
        "revision": {
            "type": "integer"
        },
        "currency": {
            "type": "string",
            "enum": [
                "USD",
                "DOP",
                "EUR"
            ]
        },
        "prices": {
            "type": "object",
            "description": "Activation ITEM ID to monthly decimal string."
        },
        "line_discounts": {
            "type": "object",
            "description": "Activation ITEM ID to percent string."
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "quote request",
    "description": "Required scope(s): billing:write + activation:write",
    "operationId": "post__requests_request_id_quote",
    "parameters": [
        {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "revision",
                        "currency",
                        "prices"
                    ],
                    "properties": {
                        "revision": {
                            "type": "integer"
                        },
                        "currency": {
                            "type": "string",
                            "enum": [
                                "USD",
                                "DOP",
                                "EUR"
                            ]
                        },
                        "prices": {
                            "type": "object",
                            "description": "Activation ITEM ID to monthly decimal string."
                        },
                        "line_discounts": {
                            "type": "object",
                            "description": "Activation ITEM ID to percent string."
                        }
                    }
                }
            }
        }
    }
}
POST/requests/{request_id}/report-paymentreport-payment request

Required scope(s): billing:write + activation:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
request_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
revisionSíinteger
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "revision"
    ],
    "properties": {
        "revision": {
            "type": "integer"
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "report-payment request",
    "description": "Required scope(s): billing:write + activation:write",
    "operationId": "post__requests_request_id_report-payment",
    "parameters": [
        {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "revision"
                    ],
                    "properties": {
                        "revision": {
                            "type": "integer"
                        }
                    }
                }
            }
        }
    }
}
POST/requests/{request_id}/approveapprove request

Required scope(s): billing:write + activation:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
request_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
revisionSíinteger
payment_confirmedSístring · ["1"]
received_dateSístring
methodSístring · ["transfer","deposit","cash","free"]
referenceSístring
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "revision",
        "payment_confirmed",
        "received_date",
        "method",
        "reference"
    ],
    "properties": {
        "revision": {
            "type": "integer"
        },
        "payment_confirmed": {
            "type": "string",
            "enum": [
                "1"
            ]
        },
        "received_date": {
            "type": "string",
            "format": "date"
        },
        "method": {
            "type": "string",
            "enum": [
                "transfer",
                "deposit",
                "cash",
                "free"
            ]
        },
        "reference": {
            "type": "string",
            "maxLength": 190
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "approve request",
    "description": "Required scope(s): billing:write + activation:write",
    "operationId": "post__requests_request_id_approve",
    "parameters": [
        {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "revision",
                        "payment_confirmed",
                        "received_date",
                        "method",
                        "reference"
                    ],
                    "properties": {
                        "revision": {
                            "type": "integer"
                        },
                        "payment_confirmed": {
                            "type": "string",
                            "enum": [
                                "1"
                            ]
                        },
                        "received_date": {
                            "type": "string",
                            "format": "date"
                        },
                        "method": {
                            "type": "string",
                            "enum": [
                                "transfer",
                                "deposit",
                                "cash",
                                "free"
                            ]
                        },
                        "reference": {
                            "type": "string",
                            "maxLength": 190
                        }
                    }
                }
            }
        }
    }
}
POST/requests/{request_id}/rejectreject request

Required scope(s): billing:write + activation:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
request_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
revisionSíinteger
admin_noteSístring
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "revision",
        "admin_note"
    ],
    "properties": {
        "revision": {
            "type": "integer"
        },
        "admin_note": {
            "type": "string",
            "maxLength": 1000
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "reject request",
    "description": "Required scope(s): billing:write + activation:write",
    "operationId": "post__requests_request_id_reject",
    "parameters": [
        {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "revision",
                        "admin_note"
                    ],
                    "properties": {
                        "revision": {
                            "type": "integer"
                        },
                        "admin_note": {
                            "type": "string",
                            "maxLength": 1000
                        }
                    }
                }
            }
        }
    }
}
POST/requests/{request_id}/cancelcancel request

Required scope(s): billing:write + activation:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
request_idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
revisionSíinteger
admin_noteSístring
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "revision",
        "admin_note"
    ],
    "properties": {
        "revision": {
            "type": "integer"
        },
        "admin_note": {
            "type": "string",
            "maxLength": 1000
        }
    }
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "cancel request",
    "description": "Required scope(s): billing:write + activation:write",
    "operationId": "post__requests_request_id_cancel",
    "parameters": [
        {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "revision",
                        "admin_note"
                    ],
                    "properties": {
                        "revision": {
                            "type": "integer"
                        },
                        "admin_note": {
                            "type": "string",
                            "maxLength": 1000
                        }
                    }
                }
            }
        }
    }
}
GET/billing/issuerInvoice seller and payment instructions

Required scope(s): billing:read

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Invoice seller and payment instructions",
    "description": "Required scope(s): billing:read",
    "operationId": "get__billing_issuer",
    "parameters": [],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/billing/issuerInvoice seller and payment instructions

Required scope(s): billing:write

Parámetros

NombreUbicaciónObligatorioTipoRegla
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
issuer_nameSístring
issuer_tax_idNostring
issuer_registrationNostring
issuer_addressNostring
issuer_countryNostring
issuer_emailNostring
issuer_phoneNostring
issuer_bankNostring
issuer_accountNostring
issuer_instructionsNostring
issuer_due_daysNointeger
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "issuer_name": {
            "type": "string"
        },
        "issuer_tax_id": {
            "type": "string"
        },
        "issuer_registration": {
            "type": "string"
        },
        "issuer_address": {
            "type": "string"
        },
        "issuer_country": {
            "type": "string"
        },
        "issuer_email": {
            "type": "string"
        },
        "issuer_phone": {
            "type": "string"
        },
        "issuer_bank": {
            "type": "string"
        },
        "issuer_account": {
            "type": "string"
        },
        "issuer_instructions": {
            "type": "string"
        },
        "issuer_due_days": {
            "type": "integer",
            "minimum": 0,
            "maximum": 90
        }
    },
    "required": [
        "issuer_name"
    ]
}

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Invoice seller and payment instructions",
    "description": "Required scope(s): billing:write",
    "operationId": "post__billing_issuer",
    "parameters": [
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "issuer_name": {
                            "type": "string"
                        },
                        "issuer_tax_id": {
                            "type": "string"
                        },
                        "issuer_registration": {
                            "type": "string"
                        },
                        "issuer_address": {
                            "type": "string"
                        },
                        "issuer_country": {
                            "type": "string"
                        },
                        "issuer_email": {
                            "type": "string"
                        },
                        "issuer_phone": {
                            "type": "string"
                        },
                        "issuer_bank": {
                            "type": "string"
                        },
                        "issuer_account": {
                            "type": "string"
                        },
                        "issuer_instructions": {
                            "type": "string"
                        },
                        "issuer_due_days": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 90
                        }
                    },
                    "required": [
                        "issuer_name"
                    ]
                }
            }
        }
    }
}
GET/invoices/{invoice_id}Invoice metadata and decrypted snapshot

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
invoice_idpathSíinteger

Respuestas

HTTPResultado
200JSON envelope success/data/request_id; PDF route returns application/pdf
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Invoice metadata and decrypted snapshot",
    "description": "Required scope(s): billing:read",
    "operationId": "get__invoices_invoice_id",
    "parameters": [
        {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "JSON envelope success/data/request_id; PDF route returns application/pdf",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/invoices/{invoice_id}/pdfDownload invoice/proforma PDF

Required scope(s): billing:read

Parámetros

NombreUbicaciónObligatorioTipoRegla
invoice_idpathSíinteger

Respuestas

HTTPResultado
200Documento PDF; leer como binario
400Invalid parameters or missing idempotency key
401Invalid, expired or revoked administrative key
403Wrong host, source IP or scope
404Record or route not found
409Conflict, duplicate/processing request
422Business rule validation
429Rate limit: retry after 60 seconds
500Unexpected failure; reconcile before retrying
Ver contrato completo de esta operación
{
    "summary": "Download invoice/proforma PDF",
    "description": "Required scope(s): billing:read",
    "operationId": "get__invoices_invoice_id_pdf",
    "parameters": [
        {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "Documento PDF; leer como binario",
            "content": {
                "application/pdf": {
                    "schema": {
                        "type": "string",
                        "format": "binary"
                    }
                }
            }
        },
        "400": {
            "description": "Invalid parameters or missing idempotency key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Invalid, expired or revoked administrative key",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Wrong host, source IP or scope",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Record or route not found",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflict, duplicate/processing request",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Business rule validation",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Rate limit: retry after 60 seconds",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "500": {
            "description": "Unexpected failure; reconcile before retrying",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{id}/retry-provisioningReintentar preparación fallida verificada

companies:write. Solo empresas failed con correo confirmado. Reutiliza recursos ya creados; nunca descarta la base de datos ni vuelve a iniciar una prueba existente.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Respuestas

HTTPResultado
200Preparación puesta en cola
409Estado no recuperable por esta operación
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Reintentar preparación fallida verificada",
    "operationId": "retryCompanyProvisioning",
    "description": "companies:write. Solo empresas failed con correo confirmado. Reutiliza recursos ya creados; nunca descarta la base de datos ni vuelve a iniciar una prueba existente.",
    "parameters": [
        {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "Preparación puesta en cola",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Estado no recuperable por esta operación",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/olt-transfers/sourcesInventario de OLT transferibles

transfers:read. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Respuestas

HTTPResultado
200success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
Ver contrato completo de esta operación
{
    "summary": "Inventario de OLT transferibles",
    "description": "transfers:read. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "get_olt_transfers_sources",
    "parameters": [],
    "responses": {
        "200": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
GET/olt-transfersHistorial de transferencias

transfers:read. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Respuestas

HTTPResultado
200success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
Ver contrato completo de esta operación
{
    "summary": "Historial de transferencias",
    "description": "transfers:read. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "get_olt_transfers",
    "parameters": [],
    "responses": {
        "200": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/olt-transfersSolicitar revisión previa; todavía no mueve datos

transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Parámetros

NombreUbicaciónObligatorioTipoRegla
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
source_systemSístring · ["legacy","globalolt"]
source_companySíinteger
source_oltSíinteger
destination_companySíinteger
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "source_system": {
            "type": "string",
            "enum": [
                "legacy",
                "globalolt"
            ]
        },
        "source_company": {
            "type": "integer",
            "minimum": 1
        },
        "source_olt": {
            "type": "integer",
            "minimum": 1
        },
        "destination_company": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "source_system",
        "source_company",
        "source_olt",
        "destination_company"
    ],
    "additionalProperties": false
}

Respuestas

HTTPResultado
202success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Solicitar revisión previa; todavía no mueve datos",
    "description": "transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "post_olt_transfers",
    "parameters": [
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "202": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "source_system": {
                            "type": "string",
                            "enum": [
                                "legacy",
                                "globalolt"
                            ]
                        },
                        "source_company": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "source_olt": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "destination_company": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    "required": [
                        "source_system",
                        "source_company",
                        "source_olt",
                        "destination_company"
                    ],
                    "additionalProperties": false
                }
            }
        }
    }
}
GET/olt-transfers/{id}Consultar revisión, estado y resultado

transfers:read. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger

Respuestas

HTTPResultado
200success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
Ver contrato completo de esta operación
{
    "summary": "Consultar revisión, estado y resultado",
    "description": "transfers:read. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "get_olt_transfers_id",
    "parameters": [
        {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/olt-transfers/{id}/executeConfirmar traslado con revisión vigente

transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
plan_hashSístring
confirmedSíboolean · [true]
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "plan_hash": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
        },
        "confirmed": {
            "type": "boolean",
            "enum": [
                true
            ]
        }
    },
    "required": [
        "plan_hash",
        "confirmed"
    ],
    "additionalProperties": false
}

Respuestas

HTTPResultado
202success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Confirmar traslado con revisión vigente",
    "description": "transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "post_olt_transfers_id_execute",
    "parameters": [
        {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "202": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "plan_hash": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                        },
                        "confirmed": {
                            "type": "boolean",
                            "enum": [
                                true
                            ]
                        }
                    },
                    "required": [
                        "plan_hash",
                        "confirmed"
                    ],
                    "additionalProperties": false
                }
            }
        }
    }
}
POST/olt-transfers/{id}/recheckVolver a comprobar una revisión pendiente

transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": [],
    "required": [],
    "additionalProperties": false
}

Respuestas

HTTPResultado
202success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Volver a comprobar una revisión pendiente",
    "description": "transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "post_olt_transfers_id_recheck",
    "parameters": [
        {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "202": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": [],
                    "required": [],
                    "additionalProperties": false
                }
            }
        }
    }
}
POST/olt-transfers/{id}/cancelCancelar antes del inicio de ejecución

transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": [],
    "required": [],
    "additionalProperties": false
}

Respuestas

HTTPResultado
200success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.
403Token sin permiso administrativo suficiente
409Conflicto o transferencia ya iniciada
422Selección o confirmación no válida
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Cancelar antes del inicio de ejecución",
    "description": "transfers:write. Solo propietario. Conserva el vencimiento individual; no crea pagos ni duplica facturas. La revisión vence en 15 minutos. Configuración física de la OLT intacta. Una VPN compartida no se copia: el destino necesita su propia ruta validada. Los usuarios del origen no adquieren acceso al destino.",
    "operationId": "post_olt_transfers_id_cancel",
    "parameters": [
        {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data. Procesamiento asíncrono: consultar hasta completed, blocked, failed o cancelled.",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Token sin permiso administrativo suficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Conflicto o transferencia ya iniciada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Selección o confirmación no válida",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": [],
                    "required": [],
                    "additionalProperties": false
                }
            }
        }
    }
}
POST/backupsCrear copia completa de una empresa o todas

backups:write. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.

Parámetros

NombreUbicaciónObligatorioTipoRegla
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
company_idNointeger
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": {
        "company_id": {
            "type": "integer",
            "nullable": true
        }
    },
    "additionalProperties": false
}

Respuestas

HTTPResultado
202success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Crear copia completa de una empresa o todas",
    "description": "backups:write. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.",
    "parameters": [
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string"
            }
        }
    ],
    "responses": {
        "202": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "company_id": {
                            "type": "integer",
                            "nullable": true
                        }
                    },
                    "additionalProperties": false
                }
            }
        },
        "required": true
    },
    "operationId": "post_backups"
}
GET/backupsListar copias completas

backups:read. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.

Respuestas

HTTPResultado
200success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
Ver contrato completo de esta operación
{
    "summary": "Listar copias completas",
    "description": "backups:read. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.",
    "parameters": [],
    "responses": {
        "200": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "operationId": "get_backups"
}
GET/backups/{id}Consultar avance y archivos de una copia

backups:read. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger

Respuestas

HTTPResultado
200success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
Ver contrato completo de esta operación
{
    "summary": "Consultar avance y archivos de una copia",
    "description": "backups:read. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "operationId": "get_backups_id"
}
GET/backups/{id}/downloadDescargar ZIP con integridad SHA256 verificada

backups:read. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor. company_id debe corresponder a un archivo incluido en esa copia.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
company_idqueryNointeger0=ZIP de todas, -1=registro central, ID positivo=empresa incluida en esta copia

Respuestas

HTTPResultado
200Archivo ZIP cifrado
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
404Archivo no incluido o no disponible
409Copia incompleta o integridad no verificada
Ver contrato completo de esta operación
{
    "summary": "Descargar ZIP con integridad SHA256 verificada",
    "description": "backups:read. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor. company_id debe corresponder a un archivo incluido en esa copia.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "company_id",
            "in": "query",
            "description": "0=ZIP de todas, -1=registro central, ID positivo=empresa incluida en esta copia",
            "schema": {
                "type": "integer",
                "minimum": -1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "Archivo ZIP cifrado",
            "headers": {
                "X-Content-SHA256": {
                    "schema": {
                        "type": "string"
                    }
                }
            },
            "content": {
                "application/zip": {
                    "schema": {
                        "type": "string",
                        "format": "binary"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "404": {
            "description": "Archivo no incluido o no disponible",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "409": {
            "description": "Copia incompleta o integridad no verificada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "operationId": "get_backups_id_download"
}
POST/backups/{id}/cancelCancelar una copia antes de comenzar

backups:write. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": [],
    "additionalProperties": false
}

Respuestas

HTTPResultado
200success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Cancelar una copia antes de comenzar",
    "description": "backups:write. Solo API administrativa del propietario; tokens de empresa no son validos. Recuperar el contenido requiere primero el archivo privado01 y despues02, que permanecen fuera del servidor.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string"
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": [],
                    "additionalProperties": false
                }
            }
        },
        "required": true
    },
    "operationId": "post_backups_id_cancel"
}
GET/activityActividad con empresa, usuario, fechas, tipo y prioridad

activity:read. Solo API administrativa del propietario; tokens de empresa no son validos. No expone contenido cifrado ni enlaces privados. Fechas de filtro en America/Santo_Domingo; timestamps JSON en UTC.

Parámetros

NombreUbicaciónObligatorioTipoRegla
qqueryNostring
company_idqueryNointeger
fromqueryNostring
untilqueryNostring
typequeryNostring
severityqueryNostring
pqueryNointeger
limitqueryNointeger · 25, 50, 100
actorqueryNointeger

Respuestas

HTTPResultado
200success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
Ver contrato completo de esta operación
{
    "summary": "Actividad con empresa, usuario, fechas, tipo y prioridad",
    "description": "activity:read. Solo API administrativa del propietario; tokens de empresa no son validos. No expone contenido cifrado ni enlaces privados. Fechas de filtro en America/Santo_Domingo; timestamps JSON en UTC.",
    "parameters": [
        {
            "name": "q",
            "in": "query",
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "company_id",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 0
            }
        },
        {
            "name": "from",
            "in": "query",
            "schema": {
                "type": "string",
                "format": "date"
            }
        },
        {
            "name": "until",
            "in": "query",
            "schema": {
                "type": "string",
                "format": "date"
            }
        },
        {
            "name": "type",
            "in": "query",
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "severity",
            "in": "query",
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "p",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "enum": [
                    25,
                    50,
                    100
                ],
                "default": 25
            }
        },
        {
            "name": "actor",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "operationId": "get_activity"
}
GET/mailHistorial SMTP filtrado y estadísticas

mail:read. Solo API administrativa del propietario; tokens de empresa no son validos. No expone contenido cifrado ni enlaces privados. Fechas de filtro en America/Santo_Domingo; timestamps JSON en UTC.

Parámetros

NombreUbicaciónObligatorioTipoRegla
qqueryNostring
company_idqueryNointeger
fromqueryNostring
untilqueryNostring
typequeryNostring
statusqueryNostring
pqueryNointeger
limitqueryNointeger · 25, 50, 100

Respuestas

HTTPResultado
200success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
Ver contrato completo de esta operación
{
    "summary": "Historial SMTP filtrado y estadísticas",
    "description": "mail:read. Solo API administrativa del propietario; tokens de empresa no son validos. No expone contenido cifrado ni enlaces privados. Fechas de filtro en America/Santo_Domingo; timestamps JSON en UTC.",
    "parameters": [
        {
            "name": "q",
            "in": "query",
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "company_id",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 0
            }
        },
        {
            "name": "from",
            "in": "query",
            "schema": {
                "type": "string",
                "format": "date"
            }
        },
        {
            "name": "until",
            "in": "query",
            "schema": {
                "type": "string",
                "format": "date"
            }
        },
        {
            "name": "type",
            "in": "query",
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "status",
            "in": "query",
            "schema": {
                "type": "string"
            }
        },
        {
            "name": "p",
            "in": "query",
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "limit",
            "in": "query",
            "schema": {
                "type": "integer",
                "enum": [
                    25,
                    50,
                    100
                ],
                "default": 25
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "operationId": "get_mail"
}
POST/mail/{id}/retryReintentar exclusivamente fallos anteriores a SMTP DATA

mail:retry. Solo API administrativa del propietario; tokens de empresa no son validos. No expone contenido cifrado ni enlaces privados. Fechas de filtro en America/Santo_Domingo; timestamps JSON en UTC.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
Ver esquema completo del cuerpo
{
    "type": "object",
    "properties": [],
    "additionalProperties": false
}

Respuestas

HTTPResultado
200success/data
403Permiso insuficiente
422Estado o datos no válidos
405Metodo no permitido
429Limite de solicitudes
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Reintentar exclusivamente fallos anteriores a SMTP DATA",
    "description": "mail:retry. Solo API administrativa del propietario; tokens de empresa no son validos. No expone contenido cifrado ni enlaces privados. Fechas de filtro en America/Santo_Domingo; timestamps JSON en UTC.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string"
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Estado o datos no válidos",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "405": {
            "description": "Metodo no permitido",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "429": {
            "description": "Limite de solicitudes",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "properties": [],
                    "additionalProperties": false
                }
            }
        },
        "required": true
    },
    "operationId": "post_mail_id_retry"
}
GET/companies/{id}/deletionConsultar eliminación y operaciones de una empresa

companies:read. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger

Respuestas

HTTPResultado
200success/data; consultar status hasta complete o failed
403Permiso insuficiente
422Confirmación/estado inválidos; revisar mensaje
Ver contrato completo de esta operación
{
    "summary": "Consultar eliminación y operaciones de una empresa",
    "operationId": "Consultar_eliminación_y_operaciones_de_una_empresa",
    "description": "companies:read. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data; consultar status hasta complete o failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Confirmación/estado inválidos; revisar mensaje",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}
POST/companies/{id}/deletionEliminar empresa de forma recuperable con respaldo previo

companies:delete. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
confirm_slugSístring
confirmedSíboolean · [true]
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "confirm_slug",
        "confirmed"
    ],
    "properties": {
        "confirm_slug": {
            "type": "string",
            "example": "miempresa"
        },
        "confirmed": {
            "type": "boolean",
            "enum": [
                true
            ]
        }
    },
    "additionalProperties": false
}

Respuestas

HTTPResultado
202success/data; consultar status hasta complete o failed
403Permiso insuficiente
422Confirmación/estado inválidos; revisar mensaje
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Eliminar empresa de forma recuperable con respaldo previo",
    "operationId": "Eliminar_empresa_de_forma_recuperable_con_respaldo_previo",
    "description": "companies:delete. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "202": {
            "description": "success/data; consultar status hasta complete o failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Confirmación/estado inválidos; revisar mensaje",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "confirm_slug",
                        "confirmed"
                    ],
                    "properties": {
                        "confirm_slug": {
                            "type": "string",
                            "example": "miempresa"
                        },
                        "confirmed": {
                            "type": "boolean",
                            "enum": [
                                true
                            ]
                        }
                    },
                    "additionalProperties": false
                }
            }
        }
    }
}
POST/companies/{id}/restoreRestaurar empresa con su vigencia original

companies:delete. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger
Idempotency-KeyheaderSístring

Cuerpo de solicitud

application/json

CampoObligatorioTipoDescripción
confirm_slugSístring
confirmedSíboolean · [true]
Ver esquema completo del cuerpo
{
    "type": "object",
    "required": [
        "confirm_slug",
        "confirmed"
    ],
    "properties": {
        "confirm_slug": {
            "type": "string",
            "example": "miempresa"
        },
        "confirmed": {
            "type": "boolean",
            "enum": [
                true
            ]
        }
    },
    "additionalProperties": false
}

Respuestas

HTTPResultado
202success/data; consultar status hasta complete o failed
403Permiso insuficiente
422Confirmación/estado inválidos; revisar mensaje
401Clave administrativa inválida, vencida o revocada
413Cuerpo mayor de64KiB
415Usar application/json
423Mantenimiento o traslado en curso
Ver contrato completo de esta operación
{
    "summary": "Restaurar empresa con su vigencia original",
    "operationId": "Restaurar_empresa_con_su_vigencia_original",
    "description": "companies:delete. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        },
        {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
                "type": "string",
                "minLength": 8,
                "maxLength": 128
            }
        }
    ],
    "responses": {
        "202": {
            "description": "success/data; consultar status hasta complete o failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Confirmación/estado inválidos; revisar mensaje",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "401": {
            "description": "Clave administrativa inválida, vencida o revocada",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "413": {
            "description": "Cuerpo mayor de64KiB",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "415": {
            "description": "Usar application/json",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "423": {
            "description": "Mantenimiento o traslado en curso",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    },
    "requestBody": {
        "required": true,
        "content": {
            "application/json": {
                "schema": {
                    "type": "object",
                    "required": [
                        "confirm_slug",
                        "confirmed"
                    ],
                    "properties": {
                        "confirm_slug": {
                            "type": "string",
                            "example": "miempresa"
                        },
                        "confirmed": {
                            "type": "boolean",
                            "enum": [
                                true
                            ]
                        }
                    },
                    "additionalProperties": false
                }
            }
        }
    }
}
GET/company-deletions/{id}Consultar avance de eliminación o restauración

companies:read. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.

Parámetros

NombreUbicaciónObligatorioTipoRegla
idpathSíinteger

Respuestas

HTTPResultado
200success/data; consultar status hasta complete o failed
403Permiso insuficiente
422Confirmación/estado inválidos; revisar mensaje
Ver contrato completo de esta operación
{
    "summary": "Consultar avance de eliminación o restauración",
    "operationId": "Consultar_avance_de_eliminación_o_restauración",
    "description": "companies:read. Exclusivo del propietario. No elimina físicamente las bases de datos, facturas ni archivos; los conserva para recuperación. Revoca sesiones y claves API, detiene servicios y desactiva VPN. El subdominio permanece reservado. Restaurar conserva las fechas del plan/demo y requiere nuevas claves API. No envía comandos de eliminación a OLT/ONT. La creación requiere confirmación del subdominio exacto. En cuentas en preparación o con tareas activas, espere y revise antes de repetir.",
    "parameters": [
        {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
                "type": "integer",
                "minimum": 1
            }
        }
    ],
    "responses": {
        "200": {
            "description": "success/data; consultar status hasta complete o failed",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/SuccessEnvelope"
                    }
                }
            }
        },
        "403": {
            "description": "Permiso insuficiente",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        },
        "422": {
            "description": "Confirmación/estado inválidos; revisar mensaje",
            "content": {
                "application/json": {
                    "schema": {
                        "$ref": "#/components/schemas/ErrorEnvelope"
                    }
                }
            }
        }
    }
}

Los valores de esta documentación son ejemplos. Las claves se generan en el panel y deben guardarse en el servidor de tu integración.