Vous êtes ici :
InsEnrollmentServiceStd:getPolicyDetails
Récupérez les enregistrements Police d'assurance pour les membres du recensement du groupe principal.
Classe: InsEnrollmentServiceStd
Méthode : getPolicyDetails
Scénario
| accountId | membres | isPersonAccountEnabled |
|---|---|---|
| c10001 | { "FirstName" : "Allan", "LastName": "Border" } |
True (vrai) |
Fonctionnement
-
Si des informations sur le membre sont fournies, le service analyse les données du membre pour les ID de contact ou de compte personnel.
-
Si isPersonAccountEnabled est true, le service appelle le service findAccounts en utilisant les ID PersonAccount.
-
Si isPersonAccountEnabled est false, le service appelle le service findContacts en utilisant les ID de contact.
-
-
Si des ID de contact sont fournis, le service utilise les ID de contact pour correspondre dans le champ ContactId de l'entité InsurancePolicyParticipant.
-
Si des ID de compte sont fournis, le service utilise les ID de compte pour correspondre dans le champ AccountId de l'entité InsurancePolicyParticipant.
-
Le service renvoie les enregistrements Police d'assurance dont le champ Statut n'est pas défini sur « Annulé » ou « Annulé ».
Comportement de service
Comprenez comment les différentes entrées affectent les sorties de service.
| Entrée | Sortie de service |
|---|---|
| Aucun membre et aucun contactIds et aucun accountIds | Spécifiez une valeur valide pour groupAccountId ou members ou accountIds ou contactIds. |
Entrées
| Entrée | Description |
|---|---|
groupAccountId
|
Obligatoire. ID du compte du groupe |
members or contactIds or accountId
|
Obligatoire. tableau de membres contenant au moins l'un des trois champs suivants : FirstName, LastName, Email ou Tableau des ID de contact des principaux membres du recensement ou array of.ID de compte personnel des principaux membres du recensement |
isPersonAccountEnabled
|
Facultatif. Indique si PersonAccounts est activé dans l'organisation. |
JSON d'entrée
Voici l'exemple de JSON d'entrée :
{
"accountId": "001RN0000035v63YAA",
"members": [
{
"FirstName": "Allan",
"LastName": "Border"
}
]
} JSON de sortie
Voici l'exemple de JSON de sortie :
{
"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"
}