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

Technician Available List API

Returns available technicians for next business days.

GET /api/icare/technicianavailablelist

Full URL

https://poc.eccolabphlebio.com/api/icare/technicianavailablelist

Headers

Authorization: Bearer YOUR_API_TOKEN
Accept: application/json

Response Fields

Field Description
event_type appointment_available
appointment_date Date technician is available
appointment_time Available technician time frame
technician_name Technician name
technician_phone Technician phone number
technician_emp Unique technician employee identifier

Success Response

{
"code":200,
"isSuccess":true,
"technicianavailablelist":[
{
"event_type":"appointment_available",
"appointment_date":"06/26/2026",
"appointment_time":"08:30 AM-03:00 PM",
"technician_name":"PHLEBIO APPTEST",
"technician_phone":"555-222-3333",
"technician_emp":"1234567890"
},
{
"event_type":"appointment_available",
"appointment_date":"06/26/2026",
"appointment_time":"03:00 PM-09:30 PM",
"technician_name":"PHLEBIO APPTEST",
"technician_phone":"555-222-3333",
"technician_emp":"1234567890"
}
]
}

No Technician Found Response

{
"code":404,
"isSuccess":false,
"message":"No technician found.",
"technicianavailablelist":[]
}

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" }
404 Not Found { "code": 404, "isSuccess": false, "message": "No technician found.", "technicianavailablelist": [] }
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"}