サンプルペイロードの補遺
このセクションには、これまでのトピックで参照されたサンプルペイロード(長すぎてそのトピック内に含められなかったもの)が記載されています。
サンプル保険契約ペイロード
次のペイロードでは、サンプルの Test Util 保険契約を作成します。
{
"data": {
"attributes": {
"effectiveDate": "2020-01-01T07:00:00.000Z",
"expirationDate": "2031-01-01T07:00:00.000Z",
"policyNumber": "FNOL-POLICY",
"verifiedPolicy": true,
"policyType": {
"code": "PersonalAuto"
},
"status": {
"code": "inforce"
},
"policyContacts": [
{
"contact": {
"refid": "rayNewton"
},
"roles": [
{
"code": "insured"
}
]
}
],
"policyLocations": [
{
"address": {
"addressLine1": "287 Kensington Rd. #1A",
"city": "South Pasadena",
"postalCode": "91145",
"state": {
"code": "CA"
}
}
}
],
"policyCoverages": [
{
"coverageType": {
"code": "PALiabilityCov"
},
"incidentLimit": {
"amount": "30000.00",
"currency": "usd"
},
"exposureLimit": {
"amount": "15000.00",
"currency": "usd"
}
}
],
"vehicleRiskUnits": [
{
"RUNumber": 1,
"vehicle": {
"licensePlate": "1HGJ465",
"make": "Toyota",
"model": "Prius",
"policySystemId": "pcveh:0001-1",
"state": {
"code": "CA"
},
"vin": "1GV234TV347463345",
"year": 2007
},
"coverages": [
{
"coverageType": {
"code": "PACollisionCov"
},
"covTerms": [
{
"covTermPattern": {
"code": "PACollDeductible"
},
"covTermSubtype": "FinancialCovTerm",
"financialAmount": {
"amount": "500.00",
"currency": "usd"
}
}
],
"incidentLimit": {
"amount": "15000.00",
"currency": "usd"
}
}
]
}
]
}
},
"included": {
"TestUtilContact": [
{
"attributes": {
"firstName": "Ray",
"lastName": "Newton",
"primaryAddress": {
"addressLine1": "287 Kensington Rd. #1A",
"city": "South Pasadena",
"country": "US",
"postalCode": "91145",
"state": {
"code": "CA"
}
},
"subtype": {
"code": "Person"
},
"policySystemId": "ab:0001-1"
},
"method": "post",
"refid": "rayNewton",
"uri": "/test-util/v1/contacts"
}
]
}
}
サンプルのドラフトクレームのペイロード
次のペイロードでは、既存の保険契約を使用してサンプルのドラフトクレームを作成します。
{
"data": {
"attributes": {
"lossDate": "2020-03-01T07:00:00.000Z",
"policyNumber": "FNOL-POLICY",
"lossCause": {
"code": "vehcollision"
},
"mainContact": {
"policySystemId": "ab:0001-1"
},
"reporter": {
"policySystemId": "ab:0001-1"
}
}
},
"included": {
"ClaimContact": [
{
"attributes": {
"firstName": "Robert",
"lastName": "Farley",
"contactSubtype": "Person"
},
"method": "post",
"refid": "robertFarley",
"uri": "/claim/v1/claims/this/contacts"
}
],
"VehicleIncident": [
{
"attributes": {
"collision": true,
"damageDescription": "Minor collision",
"driver": {
"policySystemId": "ab:0001-1"
},
"lossParty": {
"code": "insured"
},
"vehicle": {
"policySystemId": "pcveh:0001-1"
}
},
"method": "post",
"uri": "/claim/v1/claims/this/vehicle-incidents"
},
{
"attributes": {
"collision": true,
"damageDescription": "Minor collision",
"driver": {
"refid": "robertFarley"
},
"lossParty": {
"code": "third_party"
},
"vehicle": {
"licensePlate": "2PIX534",
"make": "Honda",
"model": "Civic",
"state": {
"code": "CA"
},
"vin": "3DT6YUQ3K9003LP19",
"year": 2019
}
},
"method": "post",
"uri": "/claim/v1/claims/this/vehicle-incidents"
}
]
}
}
サンプルのコンポジットクレームのペイロード
次のペイロードでは、コンポジット要求内でサンプルクレームを作成します。未検証の保険契約を作成し、その保険契約のドラフトクレームを作成して、クレームを送信することが含まれています。(クレーム連絡先やインシデントなど、クレームの子オブジェクトの作成方法については、ClaimCenter の「ビジネスフロー」セクションの該当するトピックを参照してください。)
{
"requests": [
{
"body": {
"data": {
"attributes": {
"policyNumber": "composite-FNOL-example",
"policyType": {
"code": "PersonalAuto"
}
}
}
},
"method": "post",
"uri": "/claim/v1/unverified-policies",
"vars": [
{
"name": "policyId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"coverageType": {
"code": "PALiabilityCov"
},
"covTerms": [
{
"covTermSubtype": "FinancialCovTerm",
"covTermOrder": 1,
"covTermPattern": {
"code": "PALiability"
},
"modelAggregation": {
"code": "pi"
},
"modelRestriction": {
"code": "acc"
},
"financialAmount": {
"amount": "50000.00",
"currency": "usd"
}
},
{
"covTermSubtype": "ClassificationCovTerm",
"covTermOrder": 2,
"code": "Classification Code - 1",
"description": "ClassificationCovTerm description"
}
],
"currency": {
"code": "usd"
},
"exposureLimit": {
"amount": "15000.00",
"currency": "usd"
},
"incidentLimit": {
"amount": "10000.00",
"currency": "usd"
},
"notes": "Coverage of unverified policy",
"state": {
"code": "CA"
}
}
}
},
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/coverages"
},
{
"body": {
"data": {
"attributes": {
"addressBookUID": "UID-RayNewton-001",
"emailAddress1": "RayNewton@email.com",
"firstName": "Ray",
"lastName": "Newton",
"primaryAddress": {
"addressLine1": "287 Kensington Rd. #1A",
"city": "South Pasadena",
"country": "US",
"postalCode": "91145",
"state": {
"code": "CA"
}
},
"primaryPhoneType": {
"code": "work"
},
"contactSubtype": "Person",
"workPhone": {
"countryCode": {
"code": "US"
},
"number": "818-446-1206"
}
}
}
},
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/contacts",
"vars": [
{
"name": "insuredId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"insured": {
"id": "${insuredId}"
}
}
}
},
"method": "patch",
"uri": "/claim/v1/unverified-policies/${policyId}"
},
{
"body": {
"data": {
"attributes": {
"addressBookUID": "UID-HelenNewton-001",
"emailAddress1": "HelenNewton@email.com",
"firstName": "Helen",
"lastName": "Newton",
"primaryAddress": {
"addressLine1": "287 Kensington Rd. #1A",
"city": "South Pasadena",
"country": "US",
"postalCode": "91145",
"state": {
"code": "CA"
}
},
"primaryPhoneType": {
"code": "work"
},
"contactSubtype": "Person",
"workPhone": {
"countryCode": {
"code": "US"
},
"number": "818-446-1206"
}
}
}
},
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/contacts",
"vars": [
{
"name": "coveredContactId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"coveredParties": [
{
"id": "${coveredContactId}"
}
]
}
}
},
"method": "patch",
"uri": "/claim/v1/unverified-policies/${policyId}"
},
{
"body": {
"data": {
"attributes": {
"description": "Vehicle Risk Unit Description",
"vehicle": {
"color": "Green",
"licensePlate": "1ABC234",
"make": "Honda",
"manufacturer": {
"code": "HOND"
},
"model": "Accord",
"state": {
"code": "CA"
},
"style": {
"code": "passengercar"
},
"vin": "QWE327UH534NMK09P",
"year": 2010
}
}
}
},
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/vehicle-risk-units",
"vars": [
{
"name": "vehicleId",
"path": "$.data.attributes.vehicle.id"
},
{
"name": "vehicleRUId",
"path": "$.data.attributes.id"
},
{
"name": "RUNumber",
"path": "$.data.attributes.RUNumber"
}
]
},
{
"body": {
"data": {
"attributes": {
"claimAggLimit": {
"amount": "7000.00",
"currency": "usd"
},
"personAggLimit": {
"amount": "8000.00",
"currency": "usd"
},
"coverageType": {
"code": "PACollisionCov"
},
"covTerms": [
{
"covTermSubtype": "FinancialCovTerm",
"covTermOrder": 1,
"covTermPattern": {
"code": "PACollDeductible"
},
"modelAggregation": {
"code": "pi"
},
"modelRestriction": {
"code": "acc"
},
"financialAmount": {
"amount": "500.00",
"currency": "usd"
}
},
{
"covTermSubtype": "NumericCovTerm",
"covTermOrder": 2,
"numericValue": "20.20",
"units": {
"code": "days"
}
}
],
"currency": {
"code": "usd"
},
"exposureLimit": {
"amount": "10000.00",
"currency": "usd"
},
"incidentLimit": {
"amount": "20000.00",
"currency": "usd"
},
"notes": "Coverage of vehicle risk unit"
}
}
},
"method": "post",
"uri": "/claim/v1/unverified-policies/${policyId}/vehicle-risk-units/${vehicleRUId}/coverages"
},
{
"body": {
"data": {
"attributes": {
"lossDate": "2021-02-01T07:00:00.000Z",
"lossLocation": {
"addressLine1": "100 Main St.",
"city": "San Mateo",
"postalCode": "90123",
"state": {
"code": "CA"
}
},
"policyNumber": "composite-FNOL-example",
"reporter": {
"id": "${insuredId}"
}
}
}
},
"method": "post",
"uri": "/claim/v1/claims",
"vars": [
{
"name": "claimId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"body": "Test note body"
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/notes"
},
{
"body": {
"data": {
"attributes": {
"collision": true,
"collisionPoint": {
"code": "03"
},
"damageDescription": "Damaged front bumper",
"driver": {
"id": "${insuredId}"
},
"lossParty": {
"code": "insured"
},
"severity": {
"code": "major-auto"
},
"vehicle": {
"id": "${vehicleId}"
}
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/vehicle-incidents",
"vars": [
{
"name": "vehicleIncidentId",
"path": "$.data.attributes.id"
},
{
"name": "driverUri",
"path": "$.data.attributes.driver.uri"
}
]
},
{
"body": {
"data": {
"attributes": {
"coverageSubtype": {
"code": "PACollisionCov"
},
"claimant": {
"id": "${insuredId}"
},
"primaryCoverage": {
"code": "PACollisionCov"
},
"vehicleIncident": {
"id": "${vehicleIncidentId}"
}
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/exposures",
"vars": [
{
"name": "exposureId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"cellPhone": {
"countryCode": {
"code": "US"
},
"number": "555-555-5555"
},
"dateOfBirth": "1928-11-18",
"emailAddress1": "MitchMochizuki@email.com",
"firstName": "Mitch",
"homePhone": {
"countryCode": {
"code": "US"
},
"number": "555-555-5556"
},
"lastName": "Mochizuki",
"licenseNumber": "ABCDE12345",
"licenseState": {
"code": "CA"
},
"primaryAddress": {
"addressLine1": "1313 Albian Dr.",
"city": "Anaheim",
"country": "US",
"county": "Orange County",
"postalCode": "92802",
"state": {
"code": "CA"
}
},
"primaryLanguage": {
"code": "en_US"
},
"primaryLocale": {
"code": "en_US"
},
"primaryPhoneType": {
"code": "home"
},
"contactSubtype": "Person"
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/contacts",
"vars": [
{
"name": "mitchMochizukiId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"addressBookUID": "DOCTOR-12345",
"dateOfBirth": "1959-06-11",
"emailAddress1": "DanaEdwards@email.com",
"firstName": "Dana",
"lastName": "Edwards",
"primaryAddress": {
"addressLine1": "1000 Hospital Dr.",
"city": "Princeton",
"country": "US",
"postalCode": "08540",
"state": {
"code": "NJ"
}
},
"primaryLanguage": {
"code": "en_US"
},
"primaryLocale": {
"code": "en_US"
},
"primaryPhoneType": {
"code": "work"
},
"contactSubtype": "Doctor",
"workPhone": {
"countryCode": {
"code": "US"
},
"number": "666-666-6666"
}
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/contacts",
"vars": [
{
"name": "danaEdwardsId",
"path": "$.data.attributes.id"
}
]
},
{
"body": {
"data": {
"attributes": {
"ambulanceUsed": true,
"bodyParts": [
{
"detailedBodyPart": {
"code": "57"
},
"detailedBodyPartDesc": {
"code": "57B"
},
"impairmentPercentage": 77,
"ordering": 12,
"primaryBodyPart": {
"code": "lower"
},
"sideOfBody": {
"code": "left"
}
}
],
"description": "Head trauma, possible concussion",
"detailedInjuryType": {
"code": "07"
},
"disabledDueToAccident": {
"code": "notdisabled"
},
"generalInjuryType": {
"code": "specific"
},
"injuredPerson": {
"id": "${mitchMochizukiId}"
},
"lossParty": {
"code": "third_party"
},
"lostWages": false,
"primaryDoctor": {
"id": "${danaEdwardsId}"
},
"severity": {
"code": "major-injury"
},
"treatmentType": {
"code": "er"
}
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/injury-incidents"
},
{
"body": {
"data": {
"attributes": {
"collision": true,
"collisionPoint": {
"code": "03"
},
"damageDescription": "Damaged rear bumper",
"driver": {
"id": "${mitchMochizukiId}"
},
"lossParty": {
"code": "third_party"
},
"severity": {
"code": "major-auto"
},
"vehicle": {
"color": "silver",
"licensePlate": "MERLIN0",
"make": "Subaru",
"model": "Outback",
"year": 2005
}
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/vehicle-incidents"
},
{
"body": {
"data": {
"attributes": {
"addressBookUID": "REPAIRSHOP-12345",
"companyName": "#(args.name)",
"editableRoles": [
{
"active": true,
"relatedTo": {
"id": "${claimId}",
"type": "Claim"
},
"role": {
"code": "repairshop"
}
}
],
"contactSubtype": "AutoRepairShop"
}
}
},
"method": "post",
"uri": "/claim/v1/claims/${claimId}/contacts"
},
{
"method": "post",
"uri": "/claim/v1/claims/${claimId}/submit"
}
],
"selections": [
{
"uri": "${driverUri}"
}
]
}
サンプルのコンポジット要求(「初回かつ最終」)
コンポジット要求は ClaimCenter の「自動車 - 初回かつ最終」の機能を模倣できます。この機能では、査定なしでクレームの作成、支払、クローズが行われます。
「自動車 - 初回かつ最終」の詳細については、『ClaimCenter アプリケーションガイド』を参照してください。
注:
- 「自動車 - 初回かつ最終」のクレーム処理を模倣すると、コンポジット要求でクローズできないエンティティを作成できます。例えば、コンポジット要求が認識していないために完了できないアクティビティを、行動計画ルールで作成できます。コンフィギュレーションに応じて、クレームを完全にクローズするために追加の手順が必要になる場合があります。
- アクティビティではクレームとエクスポージャーのクローズを禁止できるので、クレームをクローズするには、コンポジット要求で自動的に作成されたすべてのアクティビティをクローズする必要が生じる場合があります。
- 反復的でない最終支払のみの場合、コンポジット要求に対して POST
/check-setsを実行できます。コンポジット要求を使用して部分支払トランザクションを完了することはできません。
サブ要求の順序
コンポジット要求で初回かつ最終のクレームを実行する場合、以下の順序でステップを実行する必要があります。異なる順序でステップを実行した場合、一部のオブジェクトが ClaimCenter によって自動的に作成される場合があるため、以降のサブ要求で作成されるオブジェクトと競合します。
-
クレームを POST します。
-
車両インシデントを POST します。
-
次の属性が指定されたエクスポージャーを POST します。
-
エクスポージャーのインシデントは車両インシデントです。
-
エクスポージャーの補償内容は総合車両です。
-
エクスポージャーの保険金請求者は被保険者です。
-
-
クレームを送信します。
-
次の属性が指定された支払を POST します。
-
支払はエクスポージャーの支払備金明細から引き出されます。
-
支払の受取人は被保険者です。
-
最小限のコンポジット要求の例
次のコンポジット要求は、クレームおよびトランザクション支払をすぐに閉じるために、最小限のコンポジット要求を使用しています(アクティビティパターンのコンフィギュレーションによって異なります)。
- クレームを POST します。
{ "requests": [ { "body": { "data": { "attributes": { "coverageInQuestion": false, "description": "Rear-ended by distracted driver", "faultRating": { "code": "nofault" }, "howReported": { "code": "phone" }, "incidentOnly": false, "jurisdiction": { "code": "CA" }, "lossCause": { "code": "FallingObject" }, "lossDate": " 2020-08-31T07:00:00.000Z)", "lossLocation": { "addressLine1": " 2850 S Delaware St ", "city": "San Mateo", "country": "US", "county": "San Mateo", "postalCode": "94404", "state": { "code": "CA" } }, "mainContact": { "policySystemId": "pc:contact_1" }, "policyNumber": "POLICY-ID", "reportedByType": { "code": "self" }, "reporter": { "policySystemId": "pc:contact_1" } } } }, "method": "post", "uri": "/claim/v1/claims", "vars": [ { "name": "claimId", "path": "$.data.attributes.id" } ] }, - 車両インシデントを POST します。
{ "body": { "data": { "attributes": { "collision": true, "damageDescription": "Tree fell", "lossParty": { "code": "insured" }, "vehicle": { "policySystemId": "pcveh:1" } } } }, "method": "post", "uri": "/claim/v1/claims/${claimId}/vehicle-incidents", "vars": [ { "name": "firstPartyVehicleIncidentId", "path": "$.data.attributes.id" } ] }, - ステップ 2 の車両インシデントに関連付けられたエクスポージャーを、総合補償と被保険者兼保険金請求者を指定して POST します。
{ "body": { "data": { "attributes": { "coverage": { "policySystemId": "pc:coverage_2" }, "coverageSubtype": { "code": "PAComprehensiveCov" }, "claimant": { "policySystemId": "pc:contact_1" }, "primaryCoverage": { "code": "PAComprehensiveCov" }, "vehicleIncident": { "id": "${firstPartyVehicleIncidentId}" } } } }, "method": "post", "uri": "/claim/v1/claims/${claimId}/exposures", "vars": [ { "name": "exposureId", "path": "$.data.attributes.id" } ] }, - クレームを送信します。
{ "body": { "data": { "attributes": { "initialAssignment": { "groupId": "#(args.groupId)", "userId": "#(args.adjusterId)" } } } }, "method": "post", "uri": "/claim/v1/claims/${claimId}/submit" }, - 被保険者に支払を POST します。
{ "body": { "data": { "attributes": { "primaryCheckToWrite": { "paymentsToWrite": [ { "lineItems": [ { "transactionAmount": { "amount": "500", "currency": "usd" } } ], "paymentType": { "code": "final" }, "reserveLine": { "costCategory": { "code": "body" }, "costType": { "code": "claimcost" }, "exposure": { "id": "${exposureId}" }, "reservingCurrency": { "code": "usd" } }, "currency": { "code": "usd" } } ], "payees": [ { "contact": { "policySystemId": "pc:contact_1" }, "payeeType": { "code": "other" } } ], "paymentMethod": { "code": "check" }, "mailTo": "Ray Newton", "payTo": "Ray Newton", "mailingAddress": { "addressLine1": "2850 S Delaware St ", "city": "San Mateo", "country": "US", "county": "San Mateo", "postalCode": "94403", "state": { "code": "CA" } } } } } }, "method": "post", "uri": "#('/claim/v1/claims/${claimId}/check-sets')", "vars": [ { "name": "checkId", "path": "$.data.attributes.checks[0].id" } ] } ] }