Documentation & Specs
Developer & Architecture Resources
Everything you need to evaluate, integrate, and deploy ResolveAI with PayPal Sandbox and PostgreSQL.
REST API Specification
Explore the complete OpenAPI 3.0 contract powering our Next.js frontend and Express 5 backend.
View EndpointsPayPal Sandbox Setup
Step-by-step instructions for webhook URL registration, sandbox OAuth credentials, and order captures.
Read Sandbox GuideOpen Source Repository
Built under the permissive MIT License for the PayPal AI Hackathon 2026.
Inspect Source on GitHubBackend REST API Contract
Mounted on Express 5 at /api with Zod request validation.
POST/api/auth/login
Authenticate merchant and retrieve JWT Bearer tokenGET/api/merchants/dashboard
Retrieve merchant active disputes, revenue, and KPIsGET/api/disputes
List disputes with pagination, reason, and status filteringGET/api/disputes/:id
Fetch full dispute dossier with matched order and evidencePOST/api/disputes/:id/analyze
Run autonomous Gemini 2.5 Flash investigation pipelinePOST/api/disputes/:id/approve
Record explicit merchant approval (human-in-the-loop gate)POST/api/disputes/:id/submit
Submit contestation package to PayPal Disputes REST APIPOST/api/paypal/webhooks
HMAC signature verified webhook listener for dispute eventsGET/api/audit
Retrieve paginated compliance ledger of all system actionsPayPal Sandbox Configuration
In your PayPal Developer Dashboard under your Sandbox REST App:
- Register your public webhook URL:
https://your-domain/api/paypal/webhooks - Subscribe to:
CUSTOMER.DISPUTE.CREATED,CUSTOMER.DISPUTE.UPDATED, andCUSTOMER.DISPUTE.RESOLVED - Copy the generated
PAYPAL_WEBHOOK_IDinto your.envfile - Set
DEMO_MODE=falseto execute real sandbox dispute submissions, or keep it true for verified offline rehearsals