Invoice recovery API and SDK · running since 2021

Invoice recovery, inside your product

Your users snap a photo of their receipt in your app and your platform receives the CFDI. For neobanks, fintechs, banks and expense software.

The code

Uploading a receipt is one call

You send the photo and tax context to CreateTicket; CFDI recovery runs automatically and you read the result with GetTicketById.

Request · cURL POST
curl -X POST "https://api.fotofacturas.ai/B2B/TicketV1/CreateTicket" \
  -H "Authorization: Bearer $FF_API_TOKEN" \
  -F "image=@ticket.jpg" \
  -F "ticketPaymentMethodId=28" \
  -F "userTaxInfoId=10423" \
  -F "regimenFiscalId=626" \
  -F "usoCfdiId=G03" \
  -F "cardLastFour=1234" \
  -F "userId=3"
Response · JSON 200 OK
{
  "isSuccess": true,
  "message": "Ticket creado exitosamente",
  "data": null
}

Processing is asynchronous: once the invoice is recovered, pdfUrl and xmlUrl fill in on the ticket.

How it works

Three steps to launch

01

Integrate the SDK or the API

A plug and play SDK so the experience lives inside your app, or a REST API if you'd rather build your own. Our team walks you through it.

02

Your user snaps a photo of the receipt

From your product, with your brand. We identify the merchant and handle the invoicing: portal, email or phone.

03

We deliver the CFDI to your platform

PDF and XML valid with the SAT, within 24 hours, ready to show in your app or feed your workflows.

Neobanks, wallets and fintechs; lenders and banks; and expense, accounting and ERP software build with us: a benefit their users reach for every week, not once a year.

Frequently asked questions

Is there an API or SDK to recover receipt invoices (CFDI) in Mexico?
Yes, and it helps to distinguish two categories. Invoicing or stamping APIs act as a PAC and generate the CFDI. Fotofacturas is different: from a photo of the receipt it recovers the invoice the merchant issues and delivers it to your platform in PDF and XML, over a REST API or an SDK, running since 2021. It's the same engine behind the Fotofacturas app, with a 95% recovery success rate and delivery within 24 hours.
What's the difference between the SDK and the API?
The SDK is plug and play: the capture and tracking experience lives inside your app with minimal integration. The REST API lets you build your own experience on top of our recovery engine. Our team helps you choose based on your product and timeline.
What kind of companies is it for?
Platforms whose users generate expenses with receipts: neobanks, wallets, fintechs, lenders, banks, expense management, accounting software or ERPs. If your users lose deductions to un-invoiced receipts, this solves it inside your product.
How proven is the recovery engine?
It's the same engine behind the Fotofacturas app: running since 2021, used by more than 13,000 people and companies, works with every Mexican merchant that issues receipts, and has a 95% recovery success rate with delivery within 24 hours.
How does pricing work and how do I start?
Pricing depends on volume and integration type. Book a demo with our team: we review your case, show you the flow working and put together a proposal for your platform.

Let's design your integration

We review your case, show you the flow working and put together a proposal.