Skip to content

SfepAnular

Cancels an Electronic Invoice previously authorized by Panama’s DGI, identifying it by its CUFE. The node sends the cancellation request to the PAC configured in the credential and, if accepted, updates the document’s status to cancelled in Floogos’s database.

Cancellation always requires a reason (minimum 5 characters), which is logged in the document’s local history.

FieldTypeRequiredDescription
credentials_idcredentialsYesSFEP credential
cufetextYesCUFE of the FE to cancel
motivotextareaYesCancellation reason

This module requires an sfep credential type (PAC data, token, environment, etc. per metadata).

{
"cufe": "FE0120000000000001000012320260805...",
"estado": "cancelled",
"motivo": "Error in the receiver's RUC"
}
{
"credentials_id": "cred-sfep-prod",
"cufe": "FE0120000000000001000012320260805...",
"motivo": "Error in the receiver's RUC"
}
  • The reason must be at least 5 characters long; if not sent, the node stops before contacting the PAC.
  • Not every PAC adapter supports cancellation; if the configured provider does not implement it, the node returns an error stating so.
  • Once cancelled, the FE is marked as cancelled in the sfep_documents table and should no longer be used as a reference for credit/debit notes.
  • The DGI sets deadlines for cancelling an FE; past that window the PAC will reject the cancellation.