1. List Cases (api1/cases)
This method will answer with a collection of iinsight's cases (case oriented data). The collection wil be in JSON format.
The results would be paginated, having a maximum of 100 records per page. An empty collection and a status code 200 response, means that there is no records in the specified page.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| fields |
Contacs fields seperated by comma and no blank spaces. (i.e.: field_name1,field_name2,...) |
Yes |
| status |
Filter by contact status. Options: all, closed, opened, assigned, assigned_open, team |
No |
| sort_col |
Sort by column field name. (i.e.: field_name) |
No |
| sort_type |
Sort column type. Options: asc, desc |
No |
| search_criteria |
Search criteria in json format (i.e.: {"field_name1":"value1","field_name2":"value2,value3"})
For date fields you can send the following comparators: >, >=, <, <=. (e.g. date_opened: "> 10-12-2024" ).
|
No |
| page |
The page number of the paginated results. (i.e.: 1) |
No |
| limit |
The limit amount of items. (i.e.: 1) |
No |
Response
[
{
"case_n": "ACB1",
"case_number":"123", // internal iinsight ID
"case_status_color":"hexacolor",
"case_type": "client/company",
"business_division":"xxxx",
"client_name":"xxxx xxxx, xx",
"assigned_to":"xxxx xxxx",
"service_contract":"xxxx",
"service_contract_id":"123",
"client_first_name":"xxxx",
"client_last_name":"xxxx",
"client_title":"xxxx",
"client_position":"xxxx",
"client_department":"xxxx",
"client_address":"####, xxxx, xxxx, xxxx",
"client_email":"xxxx@mail.com",
"client_phone1":"####",
"client_phone2":"####",
"client_fax":"####",
"client_mobile":"####",
"team":"xxxx",
"condition":"xxxx",
"diagnosed_injury":"xxxx",
"cause":"xxxx",
"condition_date":"##-##-####",
"date_of_birth":"##-##-####",
"date_opened":"##-##-####",
"date_closed":"##-##-####",
"date_of_referral":"##-##-####",
"outcome":"xxxxx",
"outcome_date":"##-##-####",
"case_completed":"Yes/No",
"reason_for_referral":"xxxxx",
"employment_status":"xxxx",
"case_status":"Open/Closed/Re-opened",
"bill_to_first_name":"xxxx",
"bill_to_last_name":"xxxx",
"bill_to_company_name":"xxxx",
"invoice_n":"###",
"client_company_name":"xxxx",
"claim_no":"###",
"employeer":"xxxx",
"pre_injury_hours":"##",
"hours_stated_at_referral":"##",
"current_hours_stated":"##",
"internal_case_no":"###",
"case_plan_start":"##-##-####",
"case_plan_end":"##-##-####",
"case_plan_budget":"$#.##",
"service_provided_to":"xxxx",
"ethnicity":"xxxx",
"language":"xxxx",
"interpreter":"xxx",
"case_last_charge_code":"xxxx",
"prior_status":"xxxx xxxx",
"closure_status":"xxxx xxxx",
"comments":"xxxx xxxx xxxx",
"current_closure_codes":"xxx",
"ccc_date":"##-##-####",
"current_earnings":"$#.##",
"ce_from":"##-##-####",
"current_progress_codes":"xxx",
"cpc_date":"##-##-####",
"date_ceased_work":"##-##-####",
"date_of_notification":"##-##-####",
"ear":"$#.##",
"init_date":"##-##-####",
"init_time":"##:## am/pm",
"con_date":"##-##-####",
"con_time":"##:## am/pm",
"gender":"xxxx",
"last_closure_codes":"xxx",
"lpc_date":"##-##-####",
"lcc_date":"##-##-####",
"last_progress_codes":"xxxx",
"notonial_weekly_earnings":"$#.##",
"outcome_date":"##-##-####",
"primary_psychological_claim":"Yes/No",
"reason_referral_personal":"xxxx",
"reason_referral_work":"xxxx",
"rcategory":"xxxx",
"referral_source":"xxxx",
"case_unbilled":"$#.##",
"task_ref_no": "###",
"business_unit_name":"xxx",
"contract_no":"####",
"case_approved_fund":"$#.##",
"case_plan_remaining":"$#.##",
"case_billed":"$#.##",
"suitable_emp_goal":"xxxx",
"durability_outcome1":"xxxxx",
"durability_outcome2":"xxxxx",
"durability_date1":"##-##-####",
"durability_date2":"##-##-####",
"first_reminder":"Disabled/Enabled/Overdue/Scheduled",
"second_reminder": "Disabled/Enabled/Overdue/Scheduled"
"case_last_cost_date":"##-##-####",
"plan_claim_due_date":"##-##-####",
"postcode":"###",
"referral_id":"###",
"authorised_by":"xxxx",
"participant_approved":"xxxx",
"funding_program":"xxxx",
"case_plan_title":"xxxx",
"case_plan_id":"xx##",
"referral_type":"xxxx",
"client_status_referral":"xxxx",
"can_modify_case":"xxxx",
"can_view_case":"xxxx",
"referrer_company":"xxxx",
"referrer_first_name":"xxxx",
"referrer_last_name":"xxxx",
"case_total_amount":"$#.##",
"case_approved_duration":"#.##",
"case_total_duration":"#.##",
"case_remaining_duration":"#.##",
"enable_case_alert":"Enabled/Disabled",
"alert_message":"xxxxx",
}
]
2. Client Details (api1/cases/client)
This method will answer with a collection of client details. The collection wil be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/client |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/client |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"title": "xxx",
"first_name": "xxx",
"last_name": "xxx",
"date_of_birth": "##-##-####",
"age": "## years"
"phone1": "###",
"phone2": "###",
"fax": "###",
"mobile": "###",
"email": "xxx@xxx.xxx",
"direction_id": "773",
"street": "# xxx xx",
"postcode": "###",
"suburb": "xxx",
"sublocality": "xxx",
"state": "xxx",
"country": "xxx",
"latitude": "###.###",
"longitude": "###.###",
"care_of": "###",
"medicare_no": "X#X#",
"medicare_irn": "xxx",
"medicare_date": "##-##-####"
"primary_physical_claim": "Yes/No",
"primary_psychological_claim": "Yes/No",
"nature_of_condition": "xxx",
"diagnosed_condition": "xxxx",
"cause": "xxx",
"occurred": "##-##-####",
"incident_direction_id": "1",
"incident_street": "xxx",
"incident_postcode": "xxx",
"incident_suburb": "xxx",
"incident_sublocality": "xxx",
"incident_state": "xxx",
"incident_country": "xxx",
"incident_latitude": "xxx",
"incident_longitude": "xxx",
"incident_care_of": "xxx",
"client_current_work_status": "xxxx",
"position": "xxxx",
"department": "xxxx",
"deployment": "xxxx",
"employer_company_id": "##" // internal iinsight ID
"employer_id": "###", // internal iinsight ID
"employer": "xxx",
"employer_segment": "xxx",
"pre_condition_hours": "##:##",
"hours_stated_at_referral": "##:##",
"current_hours_stated": "##:##",
"certified_hours" : "##:##",
"notional_weekly_earnings": "#.##",
"earnings_at_referral": "#.##",
"current_earnings": "#.##",
"current_earnings_from": "##-##-####",
"suitable_employment_goal": "xxx",
"kin_first_name": "xxx",
"kin_last_name": "xxx",
"kin_relationship": "xxx",
"kin_mobile": "###",
}
3. Update Client Details (api1/cases/client/update)
This method will allow to update a client details in iinsight.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/client/update |
PUT |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/client/update |
PUT |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params (As it's PUT method this need to go on the x-www-form-urlencoded)
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| title |
Client's title. |
No |
| first_name |
Client's first name. |
No |
| last_name |
Client's last name. |
No |
| date_of_birth |
Client's date of birth. (i.e.: ##-##-####) |
No |
| phone1 |
Client's phone 1. |
No |
| phone2 |
Client's phone 2. |
No |
| fax |
Client's fax. |
No |
| mobile |
Client's mobile. |
No |
| email |
Client's email. (i.e.: xx@xx.xx) |
No |
| street |
Client's street. |
No |
| postcode |
Client's postcode. |
No |
| suburb |
Client's suburb. |
No |
| sublocality |
Client's sublocality. |
No |
| state |
Client's state. |
No |
| country |
Client's country. |
No |
| latitude |
Client's latitude<. /td>
| No |
| longitude |
Client's longitude. |
No |
| care_of |
Client's case of. |
No |
| medicare_no |
Client's medicare number. |
No |
| medicare_irn |
Client's medicare individual reference number. |
No |
| medicare_date |
Client's medicare expiry date. |
No |
| primary_physical_claim |
Client's primary physical claim. |
No |
| primary_psychological_claim |
Client's primary psychological claim. |
No |
| nature_of_condition |
Client's nature of condition. |
No |
| diagnosed_condition |
Client's diagnosed condition. |
No |
| cause |
Cause. |
No |
| occurred |
Date ocurred. (i.e.: ##-##-####) |
No |
| incident_street |
Incident street. |
No |
| incident_postcode |
Incident postcode. |
No |
| incident_suburb |
Incident suburb. |
No |
| incident_sublocality |
Incident sublocality. |
No |
| incident_state |
Incident state. |
No |
| incident_country |
Incident country. |
No |
| incident_latitude |
Incident latitude. |
No |
| incident_longitude |
Incident longitude. |
No |
| incident_care_of |
Incident care of. |
No |
| client_current_work_status |
Client's current work status. |
No |
| position |
Client's position. |
No |
| department |
Client's department. |
No |
| deployment |
Client's deployment. |
No |
| employer_id |
Contact ID. (i.e.: 1) |
No |
| employer_segment |
Contact segment. |
No |
| pre_condition_hours |
Pre condition hours. (i.e.: ##:##) |
No |
| hours_stated_at_referral |
Hours stated at referral. (i.e.: ##:##) |
No |
| current_hours_stated |
Current hours stated. (i.e.: ##:##) |
No |
| certified_hours |
Certified hours. (i.e.: ##:##) |
No |
| notional_weekly_earnings |
Notional weekly earnings. (i.e.: #.##) |
No |
| earnings_at_referral |
Earnings at referral. (i.e.: #.##) |
No |
| current_earnings |
Current earnings. (i.e.: #.##) |
No |
| current_earnings_from |
Current earnings date. (i.e.: ##-##-####) |
No |
| suitable_employment_goal |
Suitable employment goal. |
No |
| kin_first_name |
Kin first name. |
No |
| kin_last_name |
Kin last name. |
No |
| kin_relationship |
Kin relationship. |
No |
| kin_mobile |
Kin Mobile. |
No |
| custom_fields |
An array of Custom fields in JSON format. (i.e.: [{"field":"custom_field_details.text_1_01","value":"test"}, {"field":"custom_field_details.text_1_02","value":"test2"}]) |
No |
Response
{
"response": "Client details updated",
"case_id": "#"
}
4. List client's certified hours (api1/cases/client/certified_hours)
This method will answer with a collection of client's certified hours. The collection wil be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/client/certified_hours |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/client/certified_hours |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
[
{
"date": "##-##-####",
"old_value": "##:##",
"new_value": "##:##"
},
{
"date": "##-##-####",
"old_value": "##:##",
"new_value": "##:##"
},
]
5. Case details (api1/cases/details)
This method will answer with a collection of case details. The collection wil be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/details |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/details |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"case_number": "2",
"case_n": "1094",
"office_id": "1",
"prefix": "Nat",
"reason_for_referral": "test23",
"referral_category": "test",
"referrer_id": "736",
"referrer": "Testing1",
"referrer_company_id": "0",
"referral_id": "123",
"referral_type": "test",
"referred_on": "12-10-2010",
"acceptance_date": "10-10-2010",
"delay_to_commencement": "test",
"client_status_prior_to_referral": "test",
"client_status_referral": "test",
"client_status_at_case_closure": "test2",
"referral_source": "test",
"date_ceased_work": "10-10-2010",
"last_progress_codes": "test233",
"last_progress_code_date": "12-10-2014",
"current_progress_codes": "qweqw",
"current_progress_codes_date": "12-10-2015",
"last_closure_codes": "test2",
"last_closure_codes_date": "11-10-2010",
"current_closure_codes": "CG",
"current_closure_codes_date": "11-10-2010",
"case_status": "Closed",
"risk_category": "test123",
"date_closed": "15-11-2024",
"case_duration": "5104",
"bill_to_id": "713",
"bill_to": ",",
"bill_to_company_id": "299",
"date_opened": "25-11-2010",
"date_reopened": "",
"date_of_notification": "08-11-2010",
"internal_case_no": "",
"biller_code": "",
"claim_no": "55555",
"participant_no": "55555",
"business_unit_name": "asdf",
"task_ref_no": "asd",
"contract_no": "",
"outcome": "Assessment Only",
"durability_outcome1": "test2",
"durability_date1": "10-10-2012",
"durability_outcome2": "Program completed, no return to wor",
"durability_date2": "1423616400",
"durability_reminder1": "No",
"durability_reminder2": "No",
"date_suspended": "",
"assigned_to_id": "132",
"assigned_to": "Hans Svane",
"service_contract_id": "35",
"service_contract": "Nat:Workcover",
"additional_referral_particulars": "Test AR",
"team_id": "0",
"team": null,
"revenue_centre_id": "1",
"revenue_centre": "Burns (right foot)",
"template_id": "94",
"template": "4 client test NSW v2",
"letterhead_id": "19",
"letterhead": "bogan Test",
"plan_claim_due_date": "10-10-2010",
"comments": "<berich/><p style='margin-bottom:0px;margin-top:0px;padding-bottom:0px;padding-top:0px;'>1231 sdf</p>
<p style='margin-bottom:0px;margin-top:0px;padding-bottom:0px;padding-top:0px;'><br>
</p><p style='margin-bottom:0px;margin-top:0px;padding-bottom:0px;padding-top:0px;'>header</p>"
"category_durability_enabled1": "No",
"category_durability_enabled2": "No",
"purchase_order": "10 PO Numbers",
"purchase_order_id": 0,
"show_revenue_centre": "Yes"
}
6. Case outcomes (api1/cases/outcomes)
This method will answer with a collection of case outcomes. The collection wil be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/outcomes |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/outcomes |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
[
{
"id": "126", //internal iinsight ID
"name": "xxxx"
},
{
"id": "594",
"name": "xxxx"
}
]
7. Update Status or Open/Close Case (api1/cases/status)
This method will allow to close a case in iinsight.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/status |
POST |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/status |
POST |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| case_status |
A new status for case. e.g. "Open".
This value could re-open/close a case. Please see the following use cases:
1. Closing a Case: If your case is not closed yet and you send the "Closed" status. It will try to close the case.
- You need to send additional fields: date_closed, case_completed, outcome, durability_reminder1, durability_reminder2.
2. Re-opening a Case: If your case is closed and you send another status different of "Closed". It will try to re-open the case.
- You need to send additional fields: reopen_mode.
3. Simple Change Status: If your case is not closed and send any status different to "Closed". It simply will perform a status change.
|
Yes |
| date_closed |
Date closed. (i.e.: ##-##-####) |
Conditional for Close |
| case_completed |
Case completed. (Yes/No) |
Conditional for Close |
| outcome |
Case Outcome. |
Conditional for Close |
| durability_reminder1 |
Durability reminder 1. (Yes/No) |
Conditional for Close |
| durability_reminder2 |
Durability reminder 2. (Yes/No) |
Conditional for Close |
| reopen_mode |
Re-open mode value. (create_new / use_existing)
- create_new: Will create a new case from current.
- use_existing: Will re-open the current case.
|
Conditional for Re-open |
Responses
Simple Change Status
{
"case_id": "419",
"case_status": "My Status"
}
Re-open creating a new case
{
"case_id": "419",
"case_status": "Closed",
"new_case_id": "655",
"new_case_status": "Open"
}
Closing a case
{
"case_id": "419",
"case_status": "Closed"
}
8. Update Case Details (api1/cases/details/update)
This method will allow to close a case in iinsight.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/details/update |
PUT |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/details/update |
PUT |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params (As it's PUT method this need to go on the x-www-form-urlencoded)
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| reason_for_referral |
Reason for Referral. (i.e.: xxx) |
No |
| referral_category |
Referral Category. (i.e.: xxx) |
No |
| referrer_id |
Referrer ID. (i.e.: 1) |
No |
| referral_id |
Referral ID. (i.e.: 1) |
No |
| referral_type |
Referral type. (i.e.: xxx) |
No |
| referred_on |
Referral date. (i.e.: ##-##-####) |
No |
| acceptance_date |
Acceotance Date. (i.e.: ##-##-####) |
No |
| delay_to_commencement |
Delay to commencement. (i.e.: xxx) |
No |
| client_status_prior_to_referral |
Client status prior to referral. (i.e.: xxx) |
No |
| client_status_referral |
Client status referral. (i.e.: xxx) |
No |
| client_status_at_case_closure |
Client status at case closure. (i.e.: xxx) |
No |
| referral_source |
Referral Source. (i.e.: xxx) |
No |
| date_ceased_work |
Date ceased work. (i.e.: ##-##-####) |
No |
| date_suspended |
Suspended date. (i.e.: ##-##-####) |
No |
| current_progress_codes |
Current progress codes. (i.e.: xxx) |
No |
| current_progress_codes_date |
Current progress codes Date. (i.e.: ##-##-####) |
No |
| current_closure_codes |
Current closure codes. (i.e.: xxx) |
No |
| current_progress_codes_date |
Current closure codes Date. (i.e.: ##-##-####) |
No |
| risk_category |
Risk category. (i.e.: xxx) |
No |
| bill_to_id |
Bill to ID. (i.e.: 1) |
No |
| date_opened |
Date opened. (i.e.: ##-##-####) |
No |
| date_of_notification |
Date of notification. (i.e.: ##-##-####) |
No |
| internal_case_no |
Internal case number. (i.e.: xxx) |
No |
| biller_code |
Biller code. (i.e.: xxx) |
No |
| claim_no |
Claim number. (i.e.: xxx) |
No |
| participant_no |
Participant number. (i.e.: xxx) |
No |
| business_unit_name |
Business unit name. (i.e.: xxx) |
No |
| task_ref_no |
Task ref number. (i.e.: xxx) |
No |
| contract_no |
Contract number. (i.e.: xxx) |
No |
| additional_referral_particulars |
Additional Referral Particulars. (i.e.: xxx) |
No |
| team_id |
Team ID. (i.e.: 1) |
No |
| plan_claim_due_date |
Plan Claim due Date. (i.e.: ##-##-####) |
No |
| comments |
Comments. (i.e.: xxx) |
No |
| durability_outcome1 |
Durability Outcome 1. (i.e.: xxx) |
No |
| durability_outcome2 |
Durability Outcome 2. (i.e.: xxx) |
No |
| durability_date1 |
Durability date 1. (i.e.: ##-##-####) |
No |
| durability_date2 |
Durability date 1. (i.e.: ##-##-####) |
No |
| durability_reminder1 |
Durability reminder 1. (Options: Yes|No) |
No |
| durability_reminder2 |
Durability reminder 1. (Options: Yes|No) |
No |
| revenue_centre_id |
Revenue Centre ID. (i.e.: 1) |
No |
| template_id |
Invoice template ID. (i.e.: 1) |
No |
| letterhead_id |
Letterhead ID. (i.e.: 1) |
No |
| custom_fields |
An array of Custom fields in JSON format. (i.e.: [{"field":"custom_field_details.text_1_01","value":"test"}, {"field":"custom_field_details.text_1_02","value":"test2"}]) |
No |
Response
{
"response": "Case Details updated",
"case_id": "3"
}
9. List service contracts (api1/cases/service_contracts)
This method will answer with a collection of service contracts. The collection wil be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/service_contracts |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/service_contracts |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| business_division_id |
Business division ID. (i.e.: 1) |
No |
| search |
Name of the service contract. |
No |
| page |
Page. (i.e.: 1) |
No |
| limit |
Limit. (i.e.: 1) |
No |
Response
[
{
"id": "174", //internal iinsight ID
"name": "xxx"
},
{
"id": "374",
"name": "xxx"
},
]
10. Update service contract (api1/cases/service_contracts/update)
This method will allow to update a case service contract.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/service_contracts/update |
PUT |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/service_contracts/update |
PUT |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params (As it's PUT method this need to go on the x-www-form-urlencoded)
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| service_contract_id |
Service contract id. (i.e.: 1) |
Yes |
Response
{
"respond": "Case Service Contract Updated.",
"case_id": "174",
"service_contract_id": "11"
}
11. Assign to case (api1/cases/assign)
This method will answer allow to assign a user to a case.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/assign |
POST |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/assign |
POST |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| user_id |
User ID. (i.e.: 1) |
Yes |
| team_id |
Team ID. (i.e.: 1) |
Yes |
Response
{
"respond": "User assinged to Case",
"case_id": "2",
"user_id": "172",
"team_id": "4228"
}
12. Case additional information (api1/cases/additional)
This method will answer of iinsight case addtional information.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/additional |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/additional |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"reason_for_referral_personal": "xxx",
"reason_for_referral_work": "xxx",
"doctor": "xxx",
"doctor_prov_no": "xxx",
"item": "xxx",
"ethnicity": "xxx",
"language": "xxx",
"interpreter": "xxx",
"gender": "xxx",
"age": "##",
"initial_contact_date": "dd-mm-yyyy",
"initial_contact_time": "hh:mm am/pm",
"appointment_date": "dd-mm-yyyy",
"appointment_time": "hh:mm am/pm",
"follow_up_date": "dd-mm-yyyy",
"follow_up_time": "hh:mm am/pm",
"authorised_by": "xxx",
"participant_approved": "xxx",
"funding_program": "xxx",
"street": "xxx",
"postcode": "xxx",
"suburb": "xxx",
"sublocality": "xxx",
"state": "xxx",
"country": "xxx",
"latitude": "##.##",
"longitude": "##.##",
"care_of": "xxx",
}
13. Update Case additional information (api1/cases/additional/update)
This method will allow to update case additional information.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/additional/update |
PUT |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/additional/update |
PUT |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params (As it's PUT method this need to go on the x-www-form-urlencoded)
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| reason_for_referral_personal |
Reason for referral (personal). (i.e.: Anxiety Counselling) |
No |
| doctor |
Doctor name. (i.e.: Generic) |
No |
| doctor_prov_no |
Doctor's provider number. (i.e.: 1) |
No |
| item |
Item. (i.e.: generic) |
No |
| ethnicity |
Client's Ethnicity. (i.e.: Caucasian) |
No |
| language |
Client's prefered language. (i.e.: Spanish) |
No |
| interpreter |
Interpreter required. (i.e.: Yes) |
No |
| gender |
Client's gender. (i.e.: Male) |
No |
| age |
Age range. (i.e.: 1) |
No |
| initial_contact_date |
Initial contact date. (i.e.: dd-mm-yyyy) |
No |
| initial_contact_time |
Initial contact time. (i.e.: hh:mm am/pm) |
No |
| appointment_date |
Appointment date. (i.e.: dd-mm-yyyy) |
No |
| appointment_time |
Appointment time. (i.e.: hh:mm am/pm) |
No |
| follow_up_date |
Follow up contact date. (i.e.: dd-mm-yyyy) |
No |
| follow_up_time |
Follow up contact time. (i.e.: hh:mm am/pm) |
No |
| authorised_by |
Bulk file report authorised by. (i.e.: generic) |
No |
| funding_program |
Funding program. (i.e.: generic) |
No |
| participant_approved |
Participant approved. (i.e.: generic) |
No |
| stree |
street (i.e.: 1) |
Client street address. (i.e.: 606 Liverpool Road) |
| postcode |
Client postcode address. (i.e.: 2136) |
No |
| suburb |
Client suburb address. (i.e.: generic) |
No |
| sublocality |
Client sublocality address. (i.e.: Municipality of Strathfield) |
No |
| state |
Client state address. (i.e.: New South Wales) |
No |
| country |
Client country address. (i.e.: Sydney) |
No |
| latitude |
Client latitude address. (i.e.: 1) |
No |
| longitude |
Client longitude address. (i.e.: 1) |
No |
| care_of |
Care of address (i.e.: Generic) |
No |
| custom_fields |
An array of Custom fields in JSON format. (i.e.: [{"field":"custom_field_details.text_1_01","value":"test"}, {"field":"custom_field_details.text_1_02","value":"test2"}]) |
No |
Response
{
"respond": "Case additional information Updated.",
"case_id": "2"
}
14. Company case details (api1/cases/company)
This method will answer allow with a collection of Company Case details. The collection wil be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/company |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/company |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"company": "xxx",
"title": "xx",
"first_name": "xxx",
"last_name": "xxx",
"service_provided": "xxx",
"position": "xxx",
"department": "xxx",
"deployment": "xxx",
"phone1": "###",
"phone2": "###",
"fax": "###",
"mobile": "###",
"email": "###",
"direction_id" : "2",
"street": "# xxx xxx",
"postcode": "###",
"suburb": "xxx",
"sublocality": xxx,
"state": "xxx",
"country": "xxx",
"latitude": "###",
"longitude": "###",
"care_of": "xxx"
}
15. Update Company case details (api1/cases/company/update)
This method will allow to update Company Case details.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/company/update |
PUT |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/company/update |
PUT |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params (As it's PUT method this need to go on the x-www-form-urlencoded)
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
| company |
Company name. (i.e.: Remmmington) |
No |
| title |
Client title. (i.e.: Mr) |
No |
| first_name |
Client first name. (i.e.: Jenny) |
No |
| last_name |
Client last name. (i.e.: Generic) |
No |
| service_provided |
Services provided to. (i.e.: Generic) |
No |
| position |
Client position. (i.e.: Accounts) |
No |
| deployment |
Deployment/Assignment. (i.e.: Generic) |
No |
| phone1 |
Client phone 1. (i.e.: 123) |
No |
| phone2 |
Client phone 2. (i.e.: 123) |
No |
| fax |
Client fax. (i.e.: 123) |
No |
| mobile |
Client mobile. (i.e.: 123) |
No |
| email |
Client email. (i.e.: generic@mail.com) |
No |
| street |
Street (i.e.: 1) |
Client street address. (i.e.: 606 Liverpool Road) |
| postcode |
Client postcode address. (i.e.: 2136) |
No |
| suburb |
Client suburb address. (i.e.: generic) |
No |
| sublocality |
Client sublocality address. (i.e.: Municipality of Strathfield) |
No |
| state |
Client state address. (i.e.: New South Wales) |
No |
| country |
Client country address. (i.e.: Sydney) |
No |
| latitude |
Client latitude address. (i.e.: 1) |
No |
| longitude |
Client longitude address. (i.e.: 1) |
No |
| care_of |
Care of address (i.e.: Generic) |
No |
| custom_fields |
An array of Custom fields in JSON format. (i.e.: [{"field":"custom_field_details.text_1_01","value":"test"}, {"field":"custom_field_details.text_1_02","value":"test2"}]) |
No |
Response
{
"respond": "Company case udpated",
"case_id": "25"
}
16. Check case n (api1/cases/check_case_n)
This method will answer allow to check if the giving case N exist or not for that business division.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/check_case_n |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/check_case_n |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| business_division |
Business division ID. (i.e.: 1) |
Yes |
| case_n |
Case no. (i.e.: 1) |
Yes |
Response
{
"respond": "Case No already exist || Case No does not exist",
"case_n": "25"
}
17. Get max case n (api1/cases/max_case_n)
This method will answer with max case No + 1 of a Business division.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/max_case_n |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/max_case_n |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| business_division |
Business division ID. (i.e.: 1) |
Yes |
Response
{
"respond": "Max case n",
"case_n": "25"
}
18. List Business Divisions (api1/cases/business_divisions)
This method will answer a collection of business divisions.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/business_divisions |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/business_divisions |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| search |
Name of the business division. |
No |
| page |
Page. (i.e.: 1) |
No |
| limit |
Limit. (i.e.: 1) |
No |
Response
[
{
"id": "174", //internal iinsight ID
"name": "xxx"
},
{
"id": "374",
"name": "xxx"
},
]
19. List Invoice Templates (api1/cases/invoice_templates)
This method will answer a collection of invoice templates.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/invoice_templates |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/invoice_templates |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| search |
Name of the invoice templates. |
No |
| page |
Page. (i.e.: 1) |
No |
| limit |
Limit. (i.e.: 1) |
No |
Response
[
{
"id": "174", //internal iinsight ID
"name": "xxx"
},
{
"id": "374",
"name": "xxx"
},
]
20. New client Case (api1/cases/new_client)
This method will allow to create a new client/person case.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/new_client |
POST |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/new_client |
POST |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_type |
The case Type. (1.- Person, 2.- Company) |
Yes |
| business_division_id |
Business division ID. (i.e.: 1) |
Yes |
| service_contract_id |
Service contract ID. (i.e.: 1) |
Yes |
| finance_template_id |
Finance template ID. (i.e.: 1) |
Yes |
| title |
Client's title. (i.e.: Mr.) |
No |
| first_name |
Client's first name. (i.e.: James.)
Required if case_type = 1
|
Conditional |
| last_name |
Client's last name. (i.e.: Jackson.)
Required if case_type = 1
|
Conditional |
| company_name |
The company Name
Required if case_type = 2
|
Conditional |
| street |
Client's street address. (i.e.: Ocean St.) |
No |
| postcode |
Client's postcode address. (i.e.: 2000) |
No |
| mmm_classification |
Client's mmm_classification address. (i.e.: 1) |
No |
| suburb |
Client's suburb address. (i.e.: Sydney) |
No |
| sublocality |
Client's sublocality address. (i.e.: City of Sydney) |
No |
| state |
Client's state address. (i.e.: New South Wales) |
No |
| country |
Client's country address. (i.e.: Australia) |
No |
| latitude |
Client's latitude address. (i.e.: -10.10) |
No |
| longitude |
Client's longitude address. (i.e.: 10.10) |
No |
| care_of |
Client's care of address. (i.e.: Generic) |
No |
| email |
Client's email. (i.e.: name@google.com) |
No |
| phone1 |
Client's phone 1. (i.e.: 1234) |
No |
| phone2 |
Client's phone 2. (i.e.: 1234) |
No |
| fax |
Client's fax. (i.e.: 1234) |
No |
| mobile |
Client's mobile. (i.e.: 1234) |
No |
| primary_physical_claim |
Client's primary physical claim. (Options: Yes/No) |
No |
| primary_psychological_claim |
Client's primary psychological claim. (Options: Yes/No) |
No |
| nature_of_injury |
Client's nature of injury. (i.e.: Accident) |
No |
| cause |
Client's cause of injury. (i.e.: Fall) |
No |
| date_ocurred |
Client's date of injury. (i.e.: dd-mm-yyyy) |
No |
| date_of_birth |
Client's date of birth. (i.e.: dd-mm-yyyy) |
No |
| kin_first_name |
Kin's first name. (i.e.: Jack) |
No |
| kin_last_name |
Kin's last name. (i.e.: Black) |
No |
| kin_relationship |
Kin's relationship. (i.e.: Brother) |
No |
| kin_phone |
Kin's phone. (i.e.: 12345) |
No |
| kin_mobile |
Kin's mobile. (i.e.: 12345) |
No |
| kin_email |
Kin's email. (i.e.: name@mail.con) |
No |
| client_current_work_status |
Client's current work status. (i.e.: Employed) |
No |
| position |
Client's position. (i.e.: Accounts) |
No |
| department |
Client's department. (i.e.: Accounts) |
No |
| employer_segment |
Client's employer segment. (i.e.: Generic) |
No |
| reason_for_referral |
Reason for referral. (i.e.: General Counselling) |
No |
| reason_for_referral_personal |
Personal reason for referral. (i.e.: General Counselling) |
No |
| reason_for_referral_work |
Work reason for referral. (i.e.: General Injury) |
No |
| referred_on |
Date of referral. (i.e.: dd-mm-yyyy) |
No |
| acceptance_date |
Date of acceptance. (i.e.: dd-mm-yyyy) |
No |
| delay_to_commencement |
Delay to commencement. (i.e.: < 2 months) |
No |
| date_ceased_work |
Date of ceased work. (i.e.: dd-mm-yyyy) |
No |
| client_status_prior_to_referral |
Client status prior to referral. (i.e.: Employed) |
No |
| client_status_at_case_closure |
Client status at case closure. (i.e.: Employed) |
No |
| referral_source |
Source of referral. (i.e.: Insurer) |
No |
| claim_no |
Claim number. (i.e.: 1234) |
No |
| internal_case_no |
Internal case number. (i.e.: 1234) |
No |
| business_unit_name |
Business unit name. (i.e.: Generic) |
No |
| contract_no |
Contract number. (i.e.: 1234) |
No |
| task_ref_no |
Task ref number. (i.e.: 1234) |
No |
| date_opened |
Date opened. (i.e.: dd-mm-yyyy) |
No |
| date_of_notification |
Date of notification. (i.e.: dd-mm-yyyy) |
No |
| case_status |
Case status. (i.e.: Open) |
Yes |
| risk_category |
Risk category. (i.e.: Generic) |
No |
| team_id |
User's team ID. (i.e.: 1) |
Yes |
| case_n |
Business division case ID (i.e.: 1) |
No |
| assigned_to |
User assigned to case ID. (i.e.: 1) |
Yes |
| comments |
Case comments. |
No |
Response
{
"response": "Case created successfully",
"case_number": 1126,
"case_n": "NSW2328"
}
21. Get Case Alert (api1/cases/alert)
This method will answer a collection of case alert data.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/alert |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/alert |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"enable_case_alert": "Yes/No",
"alert_message": "This is an Alert",
"show_alert_in_case_list": "Yes/No",
"show_alert_in_timesheets": "Yes/No",
"show_alert_in_appointments": "Yes/No",
"show_alert_in_mobileapp": "Yes/No",
"is_disabled_for_today": "Yes/No"
}
22. Disable Case Alert (api1/cases/alert/disable)
This method allows to disable a case Alert for the user.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/alert/disable |
POST |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/alert/disable |
POST |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| case_id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"response": "Case Alert disabled for today",
"case_id": "2",
"user_id": "210"
}
23. Find Cases Clients (api1/cases/search_by_client_name)
This method will answer with a collection of case clients data accessible for the logged in user. This is a searcher. The collection will be in JSON format.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/search_by_client_name |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/search_by_client_name |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| search |
Search by case client name. (i.e.: John) |
Yes |
Response
[
{
"id": "607", // internal IInsight ID
"case_number": "NSW169",
"client_name": "adjustment test",
"case_type": "1",
"client_first_name": "adjustment",
"client_last_name": "test",
"client_company_name": "",
"suburb": "",
"date_opened": "1704801600",
"date_of_birth": null,
"case_status": "Open",
"description": "Centrelink",
"prefix": "NSW",
"assigned_to": "admin admin"
},
{
"id": "21",
"case_number": "NSW11",
"client_name": "Alexa Drummond",
"case_type": "1",
"client_first_name": "Alexa",
"client_last_name": "Drummond",
"client_company_name": "",
"suburb": "Balmain",
"date_opened": "1294621200",
"date_of_birth": "42861600",
"case_status": "Open",
"description": "Xchanging",
"prefix": "NSW",
"assigned_to": "Renato Parletta"
},
{
"id": "18",
"case_number": "VIC5",
"client_name": "Anita11 Allen",
"case_type": "1",
"client_first_name": "Anita11",
"client_last_name": "Allen",
"client_company_name": "",
"suburb": "Chatswood",
"date_opened": "1291597200",
"date_of_birth": "626317200",
"case_status": "Open",
"description": "ADFRP1",
"prefix": "VIC",
"assigned_to": "Renato Parletta"
},,
]
24. Get Client outstanding (api1/cases/client_outstanding)
This method will answer with client's outstanding.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/client_outstanding |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/client_outstanding |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| id |
Case ID. (i.e.: 1) |
Yes |
Response
{
"client_outstanding": "123.80"
}
25. List Letterheads (api1/cases/letterheads)
This method will answer a collection of Letterheads.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/letterheads |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/letterheads |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| search |
Name of the letterhead. |
No |
| page |
Page. (i.e.: 1) |
No |
| limit |
Limit. (i.e.: 1) |
No |
26. List Finance Templates (api1/cases/finance_templates)
This method will answer a collection of finance templates.
URL
| Server |
URL |
HTTP type |
| UAT |
https://api-uk-uat.iinsightonline.com/api1/cases/finance_templates |
GET |
| PRODUCTION |
https://api-uk.iinsightonline.com/api1/cases/finance_templates |
GET |
Authorization
| Parameter |
Value |
Mandatory |
| Type |
Bearer Token |
Yes |
| Token |
The token is generated using the /auth/login method |
Yes |
Query Params
| Parameter |
Value |
Mandatory |
| search |
Name of the invoice templates. |
No |
| page |
Page. (i.e.: 1) |
No |
| limit |
Limit. (i.e.: 1) |
No |
Response
[
{
"id": "174", //internal iinsight ID
"name": "xxx"
},
{
"id": "374",
"name": "xxx"
},
]