FISCALISTO / API / REFERENCE
Cancel a receipt · Self-invoicing
A sale that didn't happen (a return, a mistake): it can no longer be invoiced nor go into the global invoice. Only while it's pending.
bearerAuthAuthorizationBearer <key>Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.
id*stringThe object's id.
OK.
application/json- response
A sale your buyer can invoice themselves in the issuer's portal (self-invoicing).
id*stringObject identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).
livemode*booleantrue in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.
object*stringWhat kind of object it is («invoice», «customer»…).
issuer*stringThe issuer that sold.
folio*stringThe sale's folio in your system.
code*stringWhat your buyer types in the portal along with the total: the folio and 4 random characters (A123-K7QX). Print it on the ticket or send it with the purchase.
status*stringpending (can be invoiced), invoiced (your buyer invoiced it: the invoice in invoice), global (it went into the period's global invoice) or cancelled.
"pending""invoiced""global""cancelled"url*|The portal page with the ticket's code (c) and total (t): the portal finds it on its own and the buyer only gives their details. Anyone with the link can invoice the ticket: give it only to the buyer (like the printed ticket). You can embed it with fiscalisto.js. null if it is no longer pending.
total*numberWhat was charged, taxes included and without tip.
tip*numberThe tip (it doesn't go on the invoice).
payment_form*stringThe sale's c_FormaPago.
description*stringThe invoice's line item (the first one, if it has several).
product_key*stringThe line item's c_ClaveProdServ (the first one, if it has several).
lines*array<>Its line items, in order: just one if it was recorded without lines. Each with its product (prd_… or null), description, SAT codes, IVA (null if not subject to tax), units and what was charged for it, taxes included.
sold_at*stringWhen it was sold.
date-timeinvoiceable_until*stringThe last day (YYYY-MM-DD) the buyer can invoice it; after that it goes into the global invoice.
invoice*|The invoice (inv_…) your buyer made, or null.
global_invoice*|The global invoice (inv_…) it went into, or null.
invoiced_amount*numberWhat the invoices of a receipt split into several already cover (self-invoicing allows it with split_max), taxes included. 0 if it hasn't been split; a pending receipt above 0 has total - invoiced_amount left to invoice with the same code, and a split invoiced receipt has invoice null.
customer*|Who it was invoiced to, or null.
branch*|The branch (brn_…) where the sale was made, or null (the Matriz). Its invoice is stamped from there and the portal shows its name and logo.
buyer*|Who paid, as the sale's source knows them (the buyer you sent, or the customer of a Stripe payment). It isn't the invoice's recipient (customer).
created_at*|When it was recorded.
The issuer is archived and no longer stamps. Its documents can still be read and canceled.
The account has several issuers and the request doesn't say which: send
issuer(iss_…).The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.
The ticket was already invoiced or included in a global invoice: it can't be canceled.
Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
This key can't use that issuer.
There is no such issuer in the account (or it belongs to the other mode).
There's no object with that id (or it belongs to another issuer or the other mode).
Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.
curl -X DELETE 'https://api.fiscalisto.com/v1/tickets/tkt_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN' \ -H 'Authorization: Bearer fk_test_…'{ "id": "tkt_OufpKqnrvx9p6hW1yQbT3mZr8sKdLx0VeN", "object": "ticket", "livemode": false, "issuer": "iss_OufpKqnrvx9p", "folio": "A1042", "code": "A1042-K7QX", "status": "cancelled", "url": null, "total": 580, "tip": 0, "payment_form": "04", "description": "Consumo de alimentos", "product_key": "90101501", "lines": [ { "product": null, "description": "Consumo de alimentos", "product_key": "90101501", "unit_key": "E48", "iva": "0.16", "local_taxes": [], "ieps": null, "ieps_factor": null, "detail": null, "quantity": 1, "total": 580 } ], "sold_at": "2026-10-24T14:32:00-06:00", "invoiceable_until": "2026-10-31", "invoice": null, "global_invoice": null, "invoiced_amount": 0, "customer": null, "branch": null, "buyer": { "name": "Laura Méndez", "email": "laura@example.com" }, "created_at": "2026-10-24T14:32:05-06:00"}Was this page helpful?
Get a receipt GET
A self-invoicing receipt: whether it was already invoiced (invoice) or went into the global invoice (global_invoice).
Get an issuer's self-invoicing portal GET
The issuer's self-invoicing portal: its address, until when a receipt can be invoiced and how the global invoice is put together.