iCare Integration API Documentation

Base URL

https://poc.eccolabphlebio.com

Authentication

All API requests must include a Bearer Token in the Authorization header.

Headers

Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Accept: application/json

Endpoint

POST/api/icare/store-data

Full URL

https://poc.eccolabphlebio.com/api/icare/store-data

Example Request Payload

{
    
"emr_order_id": "ORD-A1B2C3",
  "event_type": "appointment_booked",
  "appointment_date": "2026-06-10",
  "appointment_time": "14:30:00",
  "phlebio_appointment_id": "PHL-98765"	
	
	
}

Success Response

{
    "code": 200,
    "isSuccess": true,
    "message": "Successfully saved in jsonrecord table as order_1650.json"
}

Validation Error Response

{
   "code": "EMPTY_REQUEST_BODY",
    "message": "The request body is empty. Please provide a valid JSON payload.",
    "data": null,
    "success": false 
}

Unauthorized Response

{
    "status": false,
    "message": "Unauthorized"
}

Response Codes

HTTP CodeMeaningExample 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"}