JSON construido:

{
    "identificacion": {
        "version": 3,
        "ambiente": "01",
        "codigoGeneracion": "07fbb908-707e-4ce2-b1ec-d66b96432dcc",
        "fTransmision": "2026-03-14",
        "hTransmision": "08:20:20"
    },
    "emisor": {
        "nit": "10102004781053",
        "nombre": "EL DETALLE",
        "nombreResponsable": "EL DETALLE",
        "tipoDocResponsable": "36",
        "numeroDocResponsable": "10102004781053",
        "tipoEstablecimiento": "02",
        "codEstableMH": "M001",
        "codPuntoVenta": "P001",
        "telefono": "75585677",
        "correo": "hdduran10@hotmail.com"
    },
    "detalleDTE": [
        {
            "noItem": 1,
            "codigoGeneracion": "9a67d0ee-3a7d-4095-a79a-b43b160887a4",
            "tipoDoc": "01"
        }
    ],
    "motivo": {
        "fInicio": "2026-03-14",
        "fFin": "2026-03-14",
        "hInicio": "08:18:20",
        "hFin": "08:20:20",
        "tipoContingencia": 5,
        "motivoContingencia": "Prueba de contingencia"
    }
}

Respuesta MH:


Fatal error: Uncaught TypeError: DTETransmisor::transmitirContingencia(): Argument #1 ($jwtEvento) must be of type string, array given, called in /var/www/LUBRICENTRO/LUBRICENTRO/facturacion/mh/test_contingencia.php on line 81 and defined in /var/www/LUBRICENTRO/LUBRICENTRO/facturacion/mh/DTETransmisor.php:172 Stack trace: #0 /var/www/LUBRICENTRO/LUBRICENTRO/facturacion/mh/test_contingencia.php(81): DTETransmisor::transmitirContingencia() #1 {main} thrown in /var/www/LUBRICENTRO/LUBRICENTRO/facturacion/mh/DTETransmisor.php on line 172