未検証の保険契約の所在地
保険契約の所在地を作成または変更するには、次のエンドポイントを使用します。
- POST
/claim/v1/unverified-policies/{policyId}/locations - PATCH
/claim/v1/unverified-policies/{policyId}/locations/{locationId}
未検証の保険契約に所在地を作成するために必要な情報はありません。ClaimCenter はすべての必須フィールドにデフォルト値を指定します。
次の例では未検証の保険契約を作成しますが、所在地を含めます。
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"
}
}
}
}
]
}