Skip to content

SfepRepresentacion

Generates the printable representation (CAFE, Comprobante Auxiliar de Factura Electrónica) of a Panama FE issued under the SFEP model, including the verification QR code. The node fetches the already authorized FE from Floogos’s database by its CUFE and builds the HTML ready to print or convert to PDF.

FieldTypeRequiredDescription
credentials_idcredentialsYesSFEP credential
cufetextYesCUFE of the FE

This module requires an sfep credential type (used to fill in issuer data: RUC, business name).

{
"cufe": "FE0120000000000001000012320260805...",
"html": "<html>...</html>",
"qrUrl": "https://pac.example.pa/qr/FE01200000...",
"qrImage": "data:image/png;base64,..."
}
{
"credentials_id": "cred-sfep-prod",
"cufe": "FE0120000000000001000012320260805..."
}
  • If no FE is found with the given CUFE, the node returns an error instead of generating an empty representation.
  • The returned HTML is meant to be rendered in the browser or converted to PDF by another node in the workflow.
  • The QR points to the corresponding PAC/DGI verification service — it is not just a decorative link.
  • Works for both invoices and already authorized credit/debit notes, as long as they have a CUFE.