Skip to content

Fiskaly Delete Invoice

This module allows deleting invoices that are in draft (DRAFT) state in Fiskaly. Only invoices that have not been signed or sent to the tax authority can be deleted. A DELETE request is made to the Fiskaly API with the taxpayer ID and the invoice ID.

The module is of type hidden (hidden in the main interface).

ParameterTypeRequiredDescription
credentials_idcredentialsYesFiskaly credential
taxpayer_idtextYesUUID of the taxpayer
invoice_idtextYesUUID of the draft invoice to delete

Requires Fiskaly type credentials with:

  • api_key: Fiskaly API Key
  • api_secret: Fiskaly API Secret
{
"nextModule": "siguiente_modulo",
"data": {
"success": true,
"invoice_id": "550e8400-e29b-41d4-a716-446655440000",
"message": "Factura borrador 550e8400-e29b-41d4-a716-446655440000 eliminada exitosamente"
}
}
{
"credentials_id": "mi-fiskaly",
"taxpayer_id": "uuid-contribuyente",
"invoice_id": "uuid-factura-borrador"
}
  • Fiskaly SIGN ES API - DELETE /taxpayers/{taxpayer_id}/invoices/{invoice_id}
  • Only invoices in DRAFT state can be deleted
  • Already signed or submitted invoices cannot be deleted (the API will return an error)
  • Both taxpayer_id and invoice_id are required