Last updated: 2024-06-07
GetPolicyInvtData Method
In this topic:
Overview
The GetPolicyInvtData method retrieves details of a specified contact's policy and investment holdings.
The GetPolicyInvtData method is invoked using the method operation.
Parameters
| Parameter Name | Type | Required? | Description |
|---|---|---|---|
ContactID | String | Yes | This is the object ID of the contact. |
Example
This example request retrieves policy and investment holdings for a contact with object ID Contact.1.18:
XML
<request version='1.0'>
<header>...</header>
<method>
<GetPolicyInvtData>
<ContactID>Contact.1.18</ContactID>
</GetPolicyInvtData>
</method>
</request>The response includes the contact's name and details about each holding:
XML
<response version="1.0">
<header>
<sessionClosed/>
</header>
<method>
<GetPolicyInvtData>
<Contact id="Contact.1.18" _type="obj">
<FirstName>Essie</FirstName>
<LastName>Chambers</LastName>
<Policies _type="objs">
<Policy id="Policy.1.2" _type="obj">
<CarrierName>Best Insurance</CarrierName>
<HoldingType>Life</HoldingType>
<PolicyNumber>267435</PolicyNumber>
<AnnualPremium>0</AnnualPremium>
</Policy>
</Policies>
<AcctMasters _type="objs">
<AcctMaster id="AcctMaster.1.5" _type="obj">
<AcctNumber>2345232354</AcctNumber>
<AcctName>TD Ameritrade</AcctName>
<AcctType>Individual</AcctType>
<HowHeld>Directly Owned</HowHeld>
<Owner>Client</Owner>
<Status>Active/Open</Status>
<Positions _type="objs">
<Position id="Position.1.19" _type="obj">
<InvestName>NVIDIA CORP COM</InvestName>
<HoldingType>Stocks</HoldingType>
<PurchaseDate>2016-03-13</PurchaseDate>
<MaturityValue>0</MaturityValue>
<TaxDeferred>No</TaxDeferred>
</Position>
</Positions>
</AcctMaster>
</AcctMasters>
</Contact>
</GetPolicyInvtData>
</method>
<_status>OK</_status>
<_systime>2017-03-13T22:36:45</_systime>
<!-Cost 31 mill seconds. -->
</response>