JSON construido:

{
    "identificacion": {
        "version": 3,
        "ambiente": "01",
        "codigoGeneracion": "fe4fa388-c927-4798-b32e-fc6a0571b1d9",
        "fTransmision": "2026-06-02",
        "hTransmision": "10:26:34"
    },
    "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": "d6bfd5fd-fed9-4f0d-9f99-545c46447412",
            "tipoDoc": "01"
        }
    ],
    "motivo": {
        "fInicio": "2026-06-02",
        "fFin": "2026-06-02",
        "hInicio": "10:24:34",
        "hFin": "10:26:34",
        "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