https://poc.eccolabphlebio.com
All API requests must include a Bearer Token in the Authorization header.
Authorization: Bearer YOUR_API_TOKEN Content-Type: application/json Accept: application/json
POST/api/icare/store-data
https://poc.eccolabphlebio.com/api/icare/store-data
{
"emr_order_id": "ORD-A1B2C3",
"event_type": "appointment_booked",
"appointment_date": "2026-06-10",
"appointment_time": "14:30:00",
"phlebio_appointment_id": "PHL-98765"
}
{
"code": 200,
"isSuccess": true,
"message": "Successfully saved in jsonrecord table as order_1650.json"
}
{
"code": "EMPTY_REQUEST_BODY",
"message": "The request body is empty. Please provide a valid JSON payload.",
"data": null,
"success": false
}
{
"status": false,
"message": "Unauthorized"
}
| HTTP Code | Meaning | Example Body |
|---|---|---|
| 200 | Successfully processed | {
"code": 200,
"isSuccess": true,
"message": "Successfully saved in jsonrecord table as order_1650.json"
} |
| 400 | Bad request — missing Json data or invalid payload | {
"code": "EMPTY_REQUEST_BODY",
"message": "The request body is empty. Please provide a valid JSON payload.",
"data": null,
"success": false
} |
| 401 | Unauthorized — missing or invalid Bearer token | {
"status": false,
"message": "Unauthorized"
} |
| 422 | Unknown Unprocessable Entity for Invalid input in Json Data Validation/security errors |
{
"code": "INVALID_JSON_PAYLOAD",
"message": "Invalid JSON payload.",
"data": null,
"success": false
}
{
"code": "INVALID_PAYLOAD",
"message": "Invalid input: HTML content is not allowed at Resource",
"data": null,
"success": false
}
{
"code": "INVALID_PAYLOAD",
"message": "Invalid input: Malicious content detected at Resource",
"data": null,
"success": false
}
|
| 500 | Internal server error — retry with exponential backoff | {"success": false, "error": "Internal server error"} |