FinOpenPOS
API ReferenceFunctions

parseAuthorizationResponse()

@finopenpos/fiscal / parseAuthorizationResponse

function parseAuthorizationResponse(xml): {
  authorizedAt?: string;
  protocolNumber?: string;
  protocolXml?: string;
  statusCode: number;
  statusMessage: string;
};

Defined in: sefaz-response-parsers.ts:34

Parse authorization response (NfeAutorizacao / NfeRetAutorizacao).

Parameters

ParameterType
xmlstring

Returns

{
  authorizedAt?: string;
  protocolNumber?: string;
  protocolXml?: string;
  statusCode: number;
  statusMessage: string;
}
NameTypeDefined in
authorizedAt?stringsefaz-response-parsers.ts:39
protocolNumber?stringsefaz-response-parsers.ts:37
protocolXml?stringsefaz-response-parsers.ts:38
statusCodenumbersefaz-response-parsers.ts:35
statusMessagestringsefaz-response-parsers.ts:36

On this page