@instabrain-sdks/api-client 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +773 -86
- package/dist/client/instabrain-client.d.ts +38 -1
- package/dist/client/instabrain-client.js +44 -0
- package/dist/services/ibterm.service.d.ts +66 -0
- package/dist/services/ibterm.service.js +75 -0
- package/dist/types/adb.types.d.ts +2 -2
- package/dist/types/application.types.d.ts +2 -2
- package/dist/types/enums.d.ts +92 -13
- package/dist/types/enums.js +103 -19
- package/dist/types/errors.js +20 -14
- package/dist/types/gigdb.types.d.ts +1 -1
- package/dist/types/ibterm.types.d.ts +310 -0
- package/dist/types/ibterm.types.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/quote.types.d.ts +45 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,11 +28,12 @@ Credentials (`userId` and `accessToken`) are provisioned during onboarding.
|
|
|
28
28
|
14. [Beneficiary Reference](#beneficiary-reference)
|
|
29
29
|
15. [Error Handling](#error-handling)
|
|
30
30
|
16. [APIErrorCode Reference](#apierrorcode-reference)
|
|
31
|
-
17. [
|
|
32
|
-
18. [
|
|
33
|
-
19. [
|
|
34
|
-
20. [
|
|
35
|
-
21. [
|
|
31
|
+
17. [Field-Level Error Messages](#field-level-error-messages)
|
|
32
|
+
18. [Environment Configuration](#environment-configuration)
|
|
33
|
+
19. [Token Management](#token-management)
|
|
34
|
+
20. [Examples Directory](#examples-directory)
|
|
35
|
+
21. [Changelog](#changelog)
|
|
36
|
+
22. [Support](#support)
|
|
36
37
|
|
|
37
38
|
---
|
|
38
39
|
|
|
@@ -550,24 +551,41 @@ See [Secure Sign Flow](#secure-sign-flow) and [Final Submit](#final-submit).
|
|
|
550
551
|
|
|
551
552
|
## IB Term Flow
|
|
552
553
|
|
|
553
|
-
> **
|
|
554
|
-
>
|
|
555
|
-
> **Not available in:** WY, NY
|
|
554
|
+
> **Eligibility:** Ages 18–60. **Not available in:** WY, NY.
|
|
556
555
|
|
|
557
556
|
### Complete flow
|
|
558
557
|
|
|
559
558
|
```
|
|
560
|
-
|
|
559
|
+
getIBTermRiderDetails() ← optional pre-quote — check state availability & filter riders by age + nicotine
|
|
561
560
|
↓
|
|
562
|
-
|
|
561
|
+
getQuote() ← IB Term quote (current SDK uses the generic getQuote method)
|
|
563
562
|
↓
|
|
564
|
-
|
|
563
|
+
startIBTermApplication() ← NEW — typed IB Term Start Application wrapper
|
|
565
564
|
↓
|
|
566
|
-
|
|
565
|
+
saveEftPayment() ← shared with GIGDB / ADB
|
|
566
|
+
↓
|
|
567
|
+
prepareDocsAndGetDeliveryChannels() → sendPinAndGetDocumentsLink() → verifyPin()
|
|
567
568
|
↓
|
|
568
569
|
finalSubmit()
|
|
569
570
|
```
|
|
570
571
|
|
|
572
|
+
### Step 0 - `getIBTermRiderDetails(stateCode, age, flagNicotineUse)` (optional pre-step)
|
|
573
|
+
|
|
574
|
+
Call this before `getQuote()` to check whether IB Term is available for the applicant's state, age, and nicotine-use status, and to collect the rider codes available for that combination.
|
|
575
|
+
|
|
576
|
+
```typescript
|
|
577
|
+
const riderDetails = await client.getIBTermRiderDetails('TX', 35, false);
|
|
578
|
+
|
|
579
|
+
if (riderDetails.flagProductNotAvailableForState) {
|
|
580
|
+
// IB Term is not available for this state/age/nicotine combo — do not proceed
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// riderDetails.riders[].riderCode → pass into ThirdPartyQuoteReq.riders[n].rider on the quote
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
> `flagProductNotAvailableForState: true` is a valid business state (not an error). The SDK returns it as-is; do not throw.
|
|
588
|
+
|
|
571
589
|
### Step 1 - `getQuote(request: ThirdPartyQuoteReq)`
|
|
572
590
|
|
|
573
591
|
Provide exactly one of three mutually exclusive rating inputs:
|
|
@@ -608,29 +626,179 @@ const { quoteResponseId } = quoteResp.selectedQuote;
|
|
|
608
626
|
- `zipCode` takes priority over `stateCode` if both are provided
|
|
609
627
|
- `dateOfBirth` takes priority over `age` if both are provided
|
|
610
628
|
|
|
611
|
-
|
|
629
|
+
**Required-field rules (enforced server-side):**
|
|
630
|
+
|
|
631
|
+
- `benefitPeriod` is **required**.
|
|
632
|
+
- **Rating input** — supply exactly ONE group: `rateClass`, OR `healthClass`, OR `height` + `weightInLbs` together. `height` is optional in the type (omit it when rating via `rateClass`/`healthClass`).
|
|
633
|
+
- **Age** — supply `age` OR `dateOfBirth`; resolved age must be **18–60**.
|
|
634
|
+
- **Location** — supply `stateCode` OR `zipCode`.
|
|
635
|
+
|
|
636
|
+
> The IB Term Quote endpoint returns failures in **two shapes**:
|
|
637
|
+
>
|
|
638
|
+
> 1. **Request validation** (HTTP 400, `value.fields`) — top-level `error` is usually `InvalidRequestFormat`. The two cross-field eligibility checks below can also be returned as top-level codes in this same shape:
|
|
639
|
+
> - `BenefitPeriodNotAvailable` — `BenefitPeriod` is not allowed for the selected state, age, and smoker status (carrier params).
|
|
640
|
+
> - `CoverageNotAvailable` — `FaceAmount` is outside the min/max/step for the selected state, age, and smoker status (carrier params).
|
|
641
|
+
> 2. **Business rules** (HTTP 400, `value: null`) — top-level `error` is `BenefitPeriodNotAvailable`, `CoverageNotAvailable`, `outsideBuildChart`, `QuoteNotEligibleForGivenConditions`, `NotAvailableForState`, `RiderNotAvailable`, or `RiderFaceAmountNotValid`.
|
|
642
|
+
>
|
|
643
|
+
> Detect specific failures with `err.isErrorType(APIErrorCode.X)`. See [APIErrorCode Reference → IB Term Quote Business Errors](#ib-term-quote-business-errors).
|
|
644
|
+
|
|
645
|
+
### Step 1a - `getExistingIBTermQuote(opportunityId)` (resume / review an existing quote)
|
|
646
|
+
|
|
647
|
+
Retrieve a previously created IB Term quote by its opportunity ID — useful for resuming or reviewing a quote without re-quoting.
|
|
612
648
|
|
|
613
649
|
```typescript
|
|
614
|
-
const
|
|
650
|
+
const quoteResp = await client.getExistingIBTermQuote(opportunityId);
|
|
651
|
+
const { quoteResponseId, quoteAmount } = quoteResp.selectedQuote;
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
> A not-found result is an **error** (surfaced via the SDK error model), not a valid business state. Invalid/missing `opportunityId` → `APIValidationError` (`InvalidRequestFormat`); a non-IB-Term opportunity → field-level `Opportunity does not match the IB Term product`; an opportunity with no stored quote → `QuoteNotFound`.
|
|
655
|
+
|
|
656
|
+
### Step 2 - `startIBTermApplication(request: IBTermStartApplicationReq)`
|
|
657
|
+
|
|
658
|
+
The IB Term Start Application takes a fully typed request with applicant info, address, birth jurisdiction, height/weight, driver license, primary care physician, structured tobacco/nicotine usage, beneficiary details, and (when the Dependent Child Rider was selected on the quote) child rider info.
|
|
659
|
+
|
|
660
|
+
```typescript
|
|
661
|
+
import {
|
|
662
|
+
BeneficiaryType,
|
|
663
|
+
BeneficiaryRelationship,
|
|
664
|
+
Gender,
|
|
665
|
+
TobaccoNicotineLastUsedPeriod,
|
|
666
|
+
TobaccoNicotineProductType,
|
|
667
|
+
} from '@instabrain-sdks/api-client';
|
|
668
|
+
|
|
669
|
+
const appResp = await client.startIBTermApplication({
|
|
615
670
|
quoteResponseId: quoteResp.selectedQuote.quoteResponseId,
|
|
616
671
|
firstName: 'John',
|
|
617
672
|
lastName: 'Smith',
|
|
618
673
|
email: 'john.smith@example.com',
|
|
619
|
-
phoneNumber: '5559876543'
|
|
674
|
+
phoneNumber: '5559876543', // 10-digit local OR E.164 ('+15559876543')
|
|
675
|
+
isUsCitizenOrIsPermanentResident: true,
|
|
676
|
+
isPayerAlsoOwnerAndInsured: true, // must be true; knockout otherwise
|
|
677
|
+
dateOfBirth: '1988-03-20',
|
|
678
|
+
socialSecurityNumber: '123456789',
|
|
679
|
+
address: {
|
|
680
|
+
addressLine1: '456 Oak Ave',
|
|
681
|
+
city: 'Dallas',
|
|
682
|
+
state: 'TX',
|
|
683
|
+
zipcode: '75201',
|
|
684
|
+
},
|
|
685
|
+
birthJurisdiction: { country: 'US', state: 'TX' },
|
|
686
|
+
height: { feet: 5, inches: 10 },
|
|
687
|
+
weight: 175,
|
|
688
|
+
isHoldingValidDriverLicense: true,
|
|
689
|
+
driverLicenseState: 'TX', // flat field, NOT nested
|
|
690
|
+
driverLicenseNumber: 'D12345678', // flat field, NOT nested
|
|
691
|
+
hasPrimaryCarePhysician: false,
|
|
692
|
+
physicianDetails: null,
|
|
693
|
+
tobaccoNicotineUsage: {
|
|
694
|
+
lastUsedPeriod: TobaccoNicotineLastUsedPeriod.Never,
|
|
695
|
+
lastTimeUsed: null, // null when lastUsedPeriod === Never
|
|
696
|
+
productTypesUsed: null, // null when lastUsedPeriod === Never
|
|
697
|
+
},
|
|
698
|
+
areListedConditionsNotApplicable: true, // false → declined (knockout)
|
|
699
|
+
hasExistingCoverage: false,
|
|
700
|
+
beneficiaryDetails: {
|
|
701
|
+
beneficiaryType: BeneficiaryType.Person,
|
|
702
|
+
beneficiaryPerson: {
|
|
703
|
+
firstName: 'Mary',
|
|
704
|
+
lastName: 'Smith',
|
|
705
|
+
relationship: BeneficiaryRelationship.Spouse,
|
|
706
|
+
},
|
|
707
|
+
},
|
|
620
708
|
});
|
|
621
709
|
|
|
622
|
-
|
|
710
|
+
if (appResp.isDeclined) {
|
|
711
|
+
// Valid knockout — stop the flow
|
|
712
|
+
return;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
const { opportunityId } = appResp;
|
|
623
716
|
```
|
|
624
717
|
|
|
625
|
-
**
|
|
718
|
+
**Knockout rules — returns `isDeclined: true` (not an error, not thrown):**
|
|
719
|
+
|
|
720
|
+
- `isPayerAlsoOwnerAndInsured === false` → declined
|
|
721
|
+
- `isUsCitizenOrIsPermanentResident === false` → declined
|
|
722
|
+
- `areListedConditionsNotApplicable === false` → declined (one or more of the listed health conditions applies to the applicant)
|
|
723
|
+
- Any child knockout (`isAnyChildTakingMedication`, `isAnyChildDiagnosedWithDisability`, `isAnyChildDiagnosedWithSevereCondition`, `isAnyChildAdvisedForSurgery`) set to `true` → declined when Dependent Child Rider is selected
|
|
724
|
+
|
|
725
|
+
> IB Term does **NOT** use `ApplicationLimitReached` (that applies to ADB / GIGDB only).
|
|
726
|
+
|
|
727
|
+
**Beneficiary type restriction:** IB Term accepts only `Person`, `Trust`, `Insured Estate`, `All Children Of The Insured Equally`, and `All Children Of The Marriage Equally`. The Business / Corporation / Charitable Organization / Employer / Other named-entity types are **not accepted** by IB Term — the SDK uses the shared `BeneficiaryDetails` union but the restriction is enforced server-side.
|
|
728
|
+
|
|
729
|
+
#### Driver license
|
|
626
730
|
|
|
731
|
+
Driver license is two **flat fields** on the request (not a nested object): `driverLicenseState` and `driverLicenseNumber`. When `isHoldingValidDriverLicense === true`, supply both (2-letter US state + license number). When `false`, both must be `null`.
|
|
732
|
+
|
|
733
|
+
#### Primary care physician
|
|
734
|
+
|
|
735
|
+
When `hasPrimaryCarePhysician === true`, supply `physicianDetails.{physicianName, city, stateCode, lastSeen}` (`lastSeen` is `YYYY-MM`, must be in the past). When `false`, `physicianDetails` must be `null`. Physician's `stateCode` cannot be "Outside Of The USA".
|
|
736
|
+
|
|
737
|
+
#### Tobacco / nicotine usage
|
|
738
|
+
|
|
739
|
+
IB Term uses a structured `tobaccoNicotineUsage` object — **not** a boolean `isSmoker` flag like ADB / GIGDB.
|
|
740
|
+
|
|
741
|
+
- When `lastUsedPeriod === TobaccoNicotineLastUsedPeriod.Never` (`'never used'`), both `lastTimeUsed` and `productTypesUsed` **must be `null`**.
|
|
742
|
+
- Otherwise: supply `lastTimeUsed` (`YYYY-MM`) AND at least one `productTypesUsed` value. If `productTypesUsed` includes `Cigars`, `cigarUsagePerYear` (1–999) is required.
|
|
743
|
+
|
|
744
|
+
#### Child rider (when Dependent Child Rider was selected on the quote)
|
|
745
|
+
|
|
746
|
+
> Backend field-name quirks: child `dateOfBirth` serializes as **`dob`**, child `relationship` serializes as **`relation`**. The SDK field names match the wire format (`dob`, `relation`) — don't use `dateOfBirth` / `relationship`, they will be silently dropped.
|
|
747
|
+
|
|
748
|
+
```typescript
|
|
749
|
+
childRiderInfo: {
|
|
750
|
+
hasExistingCoverageForChildren: true,
|
|
751
|
+
isAnyChildTakingMedication: false,
|
|
752
|
+
isAnyChildDiagnosedWithDisability: false,
|
|
753
|
+
isAnyChildDiagnosedWithSevereCondition: false,
|
|
754
|
+
isAnyChildAdvisedForSurgery: false,
|
|
755
|
+
childrenToBeInsuredDetails: [{
|
|
756
|
+
firstName: 'Alice',
|
|
757
|
+
lastName: 'Smith',
|
|
758
|
+
gender: Gender.Female,
|
|
759
|
+
dob: '2020-05-10', // 15 days – under 18 years (BE field: DOB → dob)
|
|
760
|
+
height: { feet: 3, inches: 6 },
|
|
761
|
+
weight: 40,
|
|
762
|
+
relation: 'Daughter', // BE field: Relation → relation
|
|
763
|
+
}],
|
|
764
|
+
existingCoverageInfoForChildren: [{
|
|
765
|
+
nameOfTheCompany: 'KidsCo',
|
|
766
|
+
insuranceAmount: '25000', // string, NOT number (matches adult coverage shape)
|
|
767
|
+
policyNumber: 'POL-1',
|
|
768
|
+
dateOfIssue: '2022-01',
|
|
769
|
+
toBeReplaced: false, // required
|
|
770
|
+
toBeFinanced: false, // required
|
|
771
|
+
}],
|
|
772
|
+
}
|
|
773
|
+
```
|
|
627
774
|
|
|
628
|
-
|
|
629
|
-
| --------------- | -------------------------------------------------------------------- |
|
|
630
|
-
| `agentLink` | URL for the agent to complete their section in the InstaBrain portal |
|
|
631
|
-
| `eAppAgentLink` | Alternate agent URL used in eApp mode (some partner configurations) |
|
|
632
|
-
| `applicantLink` | URL sent to the proposed insured for their self-service section |
|
|
775
|
+
Max 10 children. Max 10 child existing-coverage entries. Total "not-being-replaced" coverage amounts must not exceed $100,000.
|
|
633
776
|
|
|
777
|
+
#### State-specific existing-coverage fields (Q-08)
|
|
778
|
+
|
|
779
|
+
IB Term enforces the **same state-specific matrix as GIGDB** — see the [GIGDB state-specific Other Insurance fields](#state-specific-other-insurance-fields-q-08) section. When `hasExistingCoverage === true`:
|
|
780
|
+
|
|
781
|
+
| State | Field on `existingCoverages[]` | Type |
|
|
782
|
+
|-----------|------------------------------------|-----------|
|
|
783
|
+
| MA | `requestsYieldIndices` | `boolean` |
|
|
784
|
+
| OK | `notifyPresentInsurer` | `boolean` |
|
|
785
|
+
| DE / GA | `wantsPolicySummary` | `boolean` |
|
|
786
|
+
| FL | `wantsComparativeInformationForm` | `boolean` |
|
|
787
|
+
|
|
788
|
+
For **RI** / **WV**, set `existingCoverageData.areExistingPoliciesIssuedByFidelity`. For **KS** / **WA** with `willOtherCoverageBeReplacedOrFinanced=true`, populate the top-level `willOtherCoverageBeReplacedOrFinancedData` block — same shape as GIGDB (see the GIGDB section for the full WA `otherInsuranceReplacementData` field table).
|
|
789
|
+
|
|
790
|
+
### Legacy `startApplication(request: ThirdPartyStartApplicationReq)`
|
|
791
|
+
|
|
792
|
+
The original 5-field `startApplication()` method remains available for backward compatibility but **`startIBTermApplication()` is the recommended path**. The legacy method only returns iframe links (`agentLink`, `eAppAgentLink`, `applicantLink`) — it does not give you a typed `opportunityId` you can hand off to EFT / Secure Sign / Final Submit.
|
|
793
|
+
|
|
794
|
+
```typescript
|
|
795
|
+
// Legacy iframe-driven flow:
|
|
796
|
+
const appResp = await client.startApplication({
|
|
797
|
+
quoteResponseId, firstName: 'John', lastName: 'Smith',
|
|
798
|
+
email: 'john.smith@example.com', phoneNumber: '5559876543',
|
|
799
|
+
});
|
|
800
|
+
const { agentLink, applicantLink } = appResp;
|
|
801
|
+
```
|
|
634
802
|
|
|
635
803
|
### Steps 3–4 - Secure Sign → Final Submit
|
|
636
804
|
|
|
@@ -977,7 +1145,7 @@ filters: [
|
|
|
977
1145
|
| `firstName` | `string` | No | Max 35 chars |
|
|
978
1146
|
| `lastName` | `string` | No | Max 35 chars |
|
|
979
1147
|
| `email` | `string` | No | Valid email format |
|
|
980
|
-
| `phoneNum` | `string` | No | 10-digit
|
|
1148
|
+
| `phoneNum` | `string` | No | 10-digit local or E.164 (e.g. `+11234567890`) |
|
|
981
1149
|
|
|
982
1150
|
|
|
983
1151
|
### `ThirdPartyAdbAppReq`
|
|
@@ -989,7 +1157,7 @@ filters: [
|
|
|
989
1157
|
| `firstName` | `string` | Yes | Max 35 chars |
|
|
990
1158
|
| `lastName` | `string` | Yes | Max 35 chars |
|
|
991
1159
|
| `email` | `string` | Yes | Valid email format |
|
|
992
|
-
| `phoneNumber` | `string` | Yes | 10-digit
|
|
1160
|
+
| `phoneNumber` | `string` | Yes | 10-digit local or E.164 (e.g. `+11234567890`) |
|
|
993
1161
|
| `isUsCitizen` | `boolean` | Yes | |
|
|
994
1162
|
| `isLegalUsResident` | `boolean` | No | Required when `isUsCitizen = false` |
|
|
995
1163
|
| `isPayerAlsoOwnerAndInsured` | `boolean` | Yes | Must be `true`; knockout if `false` |
|
|
@@ -1054,23 +1222,224 @@ filters: [
|
|
|
1054
1222
|
|
|
1055
1223
|
> Use `saveEftPayment()` for both GIGDB and ADB — both products share the same `POST /api/ThirdPartyPayment/save-eft-payment` endpoint.
|
|
1056
1224
|
|
|
1225
|
+
### `IBTermStartApplicationReq`
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
| Field | Type | Required | Constraints |
|
|
1229
|
+
| --- | --- | --- | --- |
|
|
1230
|
+
| `quoteResponseId` | `string` | Yes | UUID from IB Term quote response |
|
|
1231
|
+
| `firstName` | `string` | Yes | Alphabetic only |
|
|
1232
|
+
| `lastName` | `string` | Yes | Alphabetic only |
|
|
1233
|
+
| `email` | `string` | Yes | Valid email format |
|
|
1234
|
+
| `phoneNumber` | `string` | Yes | 10-digit local or E.164 (e.g. `+11234567890`) |
|
|
1235
|
+
| `isUsCitizenOrIsPermanentResident` | `boolean` | Yes | Single combined field (IB Term variant) |
|
|
1236
|
+
| `isPayerAlsoOwnerAndInsured` | `boolean` | Yes | Must be `true`; knockout otherwise |
|
|
1237
|
+
| `dateOfBirth` | `string` | Yes | ISO date; age 18–60 |
|
|
1238
|
+
| `socialSecurityNumber` | `string` | Yes | `XXXXXXXXX` or `XXX-XX-XXXX` |
|
|
1239
|
+
| `address` | `IBTermAddress` | Yes | See sub-fields below |
|
|
1240
|
+
| `birthJurisdiction` | `IBTermBirthJurisdiction` | Yes | See sub-fields below |
|
|
1241
|
+
| `height` | `IBTermHeight` | Yes | See sub-fields below |
|
|
1242
|
+
| `weight` | `number` | Yes | Must be > 0 |
|
|
1243
|
+
| `isHoldingValidDriverLicense` | `boolean` | Yes | |
|
|
1244
|
+
| `driverLicenseState` | `string | null` | Yes (nullable) | 2-letter US state. Non-null when `isHoldingValidDriverLicense === true`; `null` when `false`. BE field: `DriverLicenseState` (top-level flat). |
|
|
1245
|
+
| `driverLicenseNumber` | `string | null` | Yes (nullable) | Non-null when `isHoldingValidDriverLicense === true`; `null` when `false`. BE field: `DriverLicenseNumber` (top-level flat). |
|
|
1246
|
+
| `hasPrimaryCarePhysician` | `boolean` | Yes | |
|
|
1247
|
+
| `physicianDetails` | `IBTermPhysicianDetails | null` | No |
|
|
1248
|
+
| `tobaccoNicotineUsage` | `IBTermTobaccoNicotineUsage` | Yes | Structured object — see sub-fields |
|
|
1249
|
+
| `areListedConditionsNotApplicable` | `boolean` | Yes | Required acknowledgement. `false` → knockout (declined) |
|
|
1250
|
+
| `hasExistingCoverage` | `boolean` | Yes | |
|
|
1251
|
+
| `willOtherCoverageBeReplacedOrFinanced` | `boolean` | No | Required when `hasExistingCoverage = true` |
|
|
1252
|
+
| `existingCoverageData` | `IBTermExistingCoverageData` | No | Required when `hasExistingCoverage = true` |
|
|
1253
|
+
| `willOtherCoverageBeReplacedOrFinancedData` | `IBTermWillOtherCoverageBeReplacedOrFinancedData` | No | Required when `address.state` is `"KS"` or `"WA"` AND `willOtherCoverageBeReplacedOrFinanced === true` |
|
|
1254
|
+
| `beneficiaryDetails` | `BeneficiaryDetails` | Yes | Restricted to Person / Trust / Insured Estate / All-children-of-insured-equally / All-children-of-marriage-equally |
|
|
1255
|
+
| `childRiderInfo` | `IBTermChildRiderInfo` | No | Required when Dependent Child Rider was selected on the quote |
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
`**IBTermAddress`:**
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
| Field | Type | Constraints |
|
|
1262
|
+
| -------------- | -------- | ------------------------------------------- |
|
|
1263
|
+
| `addressLine1` | `string` | Avoid special characters |
|
|
1264
|
+
| `city` | `string` | Letters and spaces only |
|
|
1265
|
+
| `state` | `string` | 2-char; must match state used at quote time |
|
|
1266
|
+
| `zipcode` | `string` | 5-digit numeric |
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
`**IBTermBirthJurisdiction`:**
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
| Field | Type | Required | Notes |
|
|
1273
|
+
| --------- | -------- | -------- | --------------------------------------------- |
|
|
1274
|
+
| `country` | `string` | Yes | ISO country code (e.g. `"US"`) |
|
|
1275
|
+
| `state` | `string` | No | 2-letter US state; required when `country === "US"` |
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
`**IBTermHeight`:**
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
| Field | Type | Constraints |
|
|
1282
|
+
| -------- | -------- | ---------------- |
|
|
1283
|
+
| `feet` | `number` | 1–8 inclusive |
|
|
1284
|
+
| `inches` | `number` | 0–11 inclusive |
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
`**IBTermPhysicianDetails`:**
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
| Field | Type | Constraints |
|
|
1291
|
+
| --------------- | -------- | ------------------------------------------------------ |
|
|
1292
|
+
| `physicianName` | `string` | Required when `hasPrimaryCarePhysician === true`. BE field: `PhysicianDetails.PhysicianName` |
|
|
1293
|
+
| `city` | `string` | Physician's city. BE field: `PhysicianDetails.City` |
|
|
1294
|
+
| `stateCode` | `string` | 2-letter US; "Outside Of The USA" not accepted. BE field: `PhysicianDetails.StateCode` |
|
|
1295
|
+
| `lastSeen` | `string` | `YYYY-MM`, must be in the past |
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
`**IBTermTobaccoNicotineUsage`:**
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
| Field | Type | Required | Constraints |
|
|
1302
|
+
| -------------------- | ------------------------------------------ | --------------- | ------------------------------------------------------ |
|
|
1303
|
+
| `lastUsedPeriod` | `TobaccoNicotineLastUsedPeriod` | Yes | Use enum values |
|
|
1304
|
+
| `lastTimeUsed` | `string | null` | Yes (nullable) | `YYYY-MM`. **Must be `null`** when `lastUsedPeriod === Never` (`'never used'`); non-null otherwise. |
|
|
1305
|
+
| `productTypesUsed` | `TobaccoNicotineProductType[] | null` | Yes (nullable) | **Must be `null`** when `lastUsedPeriod === Never`; non-null with ≥1 entry otherwise. BE field: `TobaccoNicotineUsage.ProductTypesUsed` |
|
|
1306
|
+
| `cigarUsagePerYear` | `number` | No | 1–999; required when `productTypesUsed` includes `Cigars` |
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
`**IBTermExistingCoverageData`:**
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
| Field | Type | Required | Notes |
|
|
1313
|
+
| ------------------------------------- | --------------------------------- | -------- | ----- |
|
|
1314
|
+
| `isExistingPolicyBeingTerminated` | `boolean` | Yes | |
|
|
1315
|
+
| `existingCoverages` | `IBTermExistingCoverageInfo[]` | Yes | At least one entry when present |
|
|
1316
|
+
| `areExistingPoliciesIssuedByFidelity` | `boolean` | No | Required when `address.state` is `"RI"` or `"WV"` |
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
`**IBTermExistingCoverageInfo`:**
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
| Field | Type | Required | Notes |
|
|
1323
|
+
| --------------------------------- | --------- | -------- | ----- |
|
|
1324
|
+
| `nameOfTheCompany` | `string` | Yes | |
|
|
1325
|
+
| `insuranceAmount` | `string` | Yes | |
|
|
1326
|
+
| `dateOfIssue` | `string` | Yes | `YYYY-MM` |
|
|
1327
|
+
| `toBeReplaced` | `boolean` | Yes | |
|
|
1328
|
+
| `toBeFinanced` | `boolean` | Yes | |
|
|
1329
|
+
| `requestsYieldIndices` | `boolean` | No | Required when `address.state === "MA"` |
|
|
1330
|
+
| `notifyPresentInsurer` | `boolean` | No | Required when `address.state === "OK"` |
|
|
1331
|
+
| `wantsPolicySummary` | `boolean` | No | Required when `address.state` is `"DE"` or `"GA"` |
|
|
1332
|
+
| `wantsComparativeInformationForm` | `boolean` | No | Required when `address.state === "FL"` |
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
`**IBTermWillOtherCoverageBeReplacedOrFinancedData`:**
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
| Field | Type | Required | Notes |
|
|
1339
|
+
| -------------------------------------- | ------------------------------------- | -------- | ----- |
|
|
1340
|
+
| `areReplacedPoliciesIssuedByFidelity` | `boolean` | No | Required when `address.state === "KS"` AND `willOtherCoverageBeReplacedOrFinanced === true` |
|
|
1341
|
+
| `otherInsuranceReplacementData` | `IBTermOtherInsuranceReplacementData` | No | Required when `address.state === "WA"` AND `willOtherCoverageBeReplacedOrFinanced === true` |
|
|
1342
|
+
|
|
1343
|
+
|
|
1344
|
+
`**IBTermOtherInsuranceReplacementData`:** *(WA only; mirrors `GigdbOtherInsuranceReplacementData`)*
|
|
1345
|
+
|
|
1346
|
+
> All 7 booleans are server-required. Each `specify*` string is required when its paired boolean is `true`; may be omitted or `null` otherwise.
|
|
1347
|
+
|
|
1348
|
+
| Field | Type | Notes |
|
|
1349
|
+
| -------------------------------------- | -------- | ----- |
|
|
1350
|
+
| `mayReduceBenefitsIncreasePremiums` | `boolean` | Always required |
|
|
1351
|
+
| `specifyReduceBenefitsIncreasePremiums`| `string` | Required when `mayReduceBenefitsIncreasePremiums === true` |
|
|
1352
|
+
| `hasNewPolicyCharges` | `boolean` | Always required |
|
|
1353
|
+
| `specifyNewPolicyCharges` | `string` | Required when `hasNewPolicyCharges === true` |
|
|
1354
|
+
| `hasPriorPolicyCharges` | `boolean` | Always required |
|
|
1355
|
+
| `specifyPriorPolicyCharges` | `string` | Required when `hasPriorPolicyCharges === true` |
|
|
1356
|
+
| `hasTaxConsequences` | `boolean` | Always required |
|
|
1357
|
+
| `specifyTaxConsequences` | `string` | Required when `hasTaxConsequences === true` |
|
|
1358
|
+
| `hasInterestConsiderations` | `boolean` | Always required |
|
|
1359
|
+
| `specifyInterestConsiderations` | `string` | Required when `hasInterestConsiderations === true` |
|
|
1360
|
+
| `hasMinRequirementsBeforeInterest` | `boolean` | Always required |
|
|
1361
|
+
| `specifyMinRequirementsBeforeInterest` | `string` | Required when `hasMinRequirementsBeforeInterest === true` |
|
|
1362
|
+
| `hasOtherAdverseEffects` | `boolean` | Always required |
|
|
1363
|
+
| `specifyOtherAdverseEffects` | `string` | Required when `hasOtherAdverseEffects === true` |
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
`**IBTermChildRiderInfo`:**
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
| Field | Type | Required | Notes |
|
|
1370
|
+
| ------------------------------------------- | --------------------------------- | -------- | ----- |
|
|
1371
|
+
| `hasExistingCoverageForChildren` | `boolean` | Yes | |
|
|
1372
|
+
| `isAnyChildTakingMedication` | `boolean` | Yes | Knockout when `true` |
|
|
1373
|
+
| `isAnyChildDiagnosedWithDisability` | `boolean` | Yes | Knockout when `true` |
|
|
1374
|
+
| `isAnyChildDiagnosedWithSevereCondition` | `boolean` | Yes | Knockout when `true` |
|
|
1375
|
+
| `isAnyChildAdvisedForSurgery` | `boolean` | Yes | Knockout when `true` |
|
|
1376
|
+
| `childrenToBeInsuredDetails` | `IBTermChildToBeInsured[]` | Yes | 1–10 entries |
|
|
1377
|
+
| `existingCoverageInfoForChildren` | `IBTermChildExistingCoverage[]` | No | Required when `hasExistingCoverageForChildren === true`; max 10 entries; total non-replaced coverage ≤ $100,000 |
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
`**IBTermChildToBeInsured`:**
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
| Field | Type | Constraints |
|
|
1384
|
+
| ------------- | --------------- | --------------------------------------------------- |
|
|
1385
|
+
| `firstName` | `string` | Alphabetic only |
|
|
1386
|
+
| `lastName` | `string` | Alphabetic only |
|
|
1387
|
+
| `gender` | `Gender` | Use enum |
|
|
1388
|
+
| `dob` | `string` | ISO date; 15 days – under 18 years old. BE field name: `DOB` (serializes as `dob`) |
|
|
1389
|
+
| `height` | `IBTermHeight` | Child: feet 0–8, inches 0–11 |
|
|
1390
|
+
| `weight` | `number` | > 0 |
|
|
1391
|
+
| `relation` | `string` | Free-form (e.g. "Daughter", "Son", "Stepchild"). BE field name: `Relation` (serializes as `relation`) |
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
`**IBTermChildExistingCoverage`:**
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
| Field | Type | Constraints |
|
|
1398
|
+
| ------------------ | --------- | --------------------------------------------- |
|
|
1399
|
+
| `nameOfTheCompany` | `string` | |
|
|
1400
|
+
| `insuranceAmount` | `string` | Matches adult `IBTermExistingCoverageInfo.insuranceAmount`. Non-replaced totals must not exceed $100,000 |
|
|
1401
|
+
| `policyNumber` | `string` | |
|
|
1402
|
+
| `dateOfIssue` | `string` | `YYYY-MM` |
|
|
1403
|
+
| `toBeReplaced` | `boolean` | Whether this child policy is being replaced |
|
|
1404
|
+
| `toBeFinanced` | `boolean` | Whether premiums on the new policy will be financed from this existing child policy |
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
### `IBTermRiderDetailsResp` *(returned by `getIBTermRiderDetails`)*
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
| Field | Type | Notes |
|
|
1411
|
+
| ---------------------------------- | ---------------- | ----- |
|
|
1412
|
+
| `flagProductNotAvailableForState` | `boolean` | `true` → IB Term not available for this state/age/nicotine combo |
|
|
1413
|
+
| `riders` | `IBTermRider[]` | Empty when product is not available |
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
`**IBTermRider`:**
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
| Field | Type | Notes |
|
|
1420
|
+
| ----------------- | -------- | ----- |
|
|
1421
|
+
| `riderCode` | `string` | Pass into `ThirdPartyQuoteReq.riders[n].rider` on the quote |
|
|
1422
|
+
| `riderTitle` | `string` | Display title |
|
|
1423
|
+
| `riderDescription`| `string` | Display description |
|
|
1424
|
+
|
|
1425
|
+
|
|
1057
1426
|
### `ThirdPartyQuoteReq` (IB Term - Secondary)
|
|
1058
1427
|
|
|
1059
1428
|
|
|
1060
1429
|
| Field | Type | Required | Constraints |
|
|
1061
1430
|
| ---------------- | ---------------------------------- | -------- | ----------------------------------------------- |
|
|
1062
|
-
| `faceAmount` | `number` | Yes | See age-based limits below
|
|
1063
|
-
| `benefitPeriod` | `number` | Yes | 10, 20, or 30 (age-dependent - see table below) |
|
|
1431
|
+
| `faceAmount` | `number` | Yes | See age-based limits below. `CoverageNotAvailable` if not offered for state+age |
|
|
1432
|
+
| `benefitPeriod` | `number` | Yes | 10, 20, or 30 (age-dependent - see table below). `BenefitPeriodNotAvailable` if not offered for state+age |
|
|
1064
1433
|
| `flagTobaccoUse` | `boolean` | Yes | |
|
|
1065
1434
|
| `gender` | `Gender` | Yes | |
|
|
1066
|
-
| `stateCode` | `string | null` | Yes*
|
|
1067
|
-
| `zipCode` | `string | null` | Yes*
|
|
1068
|
-
| `rateClass` | `RateClass | null` | Yes
|
|
1069
|
-
| `healthClass` | `HealthClass | null` | Yes
|
|
1070
|
-
| `height` | `{ feet
|
|
1071
|
-
| `weightInLbs` | `number | null` | Yes
|
|
1072
|
-
| `age` | `number | null` | Yes
|
|
1073
|
-
| `dateOfBirth` | `string | null` | Yes
|
|
1435
|
+
| `stateCode` | `string | null` | Yes* (one of stateCode / zipCode) |
|
|
1436
|
+
| `zipCode` | `string | null` | Yes* (zipCode wins if both) |
|
|
1437
|
+
| `rateClass` | `RateClass | null` | Yes† (one of rateClass / healthClass / height+weight) |
|
|
1438
|
+
| `healthClass` | `HealthClass | null` | Yes† (rating OR-group) |
|
|
1439
|
+
| `height` | `{ feet, inches } | null` | Yes† — optional; required only with `weightInLbs` (height+weight rating path) |
|
|
1440
|
+
| `weightInLbs` | `number | null` | Yes† (paired with `height`) |
|
|
1441
|
+
| `age` | `number | null` | Yes‡ (one of age / dateOfBirth; resolved 18–60) |
|
|
1442
|
+
| `dateOfBirth` | `string | null` | Yes‡ (dateOfBirth wins if both) |
|
|
1074
1443
|
| `riders` | `ThirdPartyQuoteReqRider[] | null` | No |
|
|
1075
1444
|
| `paymentFreq` | `PaymentFrequency` | Yes | |
|
|
1076
1445
|
| `firstName` | `string | null` | No |
|
|
@@ -1078,6 +1447,8 @@ filters: [
|
|
|
1078
1447
|
| `email` | `string | null` | No |
|
|
1079
1448
|
| `phoneNum` | `string | null` | No |
|
|
1080
1449
|
|
|
1450
|
+
> `*` one of `stateCode` / `zipCode` required · `†` one rating group required (`rateClass` OR `healthClass` OR `height`+`weightInLbs`) · `‡` one of `age` / `dateOfBirth` required
|
|
1451
|
+
|
|
1081
1452
|
|
|
1082
1453
|
**Face amount limits (age-based):**
|
|
1083
1454
|
|
|
@@ -1337,6 +1708,40 @@ Rider codes accepted by `ThirdPartyAdbQuoteRequest.riders` and `ThirdPartyAdbUpd
|
|
|
1337
1708
|
|
|
1338
1709
|
> **Note:** ADB has its own rider enum. Do NOT reuse the Term product's `RiderType` — those values (`'ADB Rider'`, `'Dependent Child Rider'`) are display titles, not the codes the ADB API expects.
|
|
1339
1710
|
|
|
1711
|
+
### `TobaccoNicotineLastUsedPeriod` (IB Term Start Application)
|
|
1712
|
+
|
|
1713
|
+
Bucket describing how recently the applicant last used tobacco/nicotine. Used on `IBTermTobaccoNicotineUsage.lastUsedPeriod`. Values match the backend `TobaccoNicotineLastUsedPeriodOptions` list — **case-sensitive, lowercase**.
|
|
1714
|
+
|
|
1715
|
+
| Enum Member | Value |
|
|
1716
|
+
| -------------------------------------------------------- | ------------------------------ |
|
|
1717
|
+
| `TobaccoNicotineLastUsedPeriod.WithinLastTwelveMonths` | `'within the last 12 months'` |
|
|
1718
|
+
| `TobaccoNicotineLastUsedPeriod.TwelveToTwentyThreeMonths`| `'12 to 23 months'` |
|
|
1719
|
+
| `TobaccoNicotineLastUsedPeriod.TwentyFourToThirtyFiveMonths` | `'24 to 35 months'` |
|
|
1720
|
+
| `TobaccoNicotineLastUsedPeriod.ThirtySixMonthsOrGreater` | `'36 months or greater'` |
|
|
1721
|
+
| `TobaccoNicotineLastUsedPeriod.Never` | `'never used'` |
|
|
1722
|
+
|
|
1723
|
+
### `TobaccoNicotineProductType` (IB Term Start Application)
|
|
1724
|
+
|
|
1725
|
+
Tobacco / nicotine product types the applicant has used. Used as a non-empty array on `IBTermTobaccoNicotineUsage.productTypesUsed`. Values match the backend `TobaccoNicotineProductTypeOptions` list — **case-sensitive, lowercase**.
|
|
1726
|
+
|
|
1727
|
+
| Enum Member | Value |
|
|
1728
|
+
| -------------------------------------------- | ---------------------- |
|
|
1729
|
+
| `TobaccoNicotineProductType.ChewingTobacco` | `'chewing tobacco'` |
|
|
1730
|
+
| `TobaccoNicotineProductType.Cigarettes` | `'cigarettes'` |
|
|
1731
|
+
| `TobaccoNicotineProductType.Cigars` | `'cigars'` |
|
|
1732
|
+
| `TobaccoNicotineProductType.ECigarettes` | `'e-cigarettes'` |
|
|
1733
|
+
| `TobaccoNicotineProductType.Hookah` | `'hookah'` |
|
|
1734
|
+
| `TobaccoNicotineProductType.NicotineGum` | `'nicotine gum'` |
|
|
1735
|
+
| `TobaccoNicotineProductType.NicotinePatches` | `'nicotine patches'` |
|
|
1736
|
+
| `TobaccoNicotineProductType.None` | `'none'` |
|
|
1737
|
+
| `TobaccoNicotineProductType.Other` | `'other'` |
|
|
1738
|
+
| `TobaccoNicotineProductType.Pipes` | `'pipes'` |
|
|
1739
|
+
| `TobaccoNicotineProductType.SmokelessTobacco`| `'smokeless tobacco'` |
|
|
1740
|
+
| `TobaccoNicotineProductType.Snuff` | `'snuff'` |
|
|
1741
|
+
| `TobaccoNicotineProductType.Vaping` | `'vaping'` |
|
|
1742
|
+
|
|
1743
|
+
> When `productTypesUsed` includes `Cigars`, `cigarUsagePerYear` (1–999) becomes required on the `tobaccoNicotineUsage` object.
|
|
1744
|
+
|
|
1340
1745
|
### `State`
|
|
1341
1746
|
|
|
1342
1747
|
All 50 US states + DC and 12 Canadian provinces/territories:
|
|
@@ -1507,76 +1912,358 @@ try {
|
|
|
1507
1912
|
|
|
1508
1913
|
Always use `APIErrorCode` enum members with `err.isErrorType()`. Do not compare `errorCode` as a raw string - the API uses inconsistent casing.
|
|
1509
1914
|
|
|
1510
|
-
|
|
1915
|
+
> **How error responses work**
|
|
1916
|
+
>
|
|
1917
|
+
> - **Validation failures** (the common case across all products) return HTTP 400 with `error: "InvalidRequestFormat"` and a `value.fields: { <FieldPath>: ["<message>"] }` map. Detect specific failures by inspecting field-level messages — see the [Field-Level Error Messages](#field-level-error-messages) section below.
|
|
1918
|
+
> - **IB Term Quote business errors** return HTTP 400 with one of the codes in the *IB Term Quote Business Errors* table below; `value` is `null` and there is no `fields` map.
|
|
1919
|
+
> - **Get-Existing-Quote business error**: `QuoteNotFound` is returned when the opportunity exists but no quote is stored.
|
|
1920
|
+
> - **`ApplicationLimitReached`**: ADB / GIGDB Start Application only — same SSN, email, or phone matched a policy generated in the last 30 days. IB Term does NOT use this code.
|
|
1921
|
+
> - Codes marked **`@deprecated`** below were returned by older versions of the API. The current API surfaces those failures as field-level messages under `InvalidRequestFormat`. Use the equivalent field-level checks instead. Deprecated codes will remain in the enum until the next major release for backward compatibility.
|
|
1922
|
+
|
|
1923
|
+
### Universal validation envelope
|
|
1924
|
+
|
|
1925
|
+
| Enum Member | String Value | Description |
|
|
1926
|
+
| ---------------------- | ------------------------ | ---------------------------------------------------------------------------- |
|
|
1927
|
+
| `InvalidRequestFormat` | `'InvalidRequestFormat'` | Top-level code for every FluentValidation failure. Inspect `value.fields`. |
|
|
1511
1928
|
|
|
1929
|
+
### Quote Business Errors (ADB / GIGDB / IB Term)
|
|
1512
1930
|
|
|
1513
|
-
|
|
1514
|
-
| ------------------------------------ | -------------------------------------- | ---------------------------------------------------------------- |
|
|
1515
|
-
| `StateNotFound` | `'stateNotFound'` | State code not recognized |
|
|
1516
|
-
| `RateClassNotFound` | `'RateClassNotFound'` | Rating input required (rateClass, healthClass, or height/weight) |
|
|
1517
|
-
| `RiderNotAvailable` | `'RiderNotAvailable'` | Rider not available in this state or for this age |
|
|
1518
|
-
| `HeightNotValid` | `'HeightNotValid'` | Height value is not valid |
|
|
1519
|
-
| `InvalidRateclass` | `'InvalidRateclass'` | Rate class value not recognized |
|
|
1520
|
-
| `InvalidHealthClass` | `'InvalidHealthClass'` | Health class value not recognized |
|
|
1521
|
-
| `ZipCodeNotFound` | `'ZipCodeNotFound'` | ZIP code not recognized |
|
|
1522
|
-
| `OutsideBuildChart` | `'outsideBuildChart'` | Height/weight combination not eligible |
|
|
1523
|
-
| `QuoteNotEligibleForGivenConditions` | `'QuoteNotEligibleForGivenConditions'` | Product not available for this state/age/tobacco combination |
|
|
1524
|
-
| `NotAvailableForState` | `'NotAvailableForState'` | Product not available in the specified state |
|
|
1525
|
-
| `BenefitPeriodNotAvailable` | `'BenefitPeriodNotAvailable'` | Benefit period not available for this age/tobacco combination |
|
|
1526
|
-
| `CoverageNotAvailable` | `'CoverageNotAvailable'` | Coverage amount not available for the given conditions |
|
|
1527
|
-
| `RiderFaceAmountNotValid` | `'RiderFaceAmountNotValid'` | Rider coverage amount outside permitted range |
|
|
1528
|
-
| `ThirdPartyQuoteError` | `'ThirdPartyQuoteError'` | General quote generation error |
|
|
1529
|
-
| `InvalidQuoteParameters` | `'InvalidQuoteParameters'` | Quote parameters are not valid |
|
|
1530
|
-
| `InvalidRequestFormat` | `'InvalidRequestFormat'` | Request format invalid; check required fields |
|
|
1531
|
-
| `QuoteNotFound` | `'QuoteNotFound'` | No previous quote found; create a quote first |
|
|
1931
|
+
Returned by the quote endpoints with `value: null` and `flagStatus: false`. IB Term Quote additionally returns `BenefitPeriodNotAvailable` and `CoverageNotAvailable` in the request-validation envelope (`value.fields`). Personal-info validation failures (first name, last name, email, phone format) and rating-input validation failures (rateClass / healthClass / zip) are surfaced as **field-level messages under `InvalidRequestFormat`** — see [Field-Level Error Messages](#field-level-error-messages).
|
|
1532
1932
|
|
|
1933
|
+
| Enum Member | String Value | Applies to | Description |
|
|
1934
|
+
| ------------------------------------ | -------------------------------------- | ---------- | -------------------------------------------------------------------------------------------- |
|
|
1935
|
+
| `StateNotFound` | `'stateNotFound'` | All quotes | State code missing, invalid, or not found |
|
|
1936
|
+
| `NotAvailableForState` | `'NotAvailableForState'` | All quotes | Product not offered for the selected state |
|
|
1937
|
+
| `QuoteNotEligibleForGivenConditions` | `'QuoteNotEligibleForGivenConditions'` | All quotes | Combination of state / age / smoker status not eligible |
|
|
1938
|
+
| `CoverageNotAvailable` | `'CoverageNotAvailable'` | All quotes | Face amount not available for the selected state, age, and smoker status |
|
|
1939
|
+
| `RiderNotAvailable` | `'RiderNotAvailable'` | ADB | Rider not available for the product or state |
|
|
1940
|
+
| `RiderFaceAmountNotValid` | `'RiderFaceAmountNotValid'` | ADB | Rider benefit amount outside the allowed range |
|
|
1941
|
+
| `AgeNotFound` | `'AgeNotFound'` | IB Term | Neither `Age` nor `DateOfBirth` supplied |
|
|
1942
|
+
| `BenefitPeriodNotAvailable` | `'BenefitPeriodNotAvailable'` | IB Term | Benefit period not allowed for the state + age + smoker combination. Returned as either top-level or via `value.fields`. |
|
|
1943
|
+
| `OutsideBuildChart` | `'outsideBuildChart'` | IB Term | Height / weight outside the carrier's build chart |
|
|
1944
|
+
| `HeightNotValid` | `'HeightNotValid'` | IB Term | Height / weight value or combination is invalid |
|
|
1533
1945
|
|
|
1534
|
-
###
|
|
1946
|
+
### Get Existing Quote
|
|
1535
1947
|
|
|
1948
|
+
| Enum Member | String Value | Description |
|
|
1949
|
+
| --------------- | ----------------- | -------------------------------------------------------------------------- |
|
|
1950
|
+
| `QuoteNotFound` | `'QuoteNotFound'` | Returned by ADB / GIGDB / IB Term `get-existing-quote` when no saved quote exists for the opportunity. |
|
|
1536
1951
|
|
|
1537
|
-
|
|
1538
|
-
| -------------------------------------------- | ---------------------------------------------- | ----------------------------------------------- |
|
|
1539
|
-
| `AgeNotFound` | `'AgeNotFound'` | Age outside 50–85 range |
|
|
1540
|
-
| `AgentLogout` | `'AgentLogout'` | Agent session expired; re-authenticate |
|
|
1541
|
-
| `DataNotFound` | `'dataNotFound'` | Requested data not found |
|
|
1542
|
-
| `StateMismatchIdentified` | `'StateMismatchIdentified'` | State mismatch between quote and application |
|
|
1543
|
-
| `InvalidBirthCountry` | `'InvalidBirthCountry'` | Birth country not recognized |
|
|
1544
|
-
| `InvalidBirthState` | `'InvalidBirthState'` | Birth state not recognized |
|
|
1545
|
-
| `InvalidResidenceState` | `'InvalidResidenceState'` | Residence state not valid |
|
|
1546
|
-
| `OneOfTheExistingCoveragesQuestionsNotFound` | `'OneOfTheExistingCoveragesQuestionsNotFound'` | Existing coverage questions incomplete |
|
|
1547
|
-
| `PaymentAlreadyMade` | `'PaymentAlreadyMade'` | Payment already submitted for this application |
|
|
1548
|
-
| `ErrorInSaveEftPaymentDetails` | `'ErrorInSaveEftPaymentDetails'` | Failed to save EFT details; verify account info |
|
|
1549
|
-
| `InvalidPaymentScheduledDate` | `'InvalidPaymentScheduledDate'` | Scheduled payment date is not valid |
|
|
1952
|
+
### Start Application — duplicate-detection limit
|
|
1550
1953
|
|
|
1954
|
+
Fires on ADB / GIGDB Start Application when SSN, email, or phone matches a policy generated within the last 30 days. **IB Term does not use this code.**
|
|
1551
1955
|
|
|
1552
|
-
|
|
1956
|
+
| Enum Member | String Value | Description |
|
|
1957
|
+
| ------------------------- | --------------------------- | ------------------------------------------------------------------------------ |
|
|
1958
|
+
| `ApplicationLimitReached` | `'ApplicationLimitReached'` | An application with the same SSN, email, or phone has a policy generated within the last 30 days. |
|
|
1553
1959
|
|
|
1960
|
+
### Start Application — business errors (ADB / GIGDB / IB Term)
|
|
1554
1961
|
|
|
1555
|
-
|
|
1556
|
-
| -------------------- | ---------------------- | ---------------------------------------------------------------------------- |
|
|
1557
|
-
| `InvalidStateCode` | `'InvalidStateCode'` | State not supported for ADB (MA, NH, AK unavailable; CA coming next release) |
|
|
1558
|
-
| `InvalidAdbAgeRange` | `'InvalidAdbAgeRange'` | Age outside 20–59 range |
|
|
1962
|
+
Returned as top-level codes (HTTP 400, `value: null`) when the request body is well-formed but the application cannot be started. Apply to **all three** Start Application endpoints.
|
|
1559
1963
|
|
|
1964
|
+
| Enum Member | String Value | Description |
|
|
1965
|
+
| ------------------------- | ---------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
1966
|
+
| `StateMismatchIdentified` | `'StateMismatchIdentified'` | Quote state and `Address.State` on Start App refer to different US states (case-insensitive). Re-quote with the correct residence state. |
|
|
1967
|
+
| `AgentNotFound` | `'agentNotFound'` | The quote cannot be linked to an agent account. Verify the agent token. |
|
|
1968
|
+
| `InternalServerError` | `'internalServerError'`| Unexpected backend failure. Retry; if it persists, contact InstaBrain support. |
|
|
1560
1969
|
|
|
1561
|
-
|
|
1970
|
+
> Knockout and underwriting **decline** are returned as HTTP 200 with `isDeclined: true` in the response body — **not** as top-level error codes.
|
|
1562
1971
|
|
|
1972
|
+
### Session
|
|
1563
1973
|
|
|
1564
|
-
| Enum Member
|
|
1565
|
-
|
|
|
1566
|
-
| `
|
|
1974
|
+
| Enum Member | String Value | Description |
|
|
1975
|
+
| -------------- | ---------------- | ------------------------------------------------------ |
|
|
1976
|
+
| `AgentLogout` | `'AgentLogout'` | Agent session expired; re-authenticate |
|
|
1567
1977
|
|
|
1978
|
+
### Deprecated codes
|
|
1568
1979
|
|
|
1569
|
-
|
|
1980
|
+
The following codes were returned by older API versions and are kept in the enum for backward compatibility. **They are no longer returned by the current API.** Detect the equivalent failures via field-level messages under `InvalidRequestFormat` — see the [Field-Level Error Messages](#field-level-error-messages) section.
|
|
1570
1981
|
|
|
1982
|
+
| Enum Member (deprecated) | Use this field-level message instead |
|
|
1983
|
+
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
1984
|
+
| ~~`InvalidBirthCountry`~~ | `BirthJurisdiction.Country` → "Birth country code is invalid." |
|
|
1985
|
+
| ~~`InvalidBirthState`~~ | `BirthJurisdiction.State` → "Birth state code is invalid." |
|
|
1986
|
+
| ~~`InvalidResidenceState`~~ | `Address.State` → "Residence state code is invalid." |
|
|
1987
|
+
| ~~`OneOfTheExistingCoveragesQuestionsNotFound`~~ | (no longer returned) |
|
|
1988
|
+
| ~~`PaymentAlreadyMade`~~ | `OpportunityId` → "Quote update is not allowed when payment is already made." |
|
|
1989
|
+
| ~~`ErrorInSaveEftPaymentDetails`~~ | Field-level on EFT request (account holder name / routing / account number) |
|
|
1990
|
+
| ~~`InvalidPaymentScheduledDate`~~ | (no longer returned) |
|
|
1991
|
+
| ~~`ThirdPartyQuoteError`~~ | (generic legacy code; no longer returned) |
|
|
1992
|
+
| ~~`InvalidQuoteParameters`~~ | (generic legacy code; no longer returned) |
|
|
1993
|
+
| ~~`InvalidStateCode`~~ | `Address.State` → "Residence state code is invalid." or quote-specific state messages |
|
|
1994
|
+
| ~~`InvalidAdbAgeRange`~~ | `DateOfBirth` → "Age must be between 20 and 59 for ADB." |
|
|
1995
|
+
| ~~`PaymentNotMade`~~ | `opportunityId` (Final Submit) → "Application has already been final submitted." |
|
|
1996
|
+
| ~~`SecureSignRelatedError`~~ | Field-level on Secure Sign endpoint |
|
|
1997
|
+
| ~~`SigningPackageNotCreated`~~ | Field-level on Secure Sign endpoint |
|
|
1998
|
+
| ~~`SecureSignPinMismatch`~~ | `Pin` → "Pin is required." (Verify PIN endpoint) |
|
|
1999
|
+
| ~~`PinExpired`~~ | Field-level on Verify PIN endpoint |
|
|
2000
|
+
| ~~`DocumentsNotViewed`~~ | Field-level on Verify PIN endpoint |
|
|
2001
|
+
| ~~`DocumentsAlreadySigned`~~ | `OpportunityId` → "Documents are already signed." (Secure Sign endpoints) |
|
|
2002
|
+
|
|
2003
|
+
|
|
2004
|
+
---
|
|
2005
|
+
|
|
2006
|
+
## Field-Level Error Messages
|
|
2007
|
+
|
|
2008
|
+
When the API returns `error: "InvalidRequestFormat"`, inspect `value.fields` (a `Record<string, string[]>`) for per-field messages. The catalog below lists every field path and its exact message text returned by the backend, organized by endpoint family.
|
|
2009
|
+
|
|
2010
|
+
> Use the field paths as map keys. **Case matters** — keys are PascalCase / dotted paths matching the backend DTO property names, not the SDK's camelCase TypeScript field names.
|
|
2011
|
+
|
|
2012
|
+
### Common patterns (used across ADB / GIGDB / IB Term Start Application)
|
|
2013
|
+
|
|
2014
|
+
| Field path | Message |
|
|
2015
|
+
|---|---|
|
|
2016
|
+
| `QuoteResponseId` | QuoteResponseId is required. |
|
|
2017
|
+
| `QuoteResponseId` | QuoteResponseId does not exist or does not belong to the requested product. |
|
|
2018
|
+
| `FirstName` | First name is required. |
|
|
2019
|
+
| `FirstName` | First name is invalid. Only alphabetic characters are allowed. |
|
|
2020
|
+
| `LastName` | Last name is required. |
|
|
2021
|
+
| `LastName` | Last name is invalid. Only alphabetic characters are allowed. |
|
|
2022
|
+
| `Email` | Email is required. |
|
|
2023
|
+
| `Email` | Please enter a valid email address. |
|
|
2024
|
+
| `PhoneNumber` | Phone number is required. |
|
|
2025
|
+
| `PhoneNumber` | Phone number format is incorrect. Use 10 digits or +1XXXXXXXXXX. |
|
|
2026
|
+
| `PhoneNumber` | Phone number is invalid. |
|
|
2027
|
+
| `IsPayerAlsoOwnerAndInsured` | IsPayerAlsoOwnerAndInsured field is required. |
|
|
2028
|
+
| `DateOfBirth` | Date of birth is required. |
|
|
2029
|
+
| `DateOfBirth` | Date of birth must be a valid date in the past. |
|
|
2030
|
+
| `SocialSecurityNumber` | Social Security Number is required. |
|
|
2031
|
+
| `SocialSecurityNumber` | Social Security Number must be in valid format (e.g., XXX-XX-XXXX). |
|
|
2032
|
+
| `Address` | Address is required. |
|
|
2033
|
+
| `Address.AddressLine1` | Address line is required. |
|
|
2034
|
+
| `Address.AddressLine1` | Street address is invalid. Avoid special characters. |
|
|
2035
|
+
| `Address.City` | Address city is required. |
|
|
2036
|
+
| `Address.City` | City name is invalid. Only letters and spaces are allowed. |
|
|
2037
|
+
| `Address.State` | Residence state is required. |
|
|
2038
|
+
| `Address.State` | Residence state code is invalid. |
|
|
2039
|
+
| `Address.Zipcode` | Zip code is required. |
|
|
2040
|
+
| `Address.Zipcode` | Zip code is invalid. It must be in 5-digit format. |
|
|
2041
|
+
| `Address.Zipcode` | Zip code is not found. |
|
|
2042
|
+
| `HasExistingCoverage` | Existing coverage field is required |
|
|
2043
|
+
| `ExistingCoverageData` | Existing coverage details must be provided when HasExistingCoverage is true. |
|
|
2044
|
+
| `ExistingCoverageData` | Existing coverage details must be null when HasExistingCoverage is false. |
|
|
2045
|
+
| `ExistingCoverageData.ExistingCoverages` | At least one existing coverage entry is required. |
|
|
2046
|
+
| `ExistingCoverageData.IsExistingPolicyBeingTerminated` | Please indicate whether any existing policy is being terminated. |
|
|
2047
|
+
| `ExistingCoverageData.ExistingCoverages[n].NameOfTheCompany` | Please provide the name of the insurance company. |
|
|
2048
|
+
| `ExistingCoverageData.ExistingCoverages[n].InsuranceAmount` | Insurance amount must be provided. |
|
|
2049
|
+
| `ExistingCoverageData.ExistingCoverages[n].DateOfIssue` | Please provide Date of Issue in YYYY-MM format |
|
|
2050
|
+
| `ExistingCoverageData.ExistingCoverages[n].DateOfIssue` | Date of issue must be in YYYY-MM format. |
|
|
2051
|
+
| `ExistingCoverageData.ExistingCoverages[n].ToBeReplaced` | Replacement coverage answer must be specified. |
|
|
2052
|
+
| `ExistingCoverageData.ExistingCoverages[n].ToBeFinanced` | Financing coverage answer must be specified. |
|
|
2053
|
+
| `WillOtherCoverageBeReplacedOrFinanced` | Please indicate whether any other coverage will be replaced or financed. |
|
|
2054
|
+
| `WillOtherCoverageBeReplacedOrFinanced` | Other Coverage be replaced or financed must be either null or false as no existing coverage passed. |
|
|
2055
|
+
| `BeneficiaryDetails` | Beneficiary details are required. |
|
|
2056
|
+
| `BeneficiaryDetails.BeneficiaryType` | Please select a valid beneficiary option. |
|
|
2057
|
+
| `BeneficiaryDetails.BeneficiaryPerson` | Beneficiary person details must be provided. |
|
|
2058
|
+
| `BeneficiaryDetails.BeneficiaryPerson.FirstName` | Beneficiary first name is required. |
|
|
2059
|
+
| `BeneficiaryDetails.BeneficiaryPerson.FirstName` | Beneficiary's first name is invalid. |
|
|
2060
|
+
| `BeneficiaryDetails.BeneficiaryPerson.LastName` | Beneficiary last name is required. |
|
|
2061
|
+
| `BeneficiaryDetails.BeneficiaryPerson.LastName` | Beneficiary's last name is invalid. |
|
|
2062
|
+
| `BeneficiaryDetails.BeneficiaryPerson.Relationship` | Please specify the relationship with the beneficiary. |
|
|
2063
|
+
| `BeneficiaryDetails.NamedEntity` | Named entity details must be provided for this beneficiary type. |
|
|
2064
|
+
| `BeneficiaryDetails.NamedEntity.Name` | Beneficiary name is required. |
|
|
2065
|
+
| `BeneficiaryDetails.NamedEntity.TrustDate` | Trust date must be in YYYY-MM format. |
|
|
2066
|
+
| `IsUsCitizen` | US citizenship status is required. |
|
|
2067
|
+
| `IsLegalUsResident` | Legal US residency status is required for non-US citizens. |
|
|
2068
|
+
| `Email` *(top-level on Start App; ADB / GIGDB only)* | `error: "ApplicationLimitReached"` → "An application with the same email has a policy generated within the last 30 days." |
|
|
2069
|
+
| `PhoneNumber` *(top-level on Start App; ADB / GIGDB only)* | `error: "ApplicationLimitReached"` → "Two applications with the same phone have policies generated within the last 30 days." |
|
|
2070
|
+
| `SocialSecurityNumber` *(top-level on Start App; ADB / GIGDB only)* | `error: "ApplicationLimitReached"` → "An application with the same SSN has a policy generated within the last 30 days." |
|
|
2071
|
+
|
|
2072
|
+
### ADB — additional messages
|
|
2073
|
+
|
|
2074
|
+
| Field path | Message |
|
|
2075
|
+
|---|---|
|
|
2076
|
+
| `DateOfBirth` | Age must be between 20 and 59 for ADB. |
|
|
2077
|
+
| `Address.State` | This state is currently not supported. |
|
|
2078
|
+
| `Address.State` | This product is not available for the selected state. |
|
|
2079
|
+
| `Occupation` | At least one occupation is required when residence state is CA. |
|
|
2080
|
+
| `Occupation` | One or more selected occupations are invalid. |
|
|
2081
|
+
| `HasMedicalCoverage` | Medical coverage acknowledgement is required when residence state is DC. |
|
|
2082
|
+
| `UnderstandsBenefits` | Supplemental policy benefits acknowledgement is required when residence state is DC. |
|
|
2083
|
+
| `UnderstandsLimitedBenefits` | Limited benefits acknowledgement is required when residence state is DC. |
|
|
2084
|
+
| `ExistingCoverageData.ExistingCoverages[n].NotifyPresentInsurer` | Notify present insurer response is required for Oklahoma when existing coverage is provided. |
|
|
2085
|
+
| `ExistingCoverageData.ExistingCoverages[n].WantsComparativeInformationForm` | Comparative information form preference is required for Florida when existing coverage is provided. |
|
|
2086
|
+
| `ExistingCoverageData.ExistingCoverages[n].WantsPolicySummary` | Policy summary preference is required for Delaware when existing coverage is provided. |
|
|
2087
|
+
|
|
2088
|
+
### ADB — Update Quote / Get Existing Quote
|
|
2089
|
+
|
|
2090
|
+
| Field path | Message |
|
|
2091
|
+
|---|---|
|
|
2092
|
+
| `OpportunityId` | OpportunityId is required. |
|
|
2093
|
+
| `OpportunityId` | OpportunityId does not exist. |
|
|
2094
|
+
| `OpportunityId` | OpportunityId does not match selected product. |
|
|
2095
|
+
| `OpportunityId` | Quote update is not allowed when payment is already made. |
|
|
2096
|
+
| `FaceAmount` | Coverage amount (FaceAmount) is required. |
|
|
2097
|
+
| `PaymentFreq` | Payment frequency is required. |
|
|
2098
|
+
| `PaymentFreq` | Invalid payment frequency. |
|
|
2099
|
+
| `Riders` | Riders are required. *(Update Quote only)* |
|
|
2100
|
+
| `Riders` | Riders are invalid. |
|
|
2101
|
+
|
|
2102
|
+
### GIGDB — additional messages
|
|
2103
|
+
|
|
2104
|
+
| Field path | Message |
|
|
2105
|
+
|---|---|
|
|
2106
|
+
| `DateOfBirth` | Age must be between 50 and 85 for GIGDB. |
|
|
2107
|
+
| `Address.State` | This state is currently not supported. |
|
|
2108
|
+
| `Address.State` | This product is not available for the selected state. |
|
|
2109
|
+
| `IsSmoker` | Smoker status is required. |
|
|
2110
|
+
| `NicotineInfo` | Nicotine details are required when applicant is a smoker. |
|
|
2111
|
+
| `NicotineInfo.LastUseDate` | Last nicotine use date is required when applicant is a smoker. |
|
|
2112
|
+
| `NicotineInfo.LastUseDate` | Nicotine last use date must be in YYYY-MM format. |
|
|
2113
|
+
| `BirthJurisdiction` | Birth jurisdiction details are required. |
|
|
2114
|
+
| `BirthJurisdiction.Country` | Birth country is required when applicant is not a U.S. citizen. |
|
|
2115
|
+
| `BirthJurisdiction.Country` | Birth country code is invalid. |
|
|
2116
|
+
| `BirthJurisdiction.State` | Birth state is required when applicant is a U.S. citizen. |
|
|
2117
|
+
| `BirthJurisdiction.State` | Birth state code is invalid. |
|
|
2118
|
+
| `ExistingCoverageData.AreExistingPoliciesIssuedByFidelity` | Please indicate whether any existing policies are issued by Fidelity Life Association (required for RI and WV). |
|
|
2119
|
+
| `ExistingCoverageData.ExistingCoverages[n].RequestsYieldIndices` | Please indicate whether yield indices for cash value policies are requested (required for Massachusetts). |
|
|
2120
|
+
| `ExistingCoverageData.ExistingCoverages[n].NotifyPresentInsurer` | Please indicate whether to notify present insurer(s) (required for Oklahoma). |
|
|
2121
|
+
| `ExistingCoverageData.ExistingCoverages[n].WantsPolicySummary` | Please indicate whether you want a policy summary statement (required for Delaware and Georgia). |
|
|
2122
|
+
| `ExistingCoverageData.ExistingCoverages[n].WantsComparativeInformationForm` | Please indicate whether you want a Comparative Information Form (required for Florida). |
|
|
2123
|
+
| `WillOtherCoverageBeReplacedOrFinancedData` | State-specific replacement data is required when other coverage will be replaced or financed. |
|
|
2124
|
+
| `WillOtherCoverageBeReplacedOrFinancedData.AreReplacedPoliciesIssuedByFidelity` | Please indicate whether any policies being replaced are issued by Fidelity Life Association (required for Kansas when replacing or financing coverage). |
|
|
2125
|
+
| `WillOtherCoverageBeReplacedOrFinancedData.OtherInsuranceReplacementData` | Washington replacement disclosure answers are required when replacing or financing coverage. |
|
|
2126
|
+
| `WillOtherCoverageBeReplacedOrFinancedData.OtherInsuranceReplacementData[n]` | Each Washington replacement disclosure question must be answered. |
|
|
2127
|
+
| `WillOtherCoverageBeReplacedOrFinancedData.OtherInsuranceReplacementData[n].Explain` | Please explain is required when the answer is Yes. |
|
|
2128
|
+
|
|
2129
|
+
### GIGDB — Update Quote / Get Existing Quote
|
|
2130
|
+
|
|
2131
|
+
| Field path | Message |
|
|
2132
|
+
|---|---|
|
|
2133
|
+
| `OpportunityId` | OpportunityId is required. |
|
|
2134
|
+
| `OpportunityId` | OpportunityId does not exist. |
|
|
2135
|
+
| `OpportunityId` | OpportunityId does not match selected product. |
|
|
2136
|
+
| `OpportunityId` | Quote update is not allowed when payment is already made. |
|
|
2137
|
+
| `FaceAmount` | Coverage amount (FaceAmount) is required. |
|
|
2138
|
+
| `PaymentFreq` | Payment frequency is required. |
|
|
2139
|
+
| `PaymentFreq` | Invalid payment frequency. |
|
|
2140
|
+
|
|
2141
|
+
### IB Term — Start Application additional messages
|
|
2142
|
+
|
|
2143
|
+
| Field path | Message |
|
|
2144
|
+
|---|---|
|
|
2145
|
+
| `DateOfBirth` | Age must be between 18 and 60 for IB Term. |
|
|
2146
|
+
| `QuoteResponseId` | Child rider was not included in the quote. Cannot add child rider details. |
|
|
2147
|
+
| `ChildRiderInfo` | Child rider details are required because Dependent Child Rider is selected in the quote. |
|
|
2148
|
+
| `AreListedConditionsNotApplicable` | AreListedConditionsNotApplicable is required. |
|
|
2149
|
+
| `IsUsCitizenOrIsPermanentResident` | US citizenship or permanent residency status is required. |
|
|
2150
|
+
| `Height` | Height is required. |
|
|
2151
|
+
| `Height.Feet` | Height feet is required. |
|
|
2152
|
+
| `Height.Feet` | Height feet must be between 1 and 8. |
|
|
2153
|
+
| `Height.Inches` | Height inches is required. |
|
|
2154
|
+
| `Height.Inches` | Height inches must be between 0 and 11. |
|
|
2155
|
+
| `Weight` | Weight is required. |
|
|
2156
|
+
| `Weight` | Weight must be greater than 0. |
|
|
2157
|
+
| `IsHoldingValidDriverLicense` | IsHoldingValidDriverLicense is required. |
|
|
2158
|
+
| `DriverLicenseState` | Driver license state is required when IsHoldingValidDriverLicense is true. |
|
|
2159
|
+
| `DriverLicenseState` | Driver license state must be null when IsHoldingValidDriverLicense is false. |
|
|
2160
|
+
| `DriverLicenseNumber` | Driver license number is required when IsHoldingValidDriverLicense is true. |
|
|
2161
|
+
| `DriverLicenseNumber` | Driver license number format is invalid for the selected driver license state. |
|
|
2162
|
+
| `DriverLicenseNumber` | Driver license number must be null when IsHoldingValidDriverLicense is false. |
|
|
2163
|
+
| `BirthJurisdiction.Country` | Birth jurisdiction country is required. |
|
|
2164
|
+
| `BirthJurisdiction.State` | Birth jurisdiction state is required when birth country is US. |
|
|
2165
|
+
| `BirthJurisdiction.State` | Birth state code is invalid. |
|
|
2166
|
+
| `HasPrimaryCarePhysician` | HasPrimaryCarePhysician is required. |
|
|
2167
|
+
| `PhysicianDetails` | Physician details are required when HasPrimaryCarePhysician is true. |
|
|
2168
|
+
| `PhysicianDetails` | Physician details must be null when HasPrimaryCarePhysician is false. |
|
|
2169
|
+
| `PhysicianDetails.PhysicianName` | Physician name is required when HasPrimaryCarePhysician is true. |
|
|
2170
|
+
| `PhysicianDetails.City` | Physician city/address is required when HasPrimaryCarePhysician is true. |
|
|
2171
|
+
| `PhysicianDetails.StateCode` | Physician state is required when HasPrimaryCarePhysician is true. |
|
|
2172
|
+
| `PhysicianDetails.StateCode` | Outside Of The USA is not allowed for physician state. |
|
|
2173
|
+
| `PhysicianDetails.StateCode` | Physician state code is invalid. |
|
|
2174
|
+
| `PhysicianDetails.LastSeen` | Physician last-seen date is required when HasPrimaryCarePhysician is true. |
|
|
2175
|
+
| `PhysicianDetails.LastSeen` | Physician last-seen date must be in YYYY-MM format and in the past. |
|
|
2176
|
+
| `TobaccoNicotineUsage` | Tobacco nicotine usage details are required. |
|
|
2177
|
+
| `TobaccoNicotineUsage.LastUsedPeriod` | Last used period is required. |
|
|
2178
|
+
| `TobaccoNicotineUsage.LastUsedPeriod` | Last used period must be one of: *(allowed values)*. |
|
|
2179
|
+
| `TobaccoNicotineUsage.LastTimeUsed` | Last time used tobacco/nicotine date is required. |
|
|
2180
|
+
| `TobaccoNicotineUsage.LastTimeUsed` | Last time used tobacco/nicotine date must be in YYYY-MM format. |
|
|
2181
|
+
| `TobaccoNicotineUsage.ProductTypesUsed` | At least one tobacco or nicotine product type must be selected. |
|
|
2182
|
+
| `TobaccoNicotineUsage.ProductTypesUsed` | Each product type must be one of: *(allowed values)*. |
|
|
2183
|
+
| `TobaccoNicotineUsage.CigarUsagePerYear` | Number of times cigars are smoked per year is required when Cigars is selected (i.e. when `ProductTypesUsed` includes `Cigars`). |
|
|
2184
|
+
| `TobaccoNicotineUsage.CigarUsagePerYear` | Cigar usage per year must be greater than 0. |
|
|
2185
|
+
| `TobaccoNicotineUsage.CigarUsagePerYear` | Cigar usage per year must be less than or equal to 999. |
|
|
2186
|
+
|
|
2187
|
+
IB Term shares the state-specific Q-08 messages (MA / OK / DE / GA / FL / RI / WV / KS / WA) with GIGDB — see the GIGDB table above; the field paths are identical.
|
|
2188
|
+
|
|
2189
|
+
### IB Term — Child Rider
|
|
2190
|
+
|
|
2191
|
+
| Field path | Message |
|
|
2192
|
+
|---|---|
|
|
2193
|
+
| `ChildRiderInfo.HasExistingCoverageForChildren` | HasExistingCoverageForChildren is required when child rider info is present. |
|
|
2194
|
+
| `ChildRiderInfo.IsAnyChildTakingMedication` | Child medication knockout question is required. |
|
|
2195
|
+
| `ChildRiderInfo.IsAnyChildDiagnosedWithDisability` | Child disability knockout question is required. |
|
|
2196
|
+
| `ChildRiderInfo.IsAnyChildDiagnosedWithSevereCondition` | Child severe condition knockout question is required. |
|
|
2197
|
+
| `ChildRiderInfo.IsAnyChildAdvisedForSurgery` | Child surgery knockout question is required. |
|
|
2198
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails` | At least one child must be provided when child rider info is present. |
|
|
2199
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails` | Maximum 10 children to be insured details allowed. |
|
|
2200
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren` | Existing coverage details required when HasExistingCoverageForChildren is true. |
|
|
2201
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren` | Maximum 10 child existing coverage entries allowed. |
|
|
2202
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren` | Total insurance amount for child coverages marked as not replacing existing policies must not exceed 100000. |
|
|
2203
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren` | Existing coverage details must be empty when HasExistingCoverageForChildren is false. |
|
|
2204
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].FirstName` | Child first name is required. |
|
|
2205
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].FirstName` | Invalid child first name. |
|
|
2206
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].LastName` | Child last name is required. |
|
|
2207
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].LastName` | Invalid child last name. |
|
|
2208
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Gender` | Child gender is required. |
|
|
2209
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Gender` | Gender must be Male or Female. |
|
|
2210
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Height` | Child height is required. |
|
|
2211
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Height.Feet` | Child height feet is required. |
|
|
2212
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Height.Feet` | Child height feet must be between 0 and 8. |
|
|
2213
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Height.Inches` | Child height inches is required. |
|
|
2214
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Height.Inches` | Child height inches must be between 0 and 11. |
|
|
2215
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Weight` | Child weight is required. |
|
|
2216
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Weight` | Child weight must be greater than 0. |
|
|
2217
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].DOB` | Child date of birth is required. |
|
|
2218
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].DOB` | Child date of birth must be in the past. |
|
|
2219
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].DOB` | Child must be between 15 days and under 18 years old. |
|
|
2220
|
+
| `ChildRiderInfo.ChildrenToBeInsuredDetails[n].Relation` | Child relationship is required. |
|
|
2221
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren[n].NameOfTheCompany` | Name of the company is required for child existing coverage. |
|
|
2222
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren[n].InsuranceAmount` | Insurance amount is required for child existing coverage. |
|
|
2223
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren[n].InsuranceAmount` | Insurance amount must be a positive number. |
|
|
2224
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren[n].PolicyNumber` | Policy number is required for child existing coverage. |
|
|
2225
|
+
| `ChildRiderInfo.ExistingCoverageInfoForChildren[n].DateOfIssue` | Date of issue is required for child existing coverage. |
|
|
2226
|
+
|
|
2227
|
+
### Shared APIs — EFT Payment
|
|
2228
|
+
|
|
2229
|
+
`POST /api/ThirdPartyPayment/save-eft-payment`
|
|
2230
|
+
|
|
2231
|
+
| Field path | Message |
|
|
2232
|
+
|---|---|
|
|
2233
|
+
| `OpportunityId` | OpportunityId is required. |
|
|
2234
|
+
| `AccountHolderName` | Account holder name is required. |
|
|
2235
|
+
| `AccountHolderName` | Account holder name must be 100 characters or fewer. |
|
|
2236
|
+
| `RoutingNumber` | Routing number is required. |
|
|
2237
|
+
| `RoutingNumber` | Routing number must be 9 digits. |
|
|
2238
|
+
| `AccountNumber` | Account number is required. |
|
|
2239
|
+
| `AccountNumber` | Account number must be 4 to 17 digits. |
|
|
2240
|
+
|
|
2241
|
+
### Shared APIs — Secure Sign (Prepare / Send PIN / Resend PIN / Verify PIN)
|
|
2242
|
+
|
|
2243
|
+
| Field path | Message | Endpoints |
|
|
2244
|
+
|---|---|---|
|
|
2245
|
+
| `OpportunityId` | OpportunityId is required. | All four |
|
|
2246
|
+
| `OpportunityId` | OpportunityId does not exist. | All four |
|
|
2247
|
+
| `OpportunityId` | Documents are already signed. | All four (terminal state — do not retry) |
|
|
2248
|
+
| `FlagSendSms` | FlagSendSms is required. | Send PIN, Resend PIN |
|
|
2249
|
+
| `FlagSendEmail` | FlagSendEmail is required. | Send PIN, Resend PIN |
|
|
2250
|
+
| `FlagSendSms` / `FlagSendEmail` | At least one delivery channel (SMS or Email) must be selected. | Send PIN, Resend PIN |
|
|
2251
|
+
| `FlagSendSms` / `FlagSendEmail` | Only one delivery channel can be selected at a time. | Send PIN, Resend PIN |
|
|
2252
|
+
| `Pin` | Pin is required. | Verify PIN |
|
|
2253
|
+
| `IsScriptReadConfirmed` | IsScriptReadConfirmed is required. | Verify PIN |
|
|
2254
|
+
| `IsScriptReadConfirmed` | IsScriptReadConfirmed must be true. | Verify PIN |
|
|
2255
|
+
|
|
2256
|
+
### Shared APIs — Final Submit
|
|
2257
|
+
|
|
2258
|
+
`POST /api/ThirdPartyApplication/final-submit`
|
|
2259
|
+
|
|
2260
|
+
| Field path | Message |
|
|
2261
|
+
|---|---|
|
|
2262
|
+
| `opportunityId` | OpportunityId is required. |
|
|
2263
|
+
| `opportunityId` | OpportunityId does not exist. |
|
|
2264
|
+
| `opportunityId` | Application has already been final submitted. *(terminal state — do not retry)* |
|
|
1571
2265
|
|
|
1572
|
-
|
|
1573
|
-
| -------------------------- | ---------------------------- | -------------------------------------------------------- |
|
|
1574
|
-
| `SecureSignRelatedError` | `'SecureSignRelatedError'` | General signing error |
|
|
1575
|
-
| `SigningPackageNotCreated` | `'SigningPackageNotCreated'` | No signing package exists; complete previous steps first |
|
|
1576
|
-
| `SecureSignPinMismatch` | `'SecureSignPinMismatch'` | PIN entered is incorrect |
|
|
1577
|
-
| `PinExpired` | `'PinExpired'` | PIN has expired; request a new one |
|
|
1578
|
-
| `DocumentsNotViewed` | `'DocumentsNotViewed'` | All documents must be viewed before verifying PIN |
|
|
1579
|
-
| `DocumentsAlreadySigned` | `'DocumentsAlreadySigned'` | Documents already signed for this application |
|
|
2266
|
+
> **Authorization** (Secure Sign + Final Submit): HTTP `403` when the `opportunityId` is not authorized for the agent token. This is enforced by middleware and not captured in the `error` / `value.fields` envelope.
|
|
1580
2267
|
|
|
1581
2268
|
|
|
1582
2269
|
---
|