Skip to content

SFEP Panama — Electronic invoicing (DGI, Electronic Invoice)

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.

NodeWhat 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

The nodes use a credential of type SFEP. Create it under Credentials → Add → Panama / DGI (SFEP) with:

FieldDescription
Issuer RUC + DVThe unique registry and its check digit.
PAC + credentialsThe provider (thefactoryhka or generic) and its token/username.
Legal name / BranchIssuer details.
Billing pointPoint code (001).
LocationAddress, township, district, province, coordinates.
EnvironmentTest or Production.
Certificate (.p12)Optional: only if you sign yourself.

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.

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 } ]
}

Node: SFEP: Cancel FE. Cancels an FE by its CUFE (with a mandatory reason), through the PAC.

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).

SituationRetryableWhat to do
PAC rejectsNoThe node returns the PAC’s error. Fix the FE.
Expired certificateNoRenew the .p12 and update the credential.
PAC credentialsNoCheck the PAC token/username.
Network / TimeoutYesTransient; automatically retried.