Locations on an unverified policy

To create or modify a policy location, use the following endpoint:

  • POST /claim/v1/unverified-policies/{policyId}/locations
  • PATCH /claim/v1/unverified-policies/{policyId}/locations/{locationId}

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.

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"
            }            
          }
        }
    }
  ]
}