Connect Haven to ERPNext

Enter your ERPNext server details to enable real-time data sync for properties, bookings, and stories.

🔧 Connection

Enter your Frappe/ERPNext credentials

Not configured

📋 Setup Guide

1
Install ERPNext

Install via bench or use ERPNext cloud

bench init frappe-haven --frappe-branch version-15 bench get-app erpnext --branch version-15 bench new-site haven.local
2
Create API Keys

User → Settings → API Access → Generate Keys

3
Enable CORS

In site_config.json, add your Vercel domain:

{ "allow_cors": "*" }
4
Create Haven DocTypes

Create the following custom DocTypes in ERPNext

🏠 Haven Property

Properties listed on Haven

📅 Haven Booking

Guest reservations

📖 Haven Story

Vietnam travel stories

💰 Haven Pricing Log

AI pricing history

🔌 API Endpoints Used

EndpointAction
GET /api/resource/{dt}List records
GET /api/resource/{dt}/{id}Get single record
POST /api/resource/{dt}Create record
PUT /api/resource/{dt}/{id}Update record
DELETE /api/resource/{dt}/{id}Delete record
POST /api/method/...Custom methods