-
-
rack every step of the recall and refund process with timestamps and transaction status.
-
Upload or paste recall notices and let AI extract the affected product details.
-
Identify product SKUs and recalled lot ranges with highlighted, verifiable evidence from the supplier notice.
-
Prepare sample customer orders and approve sandbox payments to experience the complete workflow
-
Refund only the affected $24.00 item while keeping the remaining order untouched.
-
An intuitive dashboard that helps small retailers turn product recalls into accurate, controlled refunds.
-
Keep unaffected orders untouched, prevent duplicate refunds, and flag uncertain orders for manual review.
Inspiration
When a supplier recalls a batch of products, small online stores face a time-consuming and risky challenge: identifying which customers received the affected products and issuing the correct refunds.
Refunding an entire order unnecessarily costs the merchant money, while refunding too little leaves customers unprotected. Manual processing also creates opportunities for human errors and duplicate refunds.
We built RecallRelay to make product recalls faster, smarter, and safer by combining AI-powered recall notice analysis with automated, precise PayPal refunds.
What it does
RecallRelay transforms supplier recall notices into accurate, item-level PayPal refunds.
- Upload Recall Notice: Merchants paste the supplier's recall announcement into the application.
- AI-Powered Extraction: AI identifies the affected product SKU, recalled lot range, and supporting evidence. It also extracts exact quotations from the notice so merchants can verify the information.
- Automatic Order Classification: The backend checks stored orders and categorizes them into three groups:
- Confirmed: Orders containing recalled product lots.
- Unaffected: Orders containing different lots.
- Uncertain: Orders with missing or unreadable lot information that require human review.
- Merchant Approval: Merchants review the refund plan and explicitly approve the exact refund amount before any transaction takes place.
- Precise PayPal Refunds: Only the recalled items are refunded instead of the entire order.
For example, if a customer paid $68.00 for an order containing multiple products and only one $24.00 product is recalled, RecallRelay refunds exactly $24.00, not the entire $68.00.
The application also prevents duplicate refunds when merchants click Approve multiple times or when requests are retried.
How we built it
We built RecallRelay using a modern full-stack architecture:
- Frontend: React, Vite, TypeScript, and Tailwind CSS for a responsive and intuitive merchant dashboard.
- Backend: Node.js, TypeScript, and Express for API development and business logic.
- Database: SQLite for storing orders, recall records, and refund information.
- Payment Integration: PayPal Sandbox Orders API for creating and capturing demo payments, and Payments API for processing partial refunds.
- AI Integration: A language model extracts structured information from unstructured supplier notices, including SKUs, lot ranges, evidence quotations, ambiguities, and confidence.
A key architectural decision was separating AI-based extraction from financial calculations.
AI understands the recall notice, but deterministic server-side code handles all financial decisions.
Refund amounts are calculated using stored order line items and integer cents. The AI never determines or calculates refund amounts.
Challenges we ran into
- Preventing duplicate refunds: Handling double clicks, repeated API requests, and network timeouts without accidentally issuing multiple refunds required careful idempotency handling.
- Reliable AI extraction: Getting consistent structured JSON responses and ensuring every extracted quotation actually existed in the original recall notice was challenging.
- PayPal integration: Understanding the PayPal Sandbox workflow, including buyer approval, payment capture, and partial refunds, required significant experimentation.
- Financial accuracy: Ensuring that only recalled items were refunded while respecting previous refunds and captured payment limits required strict server-side validation.
- Handling uncertainty: We had to ensure that orders with missing or unreadable lot numbers were never automatically refunded.
Accomplishments that we're proud of
- Built a complete end-to-end recall management workflow, from supplier notice extraction to an actual PayPal Sandbox refund.
- Successfully implemented precise partial refunds instead of unnecessarily refunding entire orders.
- Implemented duplicate-refund protection using unique database constraints and deterministic PayPal request IDs.
- Built an evidence-verification mechanism that allows merchants to validate AI-extracted information directly against the original notice.
- Created a system where AI handles unstructured information while deterministic code protects financial transactions.
- Demonstrated that a complex product recall and refund workflow can be completed in under two minutes.
What we learned
- Idempotency is essential in financial systems: Every payment-related operation must safely handle retries, repeated requests, and unexpected failures.
- AI output must be validated: Even when using structured JSON responses, extracted information needs independent verification before being used in business decisions.
- Separation of responsibilities improves reliability: AI is useful for understanding unstructured text, but financial calculations should remain deterministic and predictable.
- Payment integrations require careful testing: Working with the PayPal Sandbox helped us understand the complete payment lifecycle, from buyer approval to capture and partial refunds.
What's next for RecallRelay
We envision RecallRelay becoming a more complete product recall management platform.
Our future plans include:
- PDF Notice Support: Allow merchants to upload supplier recall notices directly as PDF documents.
- Supplier Email Integration: Automatically detect and process recall announcements from supplier emails.
- Manual Review Dashboard: Provide a dedicated interface for reviewing uncertain orders and making informed decisions.
- Customer Notifications: Automatically notify affected customers about product recalls and issued refunds.
- Multiple Payment Providers: Extend support beyond PayPal to other payment gateways.
- Improved AI Extraction: Enhance extraction accuracy and support more complex recall notices involving multiple products and lot ranges.
Built With
- ai
- api
- artificial
- codex
- css
- express.js
- generative
- intelligence
- node.js
- playwright
- react
- rest
- router
- sandbox
- sqlite
- tailwind
- typescript
- vite
- vitest
- zod