At the POS/ eCommerce checkout, if the participant data is not available in the Kreesalis database for that client. Billing CRM should send the details thru this API, participants will be registered in Kreesalis.
For registering participants in the Kreesalis application through API,
- A client should be already registered and enable allow API.
- Respective Client Id and Client Secret should be provided in the headers.
- The customer's Full Name, Email, Mobile Number should be provided in the Body request and these values should be unique across all the customers for the client.
You can always provide additional information like address, city, state, Pincode, DOB, anniversary which are optional. When a customer is added, they will get added to the default scheme and category of that client.
Success
This should return 200 OK if the participant is created with all the details
"title": "ok",
"status_code": 0,
"status_message": "The participant has successfully registered."
Error - Scheme is not found
{
"title": "errors",
"status_code": 1,
"status_message": "Scheme not found",
"records": []
}
Try dragging a block from the right to see how easy it is to add more content!
Error - Role is not found
{
"title": "errors",
"status_code": 1,
"status_message": "Role not found",
"records": []
}
Error - Existing Full name, Email, Mobile number
{
"title": "errors",
"status_code": 1,
"status_message": [
"Full name" has already been taken",
"Email has already been taken",
"Mobile number has already been taken"
]
}