Unifies customer identities across checkout events where customers may use different email/phone combinations.
Base URL: https://bitespeed-73gh.onrender.com
Identify: POST https://bitespeed-73gh.onrender.com/identify
API Docs: https://bitespeed-73gh.onrender.com/api-docs
-
Install dependencies
npm install
-
Configure environment
cp .env.example .env # Edit .env with your PostgreSQL connection string -
Run database migration
npx prisma migrate dev --name init
-
Generate Prisma client
npx prisma generate
-
Start development server
npm run dev
Request:
{
"email": "doc@future.com",
"phoneNumber": "111111"
}Response:
{
"contact": {
"primaryContactId": 1,
"emails": ["doc@future.com"],
"phoneNumbers": ["111111"],
"secondaryContactIds": []
}
}At least one of email or phoneNumber must be provided.
Health check endpoint.
npm testRequires a test database configured via DATABASE_URL.
- Create a free project at supabase.com
- Copy the PostgreSQL connection string from Settings > Database
- Set
DATABASE_URLin your deployment environment
- Create a new Web Service on render.com
- Connect your repository
- Set build command:
npm install && npx prisma generate && npx prisma migrate deploy && npm run build - Set start command:
npm start - Add
DATABASE_URLenvironment variable