Orte in einer unverifizierten Police

Zum Erstellen oder Ändern eines Policenorts verwenden Sie den folgenden Endpunkt:

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

Es sind keine Informationen erforderlich, um einen Ort in einer unverifizierten Police zu erstellen. ClaimCenter stellt Standardwerte für alle erforderlichen Felder bereit.

Im folgenden Beispiel wird eine unverifizierte Police mit einem Ort erstellt.

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