Loading
Forsikring
InsEnrollmentServiceStd:getPolicyDetails

InsEnrollmentServiceStd:getPolicyDetails

Hent forsikringspoliceregistreringer for medlemmer af den primære gruppetælling.

Kategori: InsEnrollmentServiceStd

Metode: getPolicyDetails

Scenarie

accountId medlemmer isPersonAccountEnabled
c10001

{

"FirstName": "Allan",

"LastName": "Border"

}

true

Sådan fungerer det

  1. Hvis der angives medlemsoplysninger, parser tjenesten medlemsdataene for Kontakt- eller PersonAccount-id'er.

    1. Hvis isPersonAccountEnabled er sandt, kalder tjenesten findAccounts-tjenesten ved brug af PersonAccount-id'erne.

    2. Hvis isPersonAccountEnabled er falsk, kalder tjenesten findContacts-tjenesten ved brug af kontakt-id'erne.

  2. Hvis der angives kontakt-id'er, bruger tjenesten kontakt-id'er til at matche på feltet ContactId i InsurancePolicyParticipant-enheden.

  3. Hvis der angives konto-id'er, bruger tjenesten konto-id'er til at matche på feltet AccountId i InsurancePolicyParticipant-enheden.

  4. Tjenesten returnerer forsikringspoliceregistreringer, hvis statusfelt ikke er indstillet til "Annulleret" eller "Annulleret".

Serviceadfærd

Forstå, hvordan forskellige input påvirker serviceoutput.

Input Serviceoutput
Ingen medlemmer og ingen contactsIds og ingen accountIds Angiv en gyldig værdi for enten groupAccountId eller medlemmer eller accountIds eller contactIds.

Input

Input Beskrivelse
groupAccountId

Påkrævet.

Id for gruppekontoen

members or contactIds or accountId

Påkrævet.

en matriks af medlemmer, der indeholder mindst et af disse tre felter: FirstName, LastName, Email

eller

en matriks af kontakt-id'er for medlemmer af den primære optælling

eller

matriks af.PersonAccount-id'er for de primære opkrævningsmedlemmer

isPersonAccountEnabled

Valgfrit.

Angiver, om PersonAccounts er aktiveret i organisationen.

Input JSON

Her er eksempel på input-JSON:

{
    "accountId": "001RN0000035v63YAA",
    "members": [
        {
            "FirstName": "Allan",
            "LastName": "Border"
        }
    ]
} 

Output JSON

Her er eksempelresultat-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"
}
 
Indlæser
Salesforce Help | Article