getreport
/getreport
V1.0
Sensitive Data Warning
This API endpoint returns data which could include personally identifiable information (PII), such as names, contact details, or other data elements contained within the case details, classifications, or documents. PII is subject to strict data protection laws (e.g., GDPR, Data Protection Act 2018) and must be handled with the utmost care.
Description
Gets the output of an iCasework ad hoc report that was set up in your system. You can filter and change the report output using the parameters below.
You must pass a value for ReportId
.
You should select a report that has been configured to return XML output, to return data from the report in an expected format.
Request Method
GET
API service endpoints
UAT: https://uat.icasework.com/getreport?db=[youriCaseworkAccount]
eUAT / Production system: https://[youriCaseworkAccount]reports.icasework.com/getreport
Your iCasework account name will be supplied to you by your iCasework Account or Project Manager (see worked example below). Note that the production URL for the GetReport API runs on a specific reporting subdomain that is different to your production URL. So if your production URL was https://exampleco.icasework.com/login then your production reporting subdomain would be https://examplecoreports.icasework.com/getreport. Attempting to access the GetReport API on your main production URL will return an error indicating the problem.
Request Parameters
Parameter | Description | Values | Required value? |
---|---|---|---|
ReportId | The id of the report you wish to return. The
| “50521” | Yes. |
Format | The format for the report output. Default is "xml" | “csv” or “json” or “xml” | No. |
CSVHeader | Specifies whether a comma separated header should be included the data; this will define the column headers if this file is imported. This is only relevant if | “yes” or “true” | No. |
CSVFooter | Specifies a comma separated footer to be placed after the data; this will output the number of rows in the response. This is only relevant if | “yes” or “true” | No. |
CSVFields | Allows the report output to be filtered to only return details from a specific column; the values to use can be obtained from the header that can be included in the response when | “casedetailscomplaint.details” | No. |
CSVDelimitor | Specifies the delimiter character to be used when generating the csv. This is only relevant if | “*” | No. |
Compression | Pass the value "gzip" to compress the output of the report | "gzip" | No. |
Units | Used to override the default report timeframes and defines the unit to be used in conjunction with The start date of the period being queried is equal to:
The end date of the period being queried is equal to:
| “Year to date” or “Month to date” or “Week to date” or “Next weeks” or “Next days“ or “Previous year” or “Previous month” or “Previous quarter” or “Previous financial year” or “Previous municipal year” or “Today” | No. |
periodUnits | Used to override the default report timeframes and defines the unit to be used in conjunction with The start date of the period being queried is equal to:
The end date of the period being queried is equal to:
| “Year to date” or “Month to date” or “Week to date” or “Next weeks” or “Next days“ or “Previous year” or “Previous month” or “Previous quarter” or “Previous financial year” or “Previous municipal year” or “Today” | No. |
Multiples | Used to override the default report timeframes and defines the magnitude to be used in conjunction with | “5” | No. |
periodMultiples | Used to override the default report timeframes and defines the magnitude to be used in conjunction with | “2” | No. |
FromTime | Used to override the default report timeframes. This defines the starting date time of the period being queried and should be in YYYY-MM-DD hh:mm:ss format. This overrides the period’s starting date time as calculated by | “2022-09-21 00:00:01” | No. |
From | Used to override the default report timeframes. This defines the starting date of the period being queried and should be in YYYY-MM-DD format. This will override the value passed for | “2022-09-21” | No. |
periodFrom | Used to override the default report timeframes. This defines the starting date of the period being queried and should be in YYYY-MM-DD format. This will override the value passed for | “2022-09-21” | No. |
UntilTime | Used to override the default report timeframes. This defines the end date time of the period being queried and should be in YYYY-MM-DD hh:mm:ss format. This overrides the period’s starting date time as calculated by | “2022-09-21 23:59:59” | No. |
Until | Used to override the default report timeframes. This defines the end date of the period being queried and should be in YYYY-MM-DD format. This overrides the period’s starting date as calculated by | “2022-09-21” | No. |
periodUntil | Used to override the default report timeframes. This defines the end date of the period being queried and should be in YYYY-MM-DD format. This overrides the period’s starting date as calculated by | “2022-09-21” | No. |
AttributeFilter | Used to override the default report filters. You should specify an attribute filtering rule on the ad hoc report;the value passed into this parameter will override the value(s) in the first attribute filtering rule’s Value field. | “36512” | No. |
AttributeFilter2 | Used to override the default report filters. You should specify an attribute filtering rule on the ad hoc report;the value passed into this parameter will override the value(s) in the second attribute filtering rule’s Value field. | “36512” | No. |
AttributeFilter3 | Used to override the default report filters. You should specify an attribute filtering rule on the ad hoc report;the value passed into this parameter will override the value(s) in the third attribute filtering rule’s Value field. | “36512” | No. |
Keywords | Used to override the default report filters. Overrides the keyword filters specified for the ad hoc report. | “icasework,civica,great” | No. |
Example
Request
<https://example.icasework.com/getreport>
{
"ReportId": "10800",
"Format": "xml"
}
<?xml version="1.0" encoding="UTF-8" ?>
<ReportId>10800</ReportId>
<Format>xml</Format>
Response
<?xml version="1.0" encoding="UTF-8"?>
<Rows RequestId="51221195af5536c367accafeaedd91">
<Row>
<CaseDetails.TotalRedress>0.00</CaseDetails.TotalRedress>
<CaseDetailsComplaint.Details>drffddfdv</CaseDetailsComplaint.Details>
<CaseDetailsComplaint.ServiceGreatgrandparentName>Adult social care</CaseDetailsComplaint.ServiceGreatgrandparentName>
<CaseDetailsComplaint.Source>Received directly</CaseDetailsComplaint.Source>
<CaseDetails.TestValue>Test1</CaseDetails.TestValue>
<CaseDetailsComplaint.TotalPaid>104.93</CaseDetailsComplaint.TotalPaid>
<CaseDetails.TotalRedress>0.00</CaseDetails.TotalRedress>
<CaseDetails.CaseId>453781</CaseDetails.CaseId>
<CaseDetails.Reference></CaseDetails.Reference>
<CaseDetails.ParentCaseId></CaseDetails.ParentCaseId>
<CaseDetails.CaseType>Complaint</CaseDetails.CaseType>
<CaseDetails.FormType>Complaint</CaseDetails.FormType>
<CaseDetails.Rating></CaseDetails.Rating>
<CaseDetails.Confidential>No</CaseDetails.Confidential>
<CaseDetails.AssignedTo>Basic External</CaseDetails.AssignedTo>
<CaseDetails.AssignedToId>EXT-BASICUSER</CaseDetails.AssignedToId>
<CaseDetails.Department></CaseDetails.Department>
<CaseDetails.AssignedToJobTitle></CaseDetails.AssignedToJobTitle>
<CaseDetails.AssignedToAddress></CaseDetails.AssignedToAddress>
<CaseDetails.Team>Resident Experience Team</CaseDetails.Team>
<CaseDetails.TeamCode>HFINTOUCHTEAM</CaseDetails.TeamCode>
<CaseDetails.Directorate>Adult social care</CaseDetails.Directorate>
<CaseDetails.Service>Assessment and care coordination</CaseDetails.Service>
<CaseDetails.PrimaryClassificationId></CaseDetails.PrimaryClassificationId>
<CaseDetails.PrimaryClassificationIdId></CaseDetails.PrimaryClassificationIdId>
<CaseDetails.PrimaryCause></CaseDetails.PrimaryCause>
<CaseDetailsComplaint.TotalVindiciaRefund></CaseDetailsComplaint.TotalVindiciaRefund>
<CaseDetailsComplaint.TotalRefundToCard></CaseDetailsComplaint.TotalRefundToCard>
<CaseDetailsComplaint.TotalRefund></CaseDetailsComplaint.TotalRefund>
<CaseDetailsComplaint.TotalPaid>104.93</CaseDetailsComplaint.TotalPaid>
<CaseDetailsComplaint.TotalGoodwill></CaseDetailsComplaint.TotalGoodwill>
<CaseDetailsComplaint.TotalComp></CaseDetailsComplaint.TotalComp>
<CaseDetailsComplaint.TotalCheque></CaseDetailsComplaint.TotalCheque>
<CaseDetails.TotalCompensation>104.93</CaseDetails.TotalCompensation>
<CaseStatus.Status>New case</CaseStatus.Status>
<CaseStatus.CurrentTargetDate></CaseStatus.CurrentTargetDate>
<CaseStatus.CurrentTargetDays></CaseStatus.CurrentTargetDays>
<CaseStatus.CurrentStage>Corporate stage 1</CaseStatus.CurrentStage>
<CaseStatus.CurrentOutcome></CaseStatus.CurrentOutcome>
<CaseStatus.CurrentOutcomeDate></CaseStatus.CurrentOutcomeDate>
<CaseStatus.CurrentStageOutcome></CaseStatus.CurrentStageOutcome>
<CaseStatus.CurrentStageOutcomeDate></CaseStatus.CurrentStageOutcomeDate>
<CaseStatusReceipt.Method>Phone</CaseStatusReceipt.Method>
<CaseStatusReceipt.CreatedBy>Support User</CaseStatusReceipt.CreatedBy>
<CaseStatusReceipt.DateReceived>2022-06-08</CaseStatusReceipt.DateReceived>
<CaseStatusReceipt.TimeCreated>2022-06-08T11:33:41</CaseStatusReceipt.TimeCreated>
<CaseStatusTouchTimes.FirstTouchTime>2022-06-08T11:33:41</CaseStatusTouchTimes.FirstTouchTime>
<CaseStatusTouchTimes.LastUpdatedTime>2022-08-25T17:30:03</CaseStatusTouchTimes.LastUpdatedTime>
<CaseStatusTouchTimes.LastTouchTime>2022-08-25T17:30:03</CaseStatusTouchTimes.LastTouchTime>
<CaseStatusAcceptance.DateAccepted></CaseStatusAcceptance.DateAccepted>
<CaseStatusRejection.DateReturned></CaseStatusRejection.DateReturned>
<CaseStatusRejection.ReturnedReason></CaseStatusRejection.ReturnedReason>
<CaseStatusWithdrawal.DateWithdrawn></CaseStatusWithdrawal.DateWithdrawn>
<CaseStatusWithdrawal.WithdrawnReason></CaseStatusWithdrawal.WithdrawnReason>
<CaseStatusClosure.DateClosed></CaseStatusClosure.DateClosed>
<CaseStatusClosure.ClosureInTarget></CaseStatusClosure.ClosureInTarget>
<CaseStageCorporateStage1.TargetDays>15</CaseStageCorporateStage1.TargetDays>
<CaseStageCorporateStage1.DateDue>2022-06-29</CaseStageCorporateStage1.DateDue>
<CaseStageCorporateStage1.Outcome></CaseStageCorporateStage1.Outcome>
<CaseStageCorporateStage1.OutcomeDetails></CaseStageCorporateStage1.OutcomeDetails>
<CaseStageCorporateStage1.OutcomeBy></CaseStageCorporateStage1.OutcomeBy>
<CaseStageCorporateStage1.DateCompleted></CaseStageCorporateStage1.DateCompleted>
<CaseStageCorporateStage1.ResponseInTarget></CaseStageCorporateStage1.ResponseInTarget>
<CaseStageCorporateStage2.TargetDays>20</CaseStageCorporateStage2.TargetDays>
<CaseStageCorporateStage2.DateReceived></CaseStageCorporateStage2.DateReceived>
<CaseStageCorporateStage2.DateDue></CaseStageCorporateStage2.DateDue>
<CaseStageCorporateStage2.Outcome></CaseStageCorporateStage2.Outcome>
<CaseStageCorporateStage2.OutcomeDetails></CaseStageCorporateStage2.OutcomeDetails>
<CaseStageCorporateStage2.OutcomeBy></CaseStageCorporateStage2.OutcomeBy>
<CaseStageCorporateStage2.DateCompleted></CaseStageCorporateStage2.DateCompleted>
<CaseStageCorporateStage2.ResponseInTarget></CaseStageCorporateStage2.ResponseInTarget>
<CaseStageStage3.TargetDays></CaseStageStage3.TargetDays>
<CaseStageStage3.DateReceived></CaseStageStage3.DateReceived>
<CaseStageStage3.DateDue></CaseStageStage3.DateDue>
<CaseStageStage3.Outcome></CaseStageStage3.Outcome>
<CaseStageStage3.OutcomeDetails></CaseStageStage3.OutcomeDetails>
<CaseStageStage3.OutcomeBy></CaseStageStage3.OutcomeBy>
<CaseStageStage3.DateCompleted></CaseStageStage3.DateCompleted>
<CaseStageStage3.ResponseInTarget></CaseStageStage3.ResponseInTarget>
<CaseStageOmbudsman.TargetDays></CaseStageOmbudsman.TargetDays>
<CaseStageOmbudsman.DateReceived></CaseStageOmbudsman.DateReceived>
<CaseStageOmbudsman.DateDue></CaseStageOmbudsman.DateDue>
<CaseStageOmbudsman.Outcome></CaseStageOmbudsman.Outcome>
<CaseStageOmbudsman.OutcomeDetails></CaseStageOmbudsman.OutcomeDetails>
<CaseStageOmbudsman.OutcomeBy></CaseStageOmbudsman.OutcomeBy>
<CaseStageOmbudsman.DateCompleted></CaseStageOmbudsman.DateCompleted>
<CaseStageOmbudsman.ResponseInTarget></CaseStageOmbudsman.ResponseInTarget>
<Customer.Reference>214521</Customer.Reference>
<Customer.Title>Mr</Customer.Title>
<Customer.FullName>Bloggs, Fred</Customer.FullName>
<Customer.FirstName>Fred</Customer.FirstName>
<Customer.LastName>Bloggs</Customer.LastName>
<Customer.Address>Test
a
b
csss
d</Customer.Address>
<Customer.Town></Customer.Town>
<Customer.County></Customer.County>
<Customer.Postcode></Customer.Postcode>
<Customer.EmailAddress>prasad.iyer@civica.co.uk</Customer.EmailAddress>
<CustomerSatisfaction.OverallRating></CustomerSatisfaction.OverallRating>
<Customer.Mobile>test</Customer.Mobile>
<Customer.Organisation>test</Customer.Organisation>
<Customer.Phone>test</Customer.Phone>
<Customer.Notes></Customer.Notes>
<Customer.ContactLanguage></Customer.ContactLanguage>
<Customer.DateOfBirth></Customer.DateOfBirth>
<Customer.Category>Resident</Customer.Category>
<Customer.Stage1ShortPay></Customer.Stage1ShortPay>
<Customer.ContactMethod></Customer.ContactMethod>
<Customer.ContactTime></Customer.ContactTime>
<Customer.Stage3ShortPay></Customer.Stage3ShortPay>
<Customer.Stage4ShortPay></Customer.Stage4ShortPay>
<Customer.Stage2ShortPay></Customer.Stage2ShortPay>
</Row>
</Rows>
[
{
"CaseDetails.TotalRedress": "0.00",
"CaseDetailsComplaint.Details": "drffddfdv",
"CaseDetailsComplaint.ServiceGreatgrandparentName": "Adult social care",
"CaseDetailsComplaint.Source": "Received directly",
"CaseDetails.TestValue": "Test1",
"CaseDetailsComplaint.TotalPaid": "104.93",
"CaseDetails.TotalRedress": "0.00",
"CaseDetails.CaseId": "453781",
"CaseDetails.Reference": "",
"CaseDetails.ParentCaseId": "",
"CaseDetails.CaseType": "Complaint",
"CaseDetails.FormType": "Complaint",
"CaseDetails.Rating": "",
"CaseDetails.Confidential": "No",
"CaseDetails.AssignedTo": "Basic External",
"CaseDetails.AssignedToId": "EXT-BASICUSER",
"CaseDetails.Department": "",
"CaseDetails.AssignedToJobTitle": "",
"CaseDetails.AssignedToAddress": "",
"CaseDetails.Team": "Resident Experience Team",
"CaseDetails.TeamCode": "HFINTOUCHTEAM",
"CaseDetails.Directorate": "Adult social care",
"CaseDetails.Service": "Assessment and care coordination",
"CaseDetails.PrimaryClassificationId": "",
"CaseDetails.PrimaryClassificationIdId": "",
"CaseDetails.PrimaryCause": "",
"CaseDetailsComplaint.TotalVindiciaRefund": "",
"CaseDetailsComplaint.TotalRefundToCard": "",
"CaseDetailsComplaint.TotalRefund": "",
"CaseDetailsComplaint.TotalPaid": "104.93",
"CaseDetailsComplaint.TotalGoodwill": "",
"CaseDetailsComplaint.TotalComp": "",
"CaseDetailsComplaint.TotalCheque": "",
"CaseDetails.TotalCompensation": "104.93",
"CaseStatus.Status": "New case",
"CaseStatus.CurrentTargetDate": "",
"CaseStatus.CurrentTargetDays": "",
"CaseStatus.CurrentStage": "Corporate stage 1",
"CaseStatus.CurrentOutcome": "",
"CaseStatus.CurrentOutcomeDate": "",
"CaseStatus.CurrentStageOutcome": "",
"CaseStatus.CurrentStageOutcomeDate": "",
"CaseStatusReceipt.Method": "Phone",
"CaseStatusReceipt.CreatedBy": "Support User",
"CaseStatusReceipt.DateReceived": "2022-06-08",
"CaseStatusReceipt.TimeCreated": "2022-06-08T11:33:41",
"CaseStatusTouchTimes.FirstTouchTime": "2022-06-08T11:33:41",
"CaseStatusTouchTimes.LastUpdatedTime": "2022-08-25T17:30:03",
"CaseStatusTouchTimes.LastTouchTime": "2022-08-25T17:30:03",
"CaseStatusAcceptance.DateAccepted": "",
"CaseStatusRejection.DateReturned": "",
"CaseStatusRejection.ReturnedReason": "",
"CaseStatusWithdrawal.DateWithdrawn": "",
"CaseStatusWithdrawal.WithdrawnReason": "",
"CaseStatusClosure.DateClosed": "",
"CaseStatusClosure.ClosureInTarget": "",
"CaseStageCorporateStage1.TargetDays": "15",
"CaseStageCorporateStage1.DateDue": "2022-06-29",
"CaseStageCorporateStage1.Outcome": "",
"CaseStageCorporateStage1.OutcomeDetails": "",
"CaseStageCorporateStage1.OutcomeBy": "",
"CaseStageCorporateStage1.DateCompleted": "",
"CaseStageCorporateStage1.ResponseInTarget": "",
"CaseStageCorporateStage2.TargetDays": "20",
"CaseStageCorporateStage2.DateReceived": "",
"CaseStageCorporateStage2.DateDue": "",
"CaseStageCorporateStage2.Outcome": "",
"CaseStageCorporateStage2.OutcomeDetails": "",
"CaseStageCorporateStage2.OutcomeBy": "",
"CaseStageCorporateStage2.DateCompleted": "",
"CaseStageCorporateStage2.ResponseInTarget": "",
"CaseStageStage3.TargetDays": "",
"CaseStageStage3.DateReceived": "",
"CaseStageStage3.DateDue": "",
"CaseStageStage3.Outcome": "",
"CaseStageStage3.OutcomeDetails": "",
"CaseStageStage3.OutcomeBy": "",
"CaseStageStage3.DateCompleted": "",
"CaseStageStage3.ResponseInTarget": "",
"CaseStageOmbudsman.TargetDays": "",
"CaseStageOmbudsman.DateReceived": "",
"CaseStageOmbudsman.DateDue": "",
"CaseStageOmbudsman.Outcome": "",
"CaseStageOmbudsman.OutcomeDetails": "",
"CaseStageOmbudsman.OutcomeBy": "",
"CaseStageOmbudsman.DateCompleted": "",
"CaseStageOmbudsman.ResponseInTarget": "",
"Customer.Reference": "214521",
"Customer.Title": "Mr",
"Customer.FullName": "Bloggs, Fred",
"Customer.FirstName": "Fred",
"Customer.LastName": "Bloggs",
"Customer.Address": "Test\r\na\r\nb\r\ncsss\r\nd",
"Customer.Town": "",
"Customer.County": "",
"Customer.Postcode": "",
"Customer.EmailAddress": "prasad.iyer@civica.co.uk",
"CustomerSatisfaction.OverallRating": "",
"Customer.Mobile": "test",
"Customer.Organisation": "test",
"Customer.Phone": "test",
"Customer.Notes": "",
"Customer.ContactLanguage": "",
"Customer.DateOfBirth": "",
"Customer.Category": "Resident",
"Customer.Stage1ShortPay": "",
"Customer.ContactMethod": "",
"Customer.ContactTime": "",
"Customer.Stage3ShortPay": "",
"Customer.Stage4ShortPay": "",
"Customer.Stage2ShortPay": ""
}
]
HTTP 400 responses
X-Application-Error-Code | X-Application-Error-Info | Troubleshooting tips |
---|---|---|
8000 | Invalid HTTP Method. | Check the HTTP method; this should be a GET |
8001 | API not available here - please use [[correct endpoint]] | Check the endpoint of the request |
8002 | API not available here - please use [[correct endpoint]] | Check the endpoint of the request |
8003 | Required parameter ReportId was not supplied. | Pass a value for |
8051 | Report | Pass a valid value for |
8052 | Report | Only shared reports may be authenticated by an API key assigned to a user that doesn’t have reporting access; or an API key that doesn’t have an assigned user. The user assigned to the API key will need reporting access to authenticate access to that user’s unshared reports; other users' unshared reports cannot be accessed. |
8061 | An unexpected error occurred during XML transformation | Try to make the request again and reach out to iCasework support if the same issue occurs. |
8063 | An unexpected error occurred during XML transformation | Try to make the request again and reach out to iCasework support if the same issue occurs. |
8099 | Various | Check the |
HTTP 403 responses
X-Application-Error-Code | X-Application-Error-Info | Troubleshooting tips |
---|---|---|
8021 | Incorrect key or signature | Check the authentication method |
8021 | Invalid token (6) | Check the authentication method |
Related content
Civica 2020. All Rights Reserved