U bent hier:
InsEnrollmentServiceStd:getPolicyDetails
Haal verzekeringspolisrecords op voor leden van de primaire groepstelling.
Klasse: InsEnrollmentServiceStd
Methode: getPolicyDetails
Scenario
| accountId | leden | isPersonAccountEnabled |
|---|---|---|
| c10001 | { "FirstName": "Allan", "LastName": "Border" } |
true (waar) |
De manier waarop het werkt...
-
Als er lidgegevens worden verstrekt, parseert de service de lidgegevens voor contactpersoons- of persoonsaccount-ID's.
-
Als isPersonAccountEnabled true (waar) is, roept de service de service findAccounts aan met behulp van de PersonAccount-ID's.
-
Als isPersonAccountEnabled false (onwaar) is, roept de service findContacts aan met behulp van de Contactpersoons-ID's.
-
-
Als contactpersoons-ID's zijn opgegeven, gebruikt de service de contactpersoons-ID's voor overeenkomsten voor het veld ContactId in de entiteit InsurancePolicyParticipant.
-
Als account-ID's zijn opgegeven, gebruikt de service de account-ID's voor overeenkomsten in het veld AccountId in de entiteit InsurancePolicyParticipant.
-
De service retourneert verzekeringspolisrecords waarvan het veld Status niet is ingesteld op "Geannuleerd" of "Geannuleerd".
Servicewerking
Begrijp hoe verschillende invoer van invloed is op de service-uitvoer.
| Invoer | Service-uitvoer |
|---|---|
| Geen leden en geen contactsIds en geen accountIds | Geef een geldige waarde op voor groupAccountId of leden of accountIds of contactIds. |
Invoer
| Invoer | Beschrijving |
|---|---|
groupAccountId
|
Verplicht. ID van de groepsaccount |
members or contactIds or accountId
|
Verplicht. array van leden die minstens één van deze drie velden bevatten: FirstName, LastName, Email of array van contactpersoons-ID's van de primaire leden van de volkstelling of array of.PersonAccount-ID's van de primaire leden van de volkstelling |
isPersonAccountEnabled
|
Optioneel. Geeft aan of PersonAccounts is ingeschakeld in de organisatie. |
Invoer-JSON
Hier is de voorbeeldinvoer-JSON:
{
"accountId": "001RN0000035v63YAA",
"members": [
{
"FirstName": "Allan",
"LastName": "Border"
}
]
} Uitvoer-JSON
Hier is de voorbeelduitvoer-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"
}