Preemption payload example
For example, suppose that there is a personal auto policy with an Acura Integra. At roughly the same time, two policy changes are started:
- First policy change:
- Job number: 0004375724
- Job id: pc:421
- Effective date: 11/05/2021
- Material changes: Adds a Honda Civic and associated coverages for driver Alicia Shirley
- Second policy change:
- Job number: 0004408964
- Job id: pc:505
- Effective date: 11/06/2021
- Material changes: Adds a Toyota Prius and associated coverages for driver Alicia Shirley
The first policy change is bound, causing that job to preempt the second job. As a result, the second job now has a preemption.
The following shows a portion of the response payload for a GET
/preemptions for job pc:505. Note that the array of diffs in the
payload contains the following information.
- The effective date for the preempting job
- The vehicle for the preempting job
- The vehicle's collision coverage for the preempting job
- The vehicle's comprehensive coverage for the preempting job
- The vehicle driver for the preempting job
The payload also contains information about the preempting job.
GET /job/v1/jobs/pc:505/preemptions
{
"count": 1,
"data": [
{
"attributes": {
"diffs": [
{
"changedValue": "11/05/2021",
"entity": {
"displayName": "4509454228, 11/04/2021, 05/04/2022, 0004375724",
"id": "pc:421",
"type": "Job",
"uri": "/job/v1/jobs/pc:421"
},
"existingValue": "11/04/2021",
"field": "writtenDate"
},
{
"changedValue": "√",
"entity": {
"displayName": "2000 Honda Civic in California",
"id": "32"
},
"existingValue": "",
"field": "2000 Honda Civic in California"
},
{
"changedValue": "√",
"entity": {
"displayName": "Collision",
"id": "64"
},
"existingValue": "",
"field": "Collision"
},
{
"changedValue": "√",
"entity": {
"displayName": "Comprehensive",
"id": "63"
},
"existingValue": "",
"field": "Comprehensive"
},
{
"changedValue": "√",
"entity": {
"displayName": "Alicia Shirley",
"id": "15"
},
"existingValue": "",
"field": "Assigned Driver: Alicia Shirley"
}
],
"job": {
"displayName": "0004375724",
"id": "pc:421",
"type": "Job",
"uri": "/job/v1/jobs/pc:421"
},
"jobEffectiveDate": "2021-11-05T00:01:00.000Z",
"jobNumber": "0004375724",
"jobType": {
"code": "PolicyChange",
"name": "Policy Change"
}
},
...