Welcome to Katlai CRM / ERP documentation. This document guides users on how to setup and use this software.
Endpoint: katlai.aizent.com/device/switch
Description: This endpoint is used to handle device check-in and check-out events.
Parameters:
serial (string): The unique serial number of the device (e.g., dev-0001).status (string): The status of the device, which can be one of the following:
checkincheckouttimeintimeoutscent (string): Scent or element (e.g., Wood).start_time (time): Schedule Start Time (e.g., 08:00:00).end_time (time): Schedule End Time (e.g., 09:00:00).These parameters should exist in the database: 1) serial, 2) scent, 3) schedules
Example Request:
Example Response:
Endpoint: https://katlai.aizent.com/api/customers
Description: This endpoint is used to create or update customer information in the system.
Request Method: POST
Request Body Parameters:
name (string, optional): The full name of the customer.email (string, required): The email address of the customer. Must be a valid email format.phone (string, optional): The customer's phone number.gender (char, optional): The gender of the customer. Valid values: m (male), f (female).age (integer, optional): The age of the customer.birthdate (string, optional): The birthdate of the customer in YYYY-MM-DD format.preferences (JSON, optional): A JSON object containing the customer's preferences.Example Request:
POST https://katlai.aizent.com/api/customers
Content-Type: application/json
{
"name": "John Doe",
"email": "johndoe@example.com",
"phone": "1234567890",
"gender": "m",
"age": 30,
"birthdate": "1994-05-15",
"preferences": {
"language": "en",
"newsletter": true
}
}
Success Response:
Status Code: 200 OK
{
"message": "Customer setup successful",
"customer_id": 12345,
"data": {
"name": "John Doe",
"email": "johndoe@example.com",
"phone": "1234567890",
"gender": "m",
"age": 30,
"birthdate": "1994-05-15",
"preferences": {
"language": "en",
"newsletter": true
}
}
}
Validation Failure Response:
Status Code: 422 Unprocessable Entity
{
"error": "Validation failed",
"details": {
"email": [
"The email field is required."
]
}
}
Tell your chatbot partner to simulate the control of a sample device with serial number = HKAP0100000001 of type aromapodpro. The workflow steps we believe is as follows:
Let us know once this is accomplished so we can check our ERP database if data has been received. Thank you.
Observe Data Integrity and Privacy
Contact the System Administrator for System Errors
Practice Effective Data Entry and Management
Document System Changes
Use Workflow Automation Carefully
Use Reliable Internet Connections