You are here:
InsAsyncBulkService:getRequestStatusById
Use this service to get the status of the async bulk request and its details associated with the request.
Class: InsAsyncBulkService
Method: getRequestStatusById
How It Works
- The service takes the Id of insurance async bulk request as input.
- The service then retrieves the details of async bulk request whose Id is provided as input.
- The service populates the output map with the request details.
- If
isAdditionalInfoparamater is set totrue, the service adds the AdditionalInformation field value of the bulk request to the outputMap. - The service then generates the output map.
Input Options
| Input | Description |
|---|---|
requestId
|
Required The ID of the insurance async bulk request |
isAdditionalInfo
|
Optional If |
Input JSON
Here's the sample input JSON when isAdditionalInfo is set to false:
{
"requestId": "0rfxx000000001dAAA",
"isAdditionalInfo": false
}Output JSON
Here's the sample output JSON when isAdditionalInfo is set to false:
{
"name": "Insurance_Enrollment",
"createdDate": "Thu Nov 16 05:23:06 GMT 2023",
"status": "Completed",
'jobCount": 3,
'pendingJobCount": 0,
"successfulJobCount": 1,
"failedJobCount": 2,
"cancelledJobCount": 0,
"erroredJobCount": 0,
"requestItems" : [
{
"status": "Completed",
"planName": "Dental Premium",
"batchJobId": "18cSG00000UfdYAE",
"id": "18cxx0000004DUuAAM"
},
{
"status": "Completed",
"planName": "VSP Premium",
"batchJobId": "18cSG00000UfdYAA",
"id": "18cxx0000004DUuMAA"
}
]
}Input JSON
Here's the sample input JSON when isAdditionalInfo is set to true:
{
"requestId": "0rfxx000000001dAAA",
"isAdditionalInfo": true
}Output JSON
Here's the sample output JSON when isAdditionalInfo is set to true:
{
"name": "Insurance_Enrollment",
"createdDate": "Thu Nov 16 05:23:06 GMT 2023",
"status": "Completed",
'jobCount": 3,
'pendingJobCount": 0,
"successfulJobCount": 1,
"failedJobCount": 2,
"cancelledJobCount": 0,
"erroredJobCount": 0,
"requestItems" : [
{
"status": "Completed",
"planName": "Dental Premium",
"batchJobId": "18cSG00000UfdYAE",
"id": "18cxx0000004DUuAAM"
},
{
"status": "Completed",
"planName": "VSP Premium",
"batchJobId": "18cSG00000UfdYAA",
"id": "18cxx0000004DUuMAA"
}
],
"additionalInformation":{
"batchJobDetails":[{
"batchJobId":"0mdxx0000000001AAA",
"productName":"prod1",
"productId":"0rk1000000001dAAA"
}]
}
}
