FaturaDoc: supplier compliance checks before campaign payments

Lead engineer — took over, rebuilt and runs it in production

FaturaDoc screen
5 government certificates checked per supplier
−10k lines of dead code removed

The problem

Before an agency pays the media suppliers of a campaign, someone has to collect each supplier's invoice and declarations and check that its tax and labor certificates (federal, state, municipal, FGTS and labor debts) are valid. Done by hand, that means chasing PDFs, opening government sites one by one and comparing numbers across documents.

FaturaDoc was built to automate this, but I inherited it as an AI product that was not ready for production: the data it showed could not be trusted, and the code carried a lot of dead weight.

What I built

The stack is FastAPI and Celery workers on PostgreSQL, with a React front end.

Key decisions

Results