Fiskaly Delete Invoice
Description
Section titled “Description”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).
Configuration
Section titled “Configuration”| Parameter | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | Fiskaly credential |
| taxpayer_id | text | Yes | UUID of the taxpayer |
| invoice_id | text | Yes | UUID of the draft invoice to delete |
Credentials
Section titled “Credentials”Requires Fiskaly type credentials with:
- api_key: Fiskaly API Key
- api_secret: Fiskaly API Secret
Output
Section titled “Output”{ "nextModule": "siguiente_modulo", "data": { "success": true, "invoice_id": "550e8400-e29b-41d4-a716-446655440000", "message": "Factura borrador 550e8400-e29b-41d4-a716-446655440000 eliminada exitosamente" }}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "credentials_id": "mi-fiskaly", "taxpayer_id": "uuid-contribuyente", "invoice_id": "uuid-factura-borrador"}API Used
Section titled “API Used”- 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
Related Nodes
Section titled “Related Nodes”- FiskalyCreateInvoice - Create/update invoice
- FiskalyGetInvoices - Get invoices