Cancelamento de CF-e¶
Realiza o cancelamento de um Cupom Fiscal Eletrônico a partir de sua Chave.
Exemplo de XML de Entrada¶
<?xml version="1.0" encoding="utf-8"?>
<CFeCanc>
<infCFe chCanc="CFe99999999999999999999999999999999999999999999">
<ide>
<CNPJ>11111111111111</CNPJ>
<signAC>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</signAC>
<numeroCaixa>123</numeroCaixa>
</ide>
<emit />
<dest />
<total />
</infCFe>
</CFeCanc>
Exemplo de resposta de Sucesso¶
<OracleRoot xmlns="">
<SatResponse id="">
<CancelarUltimaVenda>
<Field1>999999</Field1>
<Field2>07000</Field2>
<Field3>0000</Field3>
<Field4>Cupom cancelado com sucesso</Field4>
<Field5 />
<Field6 />
<Field7>PD94bWwgdmVyc2 ... NhbmM+Cg==</Field7>
<Field8>01/01/2018 12:00:00</Field8>
<Field9>99999999999999999999999999999999999999999999</Field9>
<Field10>99.99</Field10>
<Field11>99999999999</Field11>
<Field12>OEuDI0aJ ... CdsQ46EjIZw==</Field12>
</CancelarUltimaVenda>
</SatResponse>
</OracleRoot>
Exemplo de Resposta com Falha¶
<OracleRoot xmlns="">
<SatResponse id="">
<CancelarUltimaVenda>
<Field1>999999</Field1>
<Field2>07007</Field2>
<Field3>1218</Field3>
<Field4>Chave de acesso do CF-e-SAT já consta como cancelado</Field4>
<Field5 />
<Field6 />
<Field7 />
<Field8 />
<Field9 />
<Field10 />
<Field11 />
<Field12 />
</CancelarUltimaVenda>
</SatResponse>
</OracleRoot>