Get policies for a specific case
get
/PASService/rest/services/cases/{id}/policies
Gets a list of policies associated with a specific case Id
Request
Path Parameters
-
id: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?Case Id
Query Parameters
-
expand(optional): string
codes
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to get a list of policies associated with a specific case Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/cases/ 294DBD01-5B14-43A3-9A5B-4C309EA848C0/policies"
Example Response Body
The following shows an example of the response body in JSON format:
" {
"count" : 2,
"policies" : [ {
"links" : [ {
"href" : "http://server:port/PASService/rest/services/cases/294DBD01-5B14-43A3-9A5B-4C309EA848C0/policies/808FE0DF-4C4A-4D05-8925-FD13E6DAB7AC",
"rel" : "self",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=State&codeValue=55",
"rel" : "codes/issueStateCode",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=System&codeValue=02",
"rel" : "codes/systemCode",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=Status&codeValue=08",
"rel" : "codes/status",
"mediaType" : "application/json",
"method" : "GET"
} ],
"multiFields" : { },
"policyName" : "RatesInt",
"policyNumber" : "VDA15083807",
"planDate" : "2015-08-04T00:00:00Z",
"issueStateCode" : "55",
"systemCode" : "02",
"segments" : [],
"roles" : [ {
"links" : [ {
"href" : "http://server:port/PASService/rest/services/policies/808FE0DF-4C4A-4D05-8925-FD13E6DAB7AC/roles/3C0DFAB9-CD1A-4E9E-9E5F-BF15850A5394",
"rel" : "self",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=Role&codeValue=11",
"rel" : "codes/role",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=RoleStatus&codeValue=01",
"rel" : "codes/status",
"mediaType" : "application/json",
"method" : "GET"
} ],
"multiFields" : { },
"roleAmount" : 12,
"rolePercent" : 14,
"stateCode" : "CA",
"roleId" : "3C0DFAB9-CD1A-4E9E-9E5F-BF15850A5394",
"clientId" : "5149CC4C-1D1C-45BF-910B-D0DA1B3A785B",
"externalclientId" : "9C022A53-2327-4C2D-A059-8B703A3D8F85",
"companyId" : "F1D8C257-AC04-403F-A21F-9331A6301A72",
"percentDollar" : 12,
"policyId" : "808FE0DF-4C4A-4D05-8925-FD13E6DAB7AC",
"role" : "11",
"segmentId" : "B8896CF1-2B26-4354-A960-3A125FAA6AD0",
"status" : "01"
} ],
"policyId" : "808FE0DF-4C4A-4D05-8925-FD13E6DAB7AC",
"creationDate" : "2020-01-06T00:00:00Z",
"updatedDate" : "2020-01-06T16:39:18Z",
"companyId" : "05711222-7DB3-4EBD-A821-57A30A699B88",
"planId" : "3CD8F7B3-0928-43F9-8483-0AF739B4F36C",
"status" : "08"
}, {
"links" : [ {
"href" : "http://server:port/PASService/rest/services/cases/294DBD01-5B14-43A3-9A5B-4C309EA848C0/policies/BF647EC8-16C0-420B-99EB-4534F3ED2456",
"rel" : "self",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=State&codeValue=55",
"rel" : "codes/issueStateCode",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=System&codeValue=02",
"rel" : "codes/systemCode",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=Status&codeValue=99",
"rel" : "codes/status",
"mediaType" : "application/json",
"method" : "GET"
} ],
"multiFields" : { },
"policyName" : "RatesInt",
"policyNumber" : "GLPT15083806",
"planDate" : "2015-08-04T00:00:00Z",
"issueStateCode" : "55",
"systemCode" : "02",
"segments" : [],
"roles" : [ {
"links" : [ {
"href" : "http://server:port/PASService/rest/services/policies/BF647EC8-16C0-420B-99EB-4534F3ED2456/roles/C92517BC-413C-4D0A-8AC9-6273BEAB397D",
"rel" : "self",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=Role&codeValue=11",
"rel" : "codes/role",
"mediaType" : "application/json",
"method" : "GET"
}, {
"href" : "http://server:port/PASService/rest/services/codes?codeName=RoleStatus&codeValue=01",
"rel" : "codes/status",
"mediaType" : "application/json",
"method" : "GET"
} ],
"multiFields" : { },
"roleAmount" : 12,
"rolePercent" : n15ll,
"stateCode" : "CA",
"roleId" : "C92517BC-413C-4D0A-8AC9-6273BEAB397D",
"clientId" : "5149CC4C-1D1C-45BF-910B-D0DA1B3A785B",
"externalclientId" : "437D4076-DB77-4F15-AFB9-FC04C241537E",
"companyId" : "6FDD3715-34B0-4819-9787-F3E19E043D83",
"percentDollar" : 45,
"policyId" : "BF647EC8-16C0-420B-99EB-4534F3ED2456",
"role" : "11",
"segmentId" : "95E578F4-5C93-4C3F-8D4C-2BA702F61AE4",
"status" : "01"
} ],
"policyId" : "BF647EC8-16C0-420B-99EB-4534F3ED2456",
"creationDate" : "2020-01-06T00:00:00Z",
"updatedDate" : "2020-01-06T16:38:45Z",
"companyId" : "05711222-7DB3-4EBD-A821-57A30A699B88",
"planId" : "3904A440-E035-40A1-9905-D544F7A6C093",
"status" : "99"
} ]
} "