Sie befinden sich hier:
InsEnrollmentServiceStd:getPolicyDetails
Abrufen von Versicherungspolicen-Datensätzen für Mitglieder der primären Gruppenzählung.
Klasse: InsEnrollmentServiceStd
Methode: getPolicyDetails
Szenario
| accountId | Mitglieder | isPersonAccountEnabled |
|---|---|---|
| c10001 | { "FirstName": "Allan", "LastName": "Grenze" } |
true |
Funktionsweise
-
Wenn Mitgliederinformationen bereitgestellt werden, analysiert der Service die Mitgliedsdaten für Kontakt- oder PersonAccount-IDs.
-
Wenn isPersonAccountEnabled wahr ist, ruft der Service den Service findAccounts mithilfe der PersonAccount-IDs auf.
-
Wenn isPersonAccountEnabled falsch ist, ruft der Service den Service findContacts mithilfe der Kontakt-IDs auf.
-
-
Wenn Kontakt-IDs bereitgestellt werden, verwendet der Service die Kontakt-IDs, um sie mit dem Feld "ContactId" in der Einheit "InsurancePolicyParticipant" abzugleichen.
-
Wenn Account-IDs bereitgestellt werden, verwendet der Service die Account-IDs, um sie mit dem Feld AccountId in der Einheit "InsurancePolicyParticipant" abzugleichen.
-
Der Service gibt Versicherungspolicen-Datensätze zurück, deren Statusfeld nicht auf "Abgebrochen" oder "Gekündigt" festgelegt ist.
Serviceverhalten
Erfahren Sie, wie sich unterschiedliche Eingaben auf die Serviceausgaben auswirken.
| Eingabe | Serviceausgabe |
|---|---|
| Keine Mitglieder und keine KontakteIds und keine accountIds | Geben Sie einen gültigen Wert für groupAccountId oder members oder accountIds oder contactIds an. |
Eingaben
| Eingabe | Beschreibung |
|---|---|
groupAccountId
|
Pflichtangabe. ID des Gruppenaccounts |
members or contactIds or accountId
|
Pflichtangabe. Array von Mitgliedern, die mindestens eines dieser drei Felder enthalten: Vorname, Nachname, E-Mail oder Array der Kontakt-IDs der Mitglieder der Hauptzählung oder array of.PersonAccount-IDs der Mitglieder der primären Volkszählung |
isPersonAccountEnabled
|
Optional. Gibt an, ob PersonAccounts in der Organisation aktiviert sind. |
Input JSON
Hier ist die Beispiel-Eingabe-JSON:
{
"accountId": "001RN0000035v63YAA",
"members": [
{
"FirstName": "Allan",
"LastName": "Border"
}
]
} Ausgabe-JSON
Hier ist die Beispielausgabe-JSON:
{
"response": {
"StatusMessage": "success",
"StatusCode": "Success",
"members": [
{
"seqId": null,
"policies": [
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000Hs0YAE",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000Hs1YAE",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "Dental Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OAe2AM",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000Hs1YAE"
},
{
"Id": "0cYRN0000000OAf2AM",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000Hs1YAE"
}
],
"Id": "0YTRN0000000LS84AM",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HsAYAU",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HsBYAU",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "VSP Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OAo2AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsBYAU"
},
{
"Id": "0cYRN0000000OAp2AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsBYAU"
}
],
"Id": "0YTRN0000000LSD4A2",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HsKYAU",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HsLYAU",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "Dental Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OAy2AM",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsLYAU"
},
{
"Id": "0cYRN0000000OAz2AM",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsLYAU"
}
],
"Id": "0YTRN0000000LSI4A2",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HsUYAU",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HsVYAU",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "VSP Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OB82AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsVYAU"
},
{
"Id": "0cYRN0000000OB92AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsVYAU"
}
],
"Id": "0YTRN0000000LSN4A2",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HseYAE",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HsfYAE",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "Dental Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OBI2A2",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsfYAE"
},
{
"Id": "0cYRN0000000OBJ2A2",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HsfYAE"
}
],
"Id": "0YTRN0000000LSS4A2",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HsyYAE",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HszYAE",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "VSP Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OBc2AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HszYAE"
},
{
"Id": "0cYRN0000000OBd2AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HszYAE"
}
],
"Id": "0YTRN0000000LSc4AM",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HtIYAU",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HtJYAU",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "Dental Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OBw2AM",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HtJYAU"
},
{
"Id": "0cYRN0000000OBx2AM",
"CoverageName": "Dental Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HtJYAU"
}
],
"Id": "0YTRN0000000LSm4AM",
"ExpirationDate": "2024-05-15"
},
{
"participants": [
{
"Name": "Laura Border",
"Id": "0aoRN0000000HtSYAU",
"RelationshipToInsured": "Spouse"
},
{
"Name": "Allan Border",
"Id": "0aoRN0000000HtTYAU",
"RelationshipToInsured": "Self"
}
],
"EffectiveDate": "2023-08-07",
"Name": "VSP Premium Enrollment",
"coverages": [
{
"Id": "0cYRN0000000OC62AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HtTYAU"
},
{
"Id": "0cYRN0000000OC72AM",
"CoverageName": "VSP Premium Enrollment",
"InsurancePolicyParticipantId": "0aoRN0000000HtTYAU"
}
],
"Id": "0YTRN0000000LSr4AM",
"ExpirationDate": "2024-05-15"
}
],
"accountId": "001RN000003IYMBYA4"
}
]
},
"errorCode": "INVOKE-200",
"error": "OK"
}
