PHP code example of advans / php-api-cancelacion-cfdi

1. Go to this page and download the library: Download advans/php-api-cancelacion-cfdi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

advans / php-api-cancelacion-cfdi example snippets

`
$config = new \Advans\Api\CancelacionCFDI\Config([
    'endpoint' => 'https://dev.advans.mx/cfdi-cancelacion/json-rpc-2.0',
    'key' => '**********************',
    'use_exceptions' => false,
]);
$servicio_cancelacion = new \Advans\Api\CancelacionCFDI\CancelacionCFDI($config);

$Uuid = 'FFFFFFFF-23F0-BA48-CD4E-405E97430D31';
$response = $servicio_cancelacion->ConsultarEstadoSolicitud($Uuid);