Locations on an unverified policy
To work with unverified policy locations, use the following endpoints:
- POST
/claim/v1/unverified-policies/{policyId}/locations
- PATCH
/claim/v1/unverified-policies/{policyId}/locations/{locationId}
- GET
/unverified-policies/{policyId}/locations/{locationId}/property-items
- POST
/unverified-policies/{policyId}/locations/{locationId}/property-items
- GET
/unverified-policies/{policyId}/locations/{locationId}/property-items/{propertyItemId}
- PATCH
/unverified-policies/{policyId}/locations/{locationId}/property-items/{propertyItemId}
Create an unverified policy location
There is no information required to create a location on an unverified policy. ClaimCenter provides default values for all required fields.
The following example creates an unverified policy with a location as part of a composite request.
POST /composite/v1/composite
{
"requests": [
{
"method": "post",
"uri": "/claim/v1/unverified-policies",
"body": {
"data": {
"attributes": {
"policyNumber": "unverified-with-location",
"policyType": {
"code": "PersonalAuto"
}
}
}
},
"vars": [
{
"name": "policyId",
"path": "$.data.attributes.id"
}
]
},
{
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/locations",
"body": {
"data": {
"attributes": {
}
}
},
"vars": [
{
"name": "locationId",
"path": "$.data.attributes.id"
}
]
},
{
"method": "post",
"uri": "/claim/v1/claims",
"body": {
"data": {
"attributes": {
"lossDate": "2021-03-04T07:00:00.000Z",
"policyNumber": "unverified-with-location"
}
}
}
}
]
}
Create a scheduled item on an unverified policy location
You can create a scheduled item on an unverified policy location with the following command:
POST
/claim/v1/unverified-policies/{unverifiedPolicyId}/locations/{locationId}/property-items
No information is required in the request to create the scheduled item. However,
omitting the appraisedValue
and description
properties
could make it difficult to retrieve scheduled items through the user interface. For example,
omitting all fields will create a blank scheduled item. This will display in the user
interface as a selectable blank space under the Loss Details Scheduled Items.
The following creates a scheduled item with an appraised value of $3,000 USD on policy cc:330 at location cc:500:
Command
POST /claim/v1/unverified-policies/cc:330/locations/cc:500/property-items
Request
{
"data": {
"attributes": {
"appraisedValue": {
"amount": "3000",
"currency": "usd"
},
"description": "Ship in a bottle"
}
}
}
The following example creates a scheduled item on an unverified policy location as part of a composite request.
...
{
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/locations",
"body": {
"data": {
"attributes": {
}
}
},
"vars": [
{
"name": "locationId",
"path": "$.data.attributes.id"
}
]
},
{
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/locations/${locationId}/property-items",
"body": {
"data": {
"attributes": {
"appraisedValue": {
"amount": "3000",
"currency": "usd"
},
"description": "Ship in a bottle"
}
}
}
...