SAT.EnviarCFe
Envia o XML informado no Parâmetro ArqXML.
SAT.EnviarCFe(cPatchXML)
Parâmetros
cPatchXML: Informe o path do XML para envio (Campo não é obrigatório no caso do CFe ser criado pelo ACBrMonitor através do comando "CriarCFe" )
Exemplo:
SAT.EnviarCFe("C:\acbr\201508\001-000000-satcfe.xml")
Exemplo de resposta:
OK:
[ENVIO]
Arquivo=C:\ACBrMonitorPLUS\Arqs\SAT\Vendas\11111111111111\201911\AD35191111111111111111591234567890000168405629.xml
CodigoDeRetorno=6000
NumeroSessao=436100
Resultado=436100|06000|0000|Emitido com sucesso + conte?do notas||| //Retorna aqui o XML do SAT em base64
RetornoStr=436100|06000|0000|Emitido com sucesso + conte?do notas||| ////Retorna aqui a resposta do SAT em base64
XML=<?xml version="1.0" encoding="UTF-8"?><CFe><infCFe Id="CFe35191111111111111111591234567890000168405629" versao="0.07" versaoDadosEnt="0.07" versaoSB="000003"><ide><cUF>35</cUF><cNF>840562</cNF><mod>59</mod><nserieSAT>123456789</nserieSAT><nCFe>000016</nCFe><dEmi>20191106</dEmi><hEmi>092056</hEmi><cDV>9</cDV><tpAmb>2</tpAmb><CNPJ>11111111111111</CNPJ><signAC>SGR-SAT SISTEMA DE GESTAO E RETAGUARDA DO SAT</signAC><assinaturaQRCODE>TKveuwFy4WVOGTugxvvy1EmECC+YyOt8HKRA7M7en0IMxIO9XAFabwRPWre2fqG+7XEzfYgND/srsWxfhAWNMCQmCrA7k5P3YPRnI7Cs483kI6KqcKwdphscGJW29vtJ7/dh/ie0k8XiB8aEElRoF14Q1WQFOPE7s36wWy5exfG90PYmjXo0TJHou6Gi/s4udWvfhxTyNZfUPtn+kRppdZZvnppugV7uyBmp9iJjpgUUAoF/6ZsOnmnSqjoJVdNHHZj9cL2yO5kQ+o+yGvbZ4c+7xUKZxYEGOZb8WQVyBDAvPZklKPOuCRPF+OzvMmk3tgI17lTQV0ifsYHBf0aU9g==</assinaturaQRCODE><numeroCaixa>001</numeroCaixa></ide><emit><CNPJ>11111111111111</CNPJ><xNome>Estabelecimento de Teste 2</xNome><xFant>Estabelecimento Fantasia 2</xFant><enderEmit><xLgr>rua das flores</xLgr><nro>1005</nro><xCpl>frente</xCpl><xBairro>centro</xBairro><xMun>Sao Paulo</xMun><CEP>00000000</CEP></enderEmit><IE>111111111111</IE><IM>123123</IM><cRegTrib>3</cRegTrib><cRegTribISSQN>1</cRegTribISSQN><indRatISSQN>S</indRatISSQN></emit><dest/><det nItem="1"><prod><cProd>78912366</cProd><xProd>CHOCOLATE</xProd><NCM>17049010</NCM><CFOP>5405</CFOP><uCom>UND</uCom><qCom>1.0000</qCom><vUnCom>1.10</vUnCom><vProd>1.10</vProd><indRegra>A</indRegra><vItem>1.10</vItem></prod><imposto><ICMS><ICMSSN102><Orig>0</Orig><CSOSN>500</CSOSN></ICMSSN102></ICMS><PIS><PISSN><CST>49</CST></PISSN></PIS><COFINS><COFINSSN><CST>49</CST></COFINSSN></COFINS></imposto></det><total><ICMSTot><vICMS>0.00</vICMS><vProd>1.10</vProd><vDesc>0.00</vDesc><vPIS>0.00</vPIS><vCOFINS>0.00</vCOFINS><vPISST>0.00</vPISST><vCOFINSST>0.00</vCOFINSST><vOutro>0.00</vOutro></ICMSTot><vCFe>1.10</vCFe><vCFeLei12741>0.00</vCFeLei12741></total><pgto><MP><cMP>01</cMP><vMP>1.10</vMP></MP><vTroco>0.00</vTroco></pgto></infCFe><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><Reference URI="#CFe35191111111111111111591234567890000168405629"><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><DigestValue>6zs883/lg8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7Xx48qnfR0864ilA0z/FyuSZgDzp8EMYBAVy0a20nydKwa8pEUYF1iDaltYaQcZMFqD7/UbAEr4xgxv+Y42KF0fxgUmueeDyQb4keroZjyFn44gQDVS9Q4o6FIqjjW2yoKm8vaIEohBSMO+m4rDyXYto+anBApgdtpkGWZOI1bKSlRWOiKe+Ong0ZN6fOJUt/v5m7APse1lGUw5w6Qq+8Ua9Serf+gomojsw1HAuYqqWh/dU+eNRJ/64JxP7eZfVrqBxI7ehr83H6tpxNZEf0/pakTE8Vkyb0NEI492Bvi1hNOiCIlV1vr3hyU+mJ9w7Y6J</X509Certificate></X509Data></KeyInfo></Signature></CFe>
Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents