SFEP Panama — Electronic invoicing (DGI, Electronic Invoice)
Overview
Section titled “Overview”The SFEP nodes connect your workflows to Panama’s electronic invoicing (DGI, Panama’s Electronic Invoicing System). Floogos builds the FE (XML, DGI format), optionally signs it, and sends it to a PAC (Qualified Authorization Provider) that validates it, assigns the CUFE and transmits it to the DGI, returning the CAFE (Authorization Certificate) with its QR.
| Node | What it does |
|---|---|
SFEP: Issue invoice (sfepEmitirFactura) | Internal Operation Invoice (01), Import (02) or Export (03) |
SFEP: Credit/Debit note (sfepEmitirNota) | Credit Note (04) or Debit Note (05) |
SFEP: Cancel FE (sfepAnular) | Cancels an FE by its CUFE, via the PAC |
SFEP: Rendering / QR (sfepRepresentacion) | Generates the printable CAFE with QR |
Credential
Section titled “Credential”The nodes use a credential of type SFEP. Create it under Credentials → Add → Panama / DGI (SFEP) with:
| Field | Description |
|---|---|
| Issuer RUC + DV | The unique registry and its check digit. |
| PAC + credentials | The provider (thefactoryhka or generic) and its token/username. |
| Legal name / Branch | Issuer details. |
| Billing point | Point code (001). |
| Location | Address, township, district, province, coordinates. |
| Environment | Test or Production. |
| Certificate (.p12) | Optional: only if you sign yourself. |
Issue an invoice
Section titled “Issue an invoice”Node: SFEP: Issue invoice. precioUnitario values are without ITBMS; Floogos computes the ITBMS (7%, rate 01) and totals. The receptor is optional (omit for final consumer).
{ "tipo": "01", "receptor": { "ruc": "8-888-8888", "dv": "12", "nombre": "Panama Client Inc." }, "items": [ { "descripcion": "Consulting service", "cantidad": 1, "precioUnitario": 100 } ]}Per-item tasaItbms: 01 7% (default), 02 10%, 03 15%, 00 exempt. The node returns the CUFE, the CAFE URL and the QR.
Credit and debit notes
Section titled “Credit and debit notes”Node: SFEP: Credit/Debit note. The note references the origin FE by its CUFE via referencia:
{ "tipo": "04", "referencia": { "cufe": "FE0155...CUFE", "numero": "0000000001", "fecha": "2026-07-29" }, "receptor": { "ruc": "8-888-8888", "dv": "12" }, "items": [ { "descripcion": "Return", "cantidad": 1, "precioUnitario": 40 } ]}Cancel an FE
Section titled “Cancel an FE”Node: SFEP: Cancel FE. Cancels an FE by its CUFE (with a mandatory reason), through the PAC.
Printable rendering (QR)
Section titled “Printable rendering (QR)”Node: SFEP: Rendering / QR. Generates the printable CAFE in HTML (exportable to PDF), with the CUFE and the QR pointing to the DGI’s public lookup (or the PAC’s CAFE URL).
Error handling
Section titled “Error handling”| Situation | Retryable | What to do |
|---|---|---|
| PAC rejects | No | The node returns the PAC’s error. Fix the FE. |
| Expired certificate | No | Renew the .p12 and update the credential. |
| PAC credentials | No | Check the PAC token/username. |
| Network / Timeout | Yes | Transient; automatically retried. |
See also
Section titled “See also”- Retry queue (DLQ) — how failed executions are retried.
- HTTP node — for services not covered by these nodes.