Calling the /recover-new-jobs
endpoint
Once you have implemented the /recover-new-jobs
endpoint, you can use it
in the same way that you would use a base configuration search endpoint. The request
includes a body with the appropriate search criteria. The response includes a collection
of jobs meeting the implicit and configured search criteria. If the response includes
one or more jobs, the response header also contains a self-signed JWT that can be used
for subsequent calls.
For example, suppose you configure the
/recover-new-jobs
endpoint
according to the sample implementation in the previous topics. Then, suppose you wanted
to find all incomplete submissions where the primary insured's first name is "Francine"
and last name is "Michaels". The request would look like
this.POST /job/v1/recover-new-jobs
{
"data": {
"attributes": {
"firstName_Ext": "Francine",
"lastName_Ext": "Michaels"
}
}
}
Suppose there is one job that matches the search criteria. The response would look like
this. For the sake of clarity, some properties have been
omitted.
RESPONSE BODY:
{
"count": 1,
"data": [
{
"attributes": {
"account": {
"displayName": "C000143542",
"id": "pc:Srx-YL_xDmdj455LyQtIu",
"type": "Account",
"uri": "/account/v1/accounts/pc:Srx-YL_xDmdj455LyQtIu"
},
"id": "pc:SVAyPWiBiNuBrYFPjd7ZX",
"jobNumber": "47586734721",
"jobStatus": {
"code": "Quoted",
"name": "Quoted"
},
"jobType": {
"code": "Submission",
"name": "Submission"
},
"policy": {
"displayName": "P000143542",
"id": "pc:SH21ByixaZ0O-2Hteuwc8",
"type": "Policy",
"uri": "/policy/v1/policies/pc:SH21ByixaZ0O-2Hteuwc8"
},
"policyNumber": "P000143542",
"primaryInsured": {
"displayName": "Francine Michaels",
"id": "test_pp:2",
"type": "PolicyContact",
"uri": "/job/v1/jobs/pc:SVAyPWiBiNuBrYFPjd7ZX/contacts/test_pp:2"
}
},
...
RESPONSE HEADER:
GW-Access-Token:
eyJhbGciOiJIUzUxMiIsImtpZCI6ImN1cnJlbnRfa2V5IiwidHlwIjoiSldUIn0.eyJleHAiOjE1OTU1NjYzN
jksImdyb3VwcyI6WyJwYy5hbm9ueW1vdXMiXSwiaWF0IjoxNTk1NTU1NTY5LCJpc3MiOiJQQyIsImp0aSI6In
JCMEVDYVdoOVh1Y2U5M3cyYkFETnVXOUszdkZoUGxuS0FpbVR3NVdFNWNueW9VM0FBQUFCQS4uIiwicGNfYWN
jb3VudE51bWJlcnMiOlsiMjU1ODM2MzEzOCJdLCJzdWIiOiJhdXRoIiwidGVuYW50X2lkIjoiTm9UZW5hbnQi
LCJ0eXBlIjoiYWNjb3VudEhvbGRlciJ9.Ix4GCz4nJg_QM3AsC-jVyZU_V8ysGBgWfvIxAIS59t7EN2C6Pi2Q
gJRs09y0ThqFX-_1-ucD58Vunqs5dMivJg