Guide for API Integration with Popin
Welcome to the integration guide for the Popin! To enable seamless communication between your e-commerce website and our system, you need to provide two APIs:
Please follow the steps below to set up these APIs and integrate them with our system.
To transfer lead details collected through the widget on your website to your system.
https://yourdomain.com/api/leads
).HTTP Method: POST\ Headers:
Content-Type: application/json
Body Example:
{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890"
}
Success Response Example:
{
"status": "success",
"customer_id": "67890"
}
Error Response Example:
{
"status": "error",
"message": "Invalid data format."
}
The customer_id
provided in the success response will be used in the Event Tracking API.
To send event updates for leads (e.g., when a lead opens an email, clicks a link, or makes a purchase).
https://yourdomain.com/api/lead-events
).HTTP Method: POST\ Headers:
Content-Type: application/json
Body Example:
{
"customer_id": "67890",
"event_name": "call_completed",
"event_details": {
"duration": 300,
"url": "https://yourwebsite.com/product/2312"
}
}
Success Response Example:
{
"status": "success",
"message": "Event recorded successfully."
}
Error Response Example:
{
"status": "error",
"message": "Event name not recognized."
}
If you have any questions or need assistance with the integration, please reach out to our support team at [support@popin.to].
We look forward to helping you get started with Popin!