FinOpenPOS
API ReferenceFunctions

attachProtocol()

@finopenpos/fiscal / attachProtocol

function attachProtocol(requestXml, responseXml): string;

Defined in: complement.ts:43

Attach the SEFAZ authorization protocol to a signed NFe XML, producing the nfeProc wrapper required for storage and DANFE.

produzindo o wrapper nfeProc necessário para armazenamento e DANFE.

Output format:

<nfeProc xmlns="..." versao="4.00">
  <NFe>...</NFe>
  <protNFe>...</protNFe>
</nfeProc>

Parameters

ParameterTypeDescription

Returns

string

The nfeProc XML string

On this page