SfepRepresentacion
Description
Section titled “Description”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.
Configuration
Section titled “Configuration”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | SFEP credential |
| cufe | text | Yes | CUFE of the FE |
Credentials
Section titled “Credentials”This module requires an sfep credential type (used to fill in issuer data: RUC, business name).
Output
Section titled “Output”{ "cufe": "FE0120000000000001000012320260805...", "html": "<html>...</html>", "qrUrl": "https://pac.example.pa/qr/FE01200000...", "qrImage": "data:image/png;base64,..."}Usage Example
Section titled “Usage Example”{ "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.
Related Nodes
Section titled “Related Nodes”- SfepEmitirFactura - Issue the origin invoice
- SfepEmitirNota - Issue a credit/debit note
- SfepAnular - Cancel an already authorized FE