Skip to main content

Example Calls

getOffer

query {
getOffer(id: "91d7491e-8b89-47a4-86e9-ad14f5e239cc") {
quote {
drivers {
firstName
lastName
age
}
cars {
VIN
year
make
model
}
autoCoverage {
policyLimitBIPD
}
home {
yearBuilt
homeQuality
}
homeCoverage {
coverageA
coverageBPctOfA
}
}
}
}

Example Response

{
"data": {
"getOffer": {
"quote": {
"drivers": [
{
"firstName": "KURT",
"lastName": "MULDREW-CLEAN",
"age": 77
},
{
"firstName": "JAMES",
"lastName": "MULDREW",
"age": 81
},
{
"firstName": "TAWNY",
"lastName": "MURPH",
"age": 28
}
],
"cars": [
{
"VIN": "G1F2D3S025A602Q22",
"year": 1982,
"make": "JEEP",
"model": "CHEROKEE"
},
{
"VIN": "H1G2D3S3A33221025",
"year": 1990,
"make": "ACURA",
"model": "LEGEND"
},
{
"VIN": "HG1236D236A258036",
"year": 2001,
"make": "DODGE",
"model": "CARAVAN"
}
],
"autoCoverage": {
"policyLimitBIPD": "25/50/50"
},
"home": {
"yearBuilt": 1957,
"homeQuality": "S"
},
"homeCoverage": {
"coverageA": 274000,
"coverageBPctOfA": 10
}
}
}
}
}

requestQuote

query {
requestQuote(
userInput: {
fname: "Kurt"
lname: "Muldrew-Clean"
address: "100 Beatrice Rd"
city: "Dayton"
state: "OH"
zip: "45404"
}
) {
id
options {
id
type
description
homeTotal
autoTotal
}
}
}

Example Response

{
"data": {
"requestQuote": {
"id": "390e68aa-0032-4a76-8ece-91a539e6293a",
"options": [
{
"id": "ed95fd10-e982-49a1-95ec-835e6f607595",
"type": "H",
"description": "Homeowners",
"homeTotal": 999.18,
"autoTotal": null
},
{
"id": "0c7d7b99-b7a8-4369-ab2a-417b3410c2a0",
"type": "HA",
"description": "Home/Auto Bundle",
"homeTotal": 871.27,
"autoTotal": 577.98
},
{
"id": "f6333dad-a925-493b-b7ec-d3390e3f7c0a",
"type": "A",
"description": "Auto",
"homeTotal": null,
"autoTotal": 678.96
}
]
}
}
}

Note that you can use the id that comes back from requestQuote to redirect internal users to the Branch policy administration system, or consumers to the Branch web purchase portal (from which you will still get credit for the sale). You cannot test these in staging, but here are the production urls to use:

  • Policy Administration Link: https://www.ourbranch.com/staff/offer/${id}
  • Customer Purchase Link: https://www.ourbranch.com/quote/detail/$id

requestQuote with drivers and VINs

query {
requestQuote(
userInput: {
fname: "Kurt"
lname: "Muldrew-Clean"
address: "100 Beatrice Dr"
city: "Dayton"
state: "OH"
zip: "45404"
VINs: ["1HGCR2F57GA041331", "1VWBT7A38EC058796"]
additionalDrivers: [
{ firstName: "George", lastName: "Jetson", dateOfBirth: "1980-01-01" }
{ firstName: "Sally", lastName: "Jetson", dateOfBirth: "1984-01-01" }
]
}
) {
id
quote {
drivers {
firstName
lastName
age
}
cars {
VIN
year
make
model
}
}
}
}

Example Response

{
"data": {
"requestQuote": {
"id": "70204a6b-564d-430c-aed5-30057969bfb3",
"quote": {
"drivers": [
{
"firstName": "KURT",
"lastName": "MULDREW-CLEAN",
"age": 77
},
{
"firstName": "GEORGE",
"lastName": "JETSON",
"age": 42
},
{
"firstName": "SALLY",
"lastName": "JETSON",
"age": 38
}
],
"cars": [
{
"VIN": "1HGCR2F57GA041331",
"year": 2016,
"make": "HONDA",
"model": "ACCORD SPORT"
},
{
"VIN": "1VWBT7A38EC058796",
"year": 2014,
"make": "VOLKSWAGEN",
"model": "PASSAT SE"
}
]
}
}
}
}

requestQuoteV2 with rejections

query {
requestQuoteV2(
userInput: {
fname: "Kurt"
lname: "Muldrew-Clean"
address: "100 Beatrice Dr"
city: "Dayton"
state: "OH"
zip: "45404"
home: { numOccupants: 13 }
}
) {
id
id
options {
id
type
}
rejections {
value
level
type
data
}
quote {
offerings {
offerHomeowners
}
}
}
}

Example Response

{
"data": {
"requestQuoteV2": {
"id": "9ef3e975-5774-454f-a07b-63f421c81569",
"options": [
{
"id": "7ced3caf-8c42-41bf-9e24-c02db1027fac",
"type": "A"
},
{
"id": "9fe053d6-a6c5-40c3-bb50-76dcb2a91125",
"type": "HA"
},
{
"id": "24846b51-0115-43fe-9c44-7b4e15a07cf4",
"type": "H"
}
],
"rejections": [
{
"value": 50003,
"level": "soft",
"type": "home",
"data": null
}
],
"quote": {
"offerings": {
"offerHomeowners": true
}
}
}
}
}

recalculateQuote

query {
recalculateQuote(
offerId: "390e68aa-0032-4a76-8ece-91a539e6293a"
revisedQuoteDetails: { global: { autoEffectiveDate: "2021-04-01", homeEffectiveDate: "2021-04-02" } }
) {
id
options {
id
type
description
homeTotal
autoTotal
}
}
}

Example Response

{
"data": {
"recalculateQuote": {
"id": "7dac7b47-59ad-4622-8a39-bb2805e45600",
"options": [
{
"id": "edb5c84c-11ad-43bf-8530-905bda9e7382",
"type": "H",
"description": "Homeowners",
"homeTotal": 999.18,
"autoTotal": null
},
{
"id": "4b794cfb-9336-4e7a-940c-857245d99573",
"type": "HA",
"description": "Home/Auto Bundle",
"homeTotal": 871.27,
"autoTotal": 577.98
},
{
"id": "220d83b1-b771-4a32-b219-754ac2917d4e",
"type": "A",
"description": "Auto",
"homeTotal": null,
"autoTotal": 678.96
}
]
}
}
}

recalculateQuoteV2 with rejections

The recalculateQuoteV2 resolver allows you to make modifications to an existing quote and get a new, bindable offer from Branch. It supports the acceptSoftRejections parameter which determines whether to accept soft rejections (default: true). When set to true, policies with soft rejections will remain in the offer after recalculation, otherwise they will be removed.

query {
recalculateQuoteV2(
offerId: "390e68aa-0032-4a76-8ece-91a539e6293a"
revisedQuoteDetails: { global: { autoEffectiveDate: "2021-04-01", homeEffectiveDate: "2021-04-02" } }
acceptSoftRejections: true
) {
id
options {
id
type
description
homeTotal
autoTotal
}
rejections {
value
level
type
data
}
quote {
offerings {
offerHomeowners
}
}
}
}

Example Response

{
"data": {
"recalculateQuoteV2": {
"id": "7dac7b47-59ad-4622-8a39-bb2805e45600",
"options": [
{
"id": "edb5c84c-11ad-43bf-8530-905bda9e7382",
"type": "H",
"description": "Homeowners",
"homeTotal": 999.18,
"autoTotal": null
},
{
"id": "4b794cfb-9336-4e7a-940c-857245d99573",
"type": "HA",
"description": "Home/Auto Bundle",
"homeTotal": 871.27,
"autoTotal": 577.98
},
{
"id": "220d83b1-b771-4a32-b219-754ac2917d4e",
"type": "A",
"description": "Auto",
"homeTotal": null,
"autoTotal": 678.96
}
],
"rejections": [
{
"value": 50003,
"level": "soft",
"type": "home",
"data": null
}
],
"quote": {
"offerings": {
"offerHomeowners": true
}
}
}
}
}

addDriver

query {
addDriver(
offerId: "7dac7b47-59ad-4622-8a39-bb2805e45600"
firstName: "John"
lastName: "Doe"
dateOfBirth: "1980-01-01"
gender: "M"
maritalStatus: "S"
) {
id
options {
id
type
description
homeTotal
autoTotal
}
quote {
drivers {
firstName
lastName
age
}
}
}
}

Example Response

{
"data": {
"addDriver": {
"id": "e7bfd491-9e97-492e-aaa8-fd30e7132975",
"options": [
{
"id": "cf547418-ca80-4990-9990-6f52257b7506",
"type": "H",
"description": "Homeowners",
"homeTotal": 999.18,
"autoTotal": null
},
{
"id": "bd1999e0-7842-4ec9-861f-8614e944be8c",
"type": "HA",
"description": "Home/Auto Bundle",
"homeTotal": 871.27,
"autoTotal": 622.86
},
{
"id": "00105da4-5c35-4c38-afed-969a2cac1cc6",
"type": "A",
"description": "Auto",
"homeTotal": null,
"autoTotal": 730.98
}
],
"quote": {
"drivers": [
{
"firstName": "KURT",
"lastName": "MULDREW-CLEAN",
"age": 76
},
{
"firstName": "JAMES",
"lastName": "MULDREW",
"age": 80
},
{
"firstName": "TAWNY",
"lastName": "MURPH",
"age": 27
},
{
"firstName": "JOHN",
"lastName": "DOE",
"age": 41
}
]
}
}
}
}

addCar

query {
addCar(offerId: "e7bfd491-9e97-492e-aaa8-fd30e7132975", vin: "JF2GTADC5J8343584") {
id
options {
id
type
description
homeTotal
autoTotal
}
quote {
cars {
year
make
model
VIN
deductibleCollision
deductibleComprehensive
}
}
}
}

Example Response

{
"data": {
"addCar": {
"id": "c120b739-c1b9-4951-900f-d268b980175a",
"options": [
{
"id": "4118d78a-86e1-4422-8cf5-10d1743a237e",
"type": "H",
"description": "Homeowners",
"homeTotal": 999.18,
"autoTotal": null
},
{
"id": "d19c82bf-dc11-4dfc-aad1-700bba08c128",
"type": "HA",
"description": "Home/Auto Bundle",
"homeTotal": 871.27,
"autoTotal": 921.72
},
{
"id": "df57a6c2-2d28-44be-a45b-c5a28dd0bfb2",
"type": "A",
"description": "Auto",
"homeTotal": null,
"autoTotal": 1053.3
}
],
"quote": {
"cars": [
{
"year": 1982,
"make": "JEEP",
"model": "CHEROKEE",
"VIN": "G1F2D3S025A602Q22",
"deductibleCollision": "NONE",
"deductibleComprehensive": "NONE"
},
{
"year": 1990,
"make": "ACURA",
"model": "LEGEND",
"VIN": "H1G2D3S3A33221025",
"deductibleCollision": "NONE",
"deductibleComprehensive": "NONE"
},
{
"year": 2001,
"make": "DODGE",
"model": "CARAVAN",
"VIN": "HG1236D236A258036",
"deductibleCollision": "NONE",
"deductibleComprehensive": "NONE"
},
{
"year": 2018,
"make": "SUBARU",
"model": "CROSSTREK PREMIUM",
"VIN": "JF2GTADC5J8343584",
"deductibleCollision": "500",
"deductibleComprehensive": "500"
}
]
}
}
}
}

requestBind

mutation {
requestBind(
request: {
id: "b577962b-c446-4b27-8ef2-7d6fdd4beb93"
offerId: "c120b739-c1b9-4951-900f-d268b980175a"
optionId: "4118d78a-86e1-4422-8cf5-10d1743a237e"
bindDetails: {
emails: [{ email: "test@test.com" }]
phoneNumbers: [{ number: "+18334272624" }]
mailingAddress: { address: "20 E Broad St", city: "Columbus", state: "OH", zip: "43215" }
attestationsHomeAccepted: "2021-02-27T17:24:37.004Z"
}
}
) {
id
systemId
offerId
optionId
}
}

Example Response

{
"data": {
"requestBind": {
"id": "b577962b-c446-4b27-8ef2-7d6fdd4beb93",
"systemId": "a2e21fa7-d07c-4ab3-a2f4-ed2c3690203e",
"offerId": "c120b739-c1b9-4951-900f-d268b980175a",
"optionId": "4118d78a-86e1-4422-8cf5-10d1743a237e"
}
}
}

getBoundPoliciesByOfferId

query {
getBoundPoliciesByOfferId(input: { offerId: "f33abbd9-af82-4059-b059-00ca4a749f8d" }) {
policies {
offerId
optionId
accountId
policyId
policyType
state
effectiveDate
expirationDate
includeRenters
includeUmbrella
premium
fees {
type
description
amount
}
surplusContribution
applicationUrl
billingDayOfMonth
paymentMethod
paymentType
}
}
}

Example Response

{
"data": {
"getBoundPoliciesByOfferId": {
"policies": [
{
"offerId": "f33abbd9-af82-4059-b059-00ca4a749f8d",
"optionId": "bdd4059e-4746-422b-be1a-e08fbddbf208",
"accountId": "926410200",
"policyId": "926410200-auto-001-BX",
"policyType": "A",
"state": "OH",
"effectiveDate": "2022-03-08",
"expirationDate": "2022-09-08",
"includeRenters": false,
"includeUmbrella": false,
"premium": 471,
"fees": [
{
"type": "installment",
"description": "Installment",
"amount": 18
}
],
"surplusContribution": 9.42,
"applicationUrl": "https://customer-facing-url-to-sign-application.com",
"billingDayOfMonth": 21,
"paymentMethod": "C",
"paymentType": "F"
}
]
}
}
}

getOfferPDF

query {
getPolicyDocuments(input: { policyId: "926410200-auto-001-BX" }) {
documents {
policyId
friendlyName
lastModified
url
}
}
}

Example Response

{
"data": {
"getPolicyDocuments": {
"documents": [
{
"policyId": "926410200-auto-001-BX",
"friendlyName": "Auto Declarations",
"lastModified": "2022-03-08T18:19:14.000Z",
"url": "https://s3.amazonaws.com/presigned-url-to-document.pdf"
},
{
"policyId": "926410200-auto-001-BX",
"friendlyName": "Auto ID Cards",
"lastModified": "2022-03-08T18:19:13.000Z",
"url": "https://s3.amazonaws.com/presigned-url-to-document.pdf"
},
{
"policyId": "926410200-auto-001-BX",
"friendlyName": "Auto Policy",
"lastModified": "2022-03-08T18:19:16.000Z",
"url": "https://s3.amazonaws.com/presigned-url-to-document.pdf"
}
]
}
}
}

getOfferPDF

query {
getOfferPDF(offerId: "f02a8231-2147-4dd0-872c-6d23c0cfe593", optionType: "CA")
}

Example Response

{
"data": {
"getOfferPDF": "https://documentdeliver.com/download/938a02a3-ccf7-4967-ad13-4a4f8cb3faed"
}
}

requestQuoteRC1 with auto details to get home and auto options

query {
requestQuoteRC1(
userInput: {
policyType: "HA"
address: "100 Beatrice Dr"
city: "Dayton"
state: "OH"
zip: "45404"
county: "MONTGOMERY"
fname: "Kurt"
lname: "Muldrew-Clean"
dateOfBirth: "1944-10-01"
driversLicenseNumber: "LA125402"
driversLicenseState: "OH"
autoViolations: [{ date: "2018-04-09", class: "AAF" }]
additionalPeople: [
{
firstName: "Elizabeth"
middleName: "H"
lastName: "Muldrew"
isCoApplicant: true
dateOfBirth: "1981-12-25"
driversLicenseNumber: "RQ666291"
driversLicenseState: "OH"
gender: "F"
highestEducation: "B"
maritalStatus: "M"
}
]
cars: [
{
annualMilesDriven: 8000
purchaseDate: "2023-02-20"
VIN: "JF2GUADC4R8205124"
coverageLoan: false
deductibleCollision: "500"
deductibleComprehensive: "250"
limitRental: "50"
roadsideAssistance: true
}
{
annualMilesDriven: 8000
purchaseDate: "2022-05-29"
VIN: "JM1BPAMLXN1522120"
coverageLoan: false
deductibleCollision: "500"
deductibleComprehensive: "250"
limitRental: "50"
roadsideAssistance: true
}
]
autoCoverage: { policyLimitBIPD: "250/500/250", policyLimitMedicalPayments: "5000", policyLimitUMBI: "250/500" }
highestEducation: "M"
maritalStatus: "M"
}
) {
id
options {
type
name
homeTotal
condoTotal
autoTotal
}
responseStrings
quote {
autoCoverage {
policyLimitBIPD
policyLimitMedicalPayments
policyLimitUMBI
}
cars {
VIN
coverageLoan
deductibleCollision
deductibleComprehensive
limitRental
limitUMPD
limitACPE
year
make
model
primaryUse
purchaseDate
roadsideAssistance
}
drivers {
id
age
excludeDriver
firstName
lastName
gender
highestEducation
maritalStatus
takenCourse
isCoApplicant
isPrimary
fullTimeStudent
}
fname
lname
global {
autoPaymentMethod
autoPaymentType
discountInventoryScore
discountPaperless
}
}
}
}

Example Response

{
"data": {
"requestQuoteRC1": {
"id": "f5de4321-7640-44e5-b893-2ebae476bcbc",
"options": [
{
"type": "A",
"name": "Auto",
"homeTotal": null,
"condoTotal": null,
"autoTotal": 1588.8
},
{
"type": "HA",
"name": "Bundle",
"homeTotal": 1000.72,
"condoTotal": null,
"autoTotal": 1093.08
},
{
"type": "H",
"name": "Homeowners",
"homeTotal": 1200.95,
"condoTotal": null,
"autoTotal": null
}
],
"responseStrings": null,
"quote": {
"autoCoverage": {
"policyLimitBIPD": "25/50/50",
"policyLimitMedicalPayments": "5000",
"policyLimitUMBI": "25/50"
},
"cars": [
{
"VIN": "JF2GUADC4R8205124",
"coverageLoan": false,
"deductibleCollision": "500",
"deductibleComprehensive": "250",
"limitRental": "50",
"limitUMPD": "NONE",
"limitACPE": "NONE",
"year": 2024,
"make": "SUBARU",
"model": "CROSSTREK PREMIUM",
"primaryUse": "C",
"purchaseDate": "2023-02-20",
"roadsideAssistance": true
},
{
"VIN": "JM1BPAMLXN1522120",
"coverageLoan": false,
"deductibleCollision": "500",
"deductibleComprehensive": "250",
"limitRental": "50",
"limitUMPD": "NONE",
"limitACPE": "NONE",
"year": 2022,
"make": "MAZDA",
"model": "MAZDA3 PREMIUM",
"primaryUse": "P",
"purchaseDate": "2022-05-29",
"roadsideAssistance": true
}
],
"drivers": [
{
"id": "5c22932d-9c82-4c64-ac92-a1340b8ddc48",
"age": 78,
"excludeDriver": false,
"firstName": "KURT",
"lastName": "MULDREW-CLEAN",
"gender": "F",
"highestEducation": "B",
"maritalStatus": "M",
"takenCourse": false,
"isCoApplicant": false,
"isPrimary": true,
"fullTimeStudent": false
},
{
"id": "753ff66c-df89-416d-8a1f-3f56b29ee908",
"age": 41,
"excludeDriver": false,
"firstName": "ELIZABETH",
"lastName": "MULDREW",
"gender": "F",
"highestEducation": "B",
"maritalStatus": "M",
"takenCourse": false,
"isCoApplicant": true,
"isPrimary": false,
"fullTimeStudent": false
}
],
"fname": "KURT",
"lname": "MULDREW-CLEAN",
"global": {
"autoPaymentMethod": "C",
"autoPaymentType": "I",
"discountInventoryScore": false,
"discountPaperless": false
}
}
}
}
}

requestQuoteRC1 with home details to get home and auto options

query {
requestQuoteRC1(
userInput: {
policyType: "HA"
address: "100 Beatrice Dr"
city: "Dayton"
state: "OH"
zip: "44287"
county: "MONTGOMERY"
fname: "Kurt"
lname: "Muldrew-Clean"
dateOfBirth: "1944-10-01"
additionalPeople: [
{
firstName: "Elizabeth"
middleName: "H"
lastName: "Muldrew"
isCoApplicant: true
dateOfBirth: "1981-12-25"
gender: "F"
highestEducation: "B"
maritalStatus: "M"
}
]
home: {
purchaseDate: "2021-04-22"
yearBuilt: 2020
numStories: 1
roofType: "C"
numOccupants: 2
numFamiliesInDwelling: 1
numFullBathrooms: 1
sqFt: 1680
constructionType: "F"
}
homeCoverage: {
deductibleAllOther: 1000
deductibleWindHail: 1000
deductibleHurricane: 1000
coverageBPctOfA: 10
coverageCPctOfA: 50
coverageDPctOfA: 20
coverageX: 300000
coverageY: 5000
coverageWaterBackup: 5000
coverageIBSC: 20
coverageRSExtended: false
}
}
) {
id
options {
type
name
homeTotal
condoTotal
autoTotal
}
responseStrings
quote {
drivers {
id
age
firstName
lastName
gender
highestEducation
maritalStatus
isCoApplicant
isPrimary
}
fname
lname
global {
autoPaymentMethod
autoPaymentType
discountInventoryScore
discountPaperless
}
home {
basementSqFt
basementType
constructionType
county
exteriorWallType
fpc
garageCarCapacity
garageType
homeQuality
latitude
longitude
numFamiliesInDwelling
numFireplaces
numFullBathrooms
numHalfBathrooms
numOccupants
numStories
numWoodBurningStoves
ownershipStatus
purchaseDate
roofShape
roofType
roofYear
sqFt
yearBuilt
}
homeCoverage {
coverageA
coverageBPctOfA
coverageCPctOfA
coverageDPctOfA
coverageEBSL
coverageIBSC
coverageRSExtended
coverageWaterBackup
coverageX
coverageY
deductibleAllOther
deductibleWindHail
}
}
}
}

Example Response

{
"data": {
"requestQuoteRC1": {
"id": "a68bf4b7-5241-48ea-8cf5-010c14c9c3e0",
"options": [
{
"type": "A",
"name": "Auto",
"homeTotal": null,
"condoTotal": null,
"autoTotal": 689.16
},
{
"type": "HA",
"name": "Bundle",
"homeTotal": 996.05,
"condoTotal": null,
"autoTotal": 432.12
},
{
"type": "H",
"name": "Homeowners",
"homeTotal": 1187.72,
"condoTotal": null,
"autoTotal": null
}
],
"responseStrings": null,
"quote": {
"drivers": [
{
"id": "b441cd45-a675-42a5-9f76-1290a37a9750",
"age": 78,
"firstName": "KURT",
"lastName": "MULDREW",
"gender": "F",
"highestEducation": "B",
"maritalStatus": "M",
"isCoApplicant": false,
"isPrimary": true
},
{
"id": "33c58c9e-4c1f-4960-ba9e-46aa0b12d6d2",
"age": 41,
"firstName": "ELIZABETH",
"lastName": "MULDREW",
"gender": "F",
"highestEducation": "B",
"maritalStatus": "M",
"isCoApplicant": true,
"isPrimary": false
}
],
"fname": "KURT",
"lname": "MULDREW",
"global": {
"autoPaymentMethod": "C",
"autoPaymentType": "I",
"discountInventoryScore": false,
"discountPaperless": false
},
"home": {
"basementSqFt": 0,
"basementType": "U",
"constructionType": "F",
"county": "MONTGOMERY",
"exteriorWallType": "B",
"fpc": "8B",
"garageCarCapacity": 0,
"garageType": "X",
"homeQuality": "S",
"latitude": 39.802834,
"longitude": -84.149818,
"numFamiliesInDwelling": 1,
"numFireplaces": 2,
"numFullBathrooms": 1,
"numHalfBathrooms": 0,
"numOccupants": 2,
"numStories": 1,
"numWoodBurningStoves": 0,
"ownershipStatus": "P",
"purchaseDate": "2021-04-22",
"roofShape": "O",
"roofType": "C",
"roofYear": 1993,
"sqFt": 1092,
"yearBuilt": 1957
},
"homeCoverage": {
"coverageA": 298000,
"coverageBPctOfA": 10,
"coverageCPctOfA": 60,
"coverageDPctOfA": 20,
"coverageEBSL": false,
"coverageIBSC": 10,
"coverageRSExtended": false,
"coverageWaterBackup": 5000,
"coverageX": 100000,
"coverageY": 1000,
"deductibleAllOther": 1000,
"deductibleWindHail": 1000
}
}
}
}
}

createLifeInsuranceOffer

query {
createLifeInsuranceOffer(input: { offerId: "7f3712bb-803b-426f-aa0b-633b1cc3f044" }) {
__typename
... on CreateLifeInsuranceOfferSuccessResponse {
customerFacingUrl
defaultBenefitAmount
monthlyPremiumAmountForDefaultBenefitAmount
annualPremiumAmountForDefaultBenefitAmount
}
... on CreateLifeInsuranceOfferProspectNotEligibleResponse {
code
message
}
}
}

Example Success Response

{
"data": {
"createLifeInsuranceOffer": {
"__typename": "CreateLifeInsuranceOfferSuccessResponse",
"customerFacingUrl": "https://adithya.ourbranch.dev/life/applicant/11052bb7-e855-4b84-8ec2-cf75da18ed2e",
"defaultBenefitAmount": 225000,
"monthlyPremiumAmountForDefaultBenefitAmount": 33.02,
"annualPremiumAmountForDefaultBenefitAmount": 379.5
}
}
}

Example Failure Response

{
"data": {
"createLifeInsuranceOffer": {
"__typename": "CreateLifeInsuranceOfferProspectNotEligibleResponse",
"code": "NotInAgeRange",
"message": "The person being insured is not in the age range that this product is available for in OH."
}
}
}

createLifeInsuranceOffer with specific person as primary insured

query {
createLifeInsuranceOffer(
input: { offerId: "7f3712bb-803b-426f-aa0b-633b1cc3f044", personId: "8601f33b-2f82-447d-8bf4-d09c3e8289f8" }
) {
__typename
... on CreateLifeInsuranceOfferSuccessResponse {
customerFacingUrl
defaultBenefitAmount
monthlyPremiumAmountForDefaultBenefitAmount
annualPremiumAmountForDefaultBenefitAmount
}
... on CreateLifeInsuranceOfferProspectNotEligibleResponse {
code
message
}
}
}