Refugio de Tarapoto Software
From WhatsApp and spreadsheets to a system of its own to sell lots, collect installments and issue SUNAT invoices.
- $5
- a month for the whole system
- 1 click
- to see any customer's lots, installments, invoices and late payments
- SUNAT
- receipts and invoices issued instantly, with the PDF ready to send
- 0
- manual payment reminders: every customer who owes gets their SMS
Where it started
Nobody knew for sure who owed what.
The company sold lots in installments and kept everything in WhatsApp and spreadsheets. There was no place to see which lots were sold, who was up to date or how much came in each month.
With hundreds of customers paying installments and maintenance, payments got lost, collections were forgotten and someone had to rebuild the numbers by hand all the time.
What I built
A custom system for the whole operation of the business.
Customers, lots and installments
One click on a customer shows their lots, payment schedule, invoices and maintenance. Late payments flag themselves, with the days overdue.
Lots
Every lot with its size, price, payment type and status. A sale can be paid in full or in installments, and the schedule builds itself.
Electronic invoices
Each payment can generate its SUNAT-valid receipt or invoice, with its PDF ready to send. If something needs fixing, a credit note voids it.
Stats and reminders
Expected and collected revenue, delinquency and installments, filterable by date. And every day, an automatic SMS to anyone with an installment due or overdue.
Engineering decisions
- 01
SUNAT without an official API
SUNAT offers no public API or test environment. Invoicing goes through an authorized provider, with signed XML and a QR code, and the system renders each document's PDF on the server. Today it issues receipts, invoices and credit notes, and it can work with more than one company.
- 02
Installments, maintenance and prepayments, always in sync
A customer can own several lots, each with its own installment plan and monthly maintenance. If someone pays six months ahead, the system skips those charges. Everything adds up without anyone doing the math by hand.
- 03
SMS reminders that don't annoy
Every day, an automatic SMS to anyone with an installment due or overdue. Behind it there's a queue, a scheduler and a dispatcher: at most one message per customer per day, only at reasonable hours and with pauses between sends. A simulator shows who would get what before anything goes out.
- 04
Cheap to maintain
Optimized queries, memory tuned to the smallest instance and calls to SUNAT and SMS only when needed. Database, backend and automations cost $5 a month in total.
Evolution
- Jun 2025
First version: customers, lots, installments and SUNAT invoices.
- Dec 2025
Stats: expected and collected revenue and delinquency, filterable by date.
- Feb 2026
Automatic monthly maintenance, with prepayments.
- Sep 2026
Automatic SMS reminders, credit notes, multiple companies and a new interface with light and dark themes.
- Oct 2026
Global ⌘K search and a dedicated section for receipts and invoices.
Result
“What you can't measure, you can't improve.”
That's how the owners put it in the first weeks, finally seeing the whole business in one place. Payment tracking, instant invoices and daily reminders replaced the manual work and improved collections.
“We went from tracking everything in spreadsheets to having a system that actually fits how we work. Nicolás took the time to understand our process before writing a single line of code.”
Victor Hugo Abrill Owner of Refugio de Tarapoto Stack
- TypeScript
- React
- Bun
- PostgreSQL
- Supabase
- Railway
- SUNAT
- SMS