POST v1/PolicyProductDetails/UpdatePolicyProductDetails

Insert or Update policy product details

Request Information

URI Parameters

None.

Body Parameters

PolicyProductDetailsDTO

PolicyProductDetailsDTO
NameDescriptionTypeAdditional information
Id

integer

None.

ProductNumber

integer

None.

PolicyQuoteID

integer

None.

ProductName

string

None.

AnnulaSalesReceipts

integer

None.

NumberOfUnits

integer

None.

MonthsInMarket

integer

None.

MonthsExpectedLife

integer

None.

IntendedUse

string

None.

PrincipalComponents

string

None.

IsRented

boolean

None.

IsProductImported

boolean

None.

IsProductExported

boolean

None.

IsNewProduct

boolean

None.

IsAircraft

boolean

None.

ReturnType

string

None.

ProductOfOthers

string

None.

LabelOfOthers

string

None.

TypeOfBusiness

string

None.

RevenuePercentage

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductNumber": 1,
  "PolicyQuoteID": 2,
  "ProductName": "sample string 3",
  "AnnulaSalesReceipts": 1,
  "NumberOfUnits": 1,
  "MonthsInMarket": 1,
  "MonthsExpectedLife": 1,
  "IntendedUse": "sample string 4",
  "PrincipalComponents": "sample string 5",
  "IsRented": true,
  "IsProductImported": true,
  "IsProductExported": true,
  "IsNewProduct": true,
  "IsAircraft": true,
  "ReturnType": "sample string 6",
  "ProductOfOthers": "sample string 7",
  "LabelOfOthers": "sample string 8",
  "TypeOfBusiness": "sample string 9",
  "RevenuePercentage": 1
}

application/xml, text/xml

Sample:
<PolicyProductDetailsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <AnnulaSalesReceipts>1</AnnulaSalesReceipts>
  <Id>1</Id>
  <IntendedUse>sample string 4</IntendedUse>
  <IsAircraft>true</IsAircraft>
  <IsNewProduct>true</IsNewProduct>
  <IsProductExported>true</IsProductExported>
  <IsProductImported>true</IsProductImported>
  <IsRented>true</IsRented>
  <LabelOfOthers>sample string 8</LabelOfOthers>
  <MonthsExpectedLife>1</MonthsExpectedLife>
  <MonthsInMarket>1</MonthsInMarket>
  <NumberOfUnits>1</NumberOfUnits>
  <PolicyQuoteID>2</PolicyQuoteID>
  <PrincipalComponents>sample string 5</PrincipalComponents>
  <ProductName>sample string 3</ProductName>
  <ProductNumber>1</ProductNumber>
  <ProductOfOthers>sample string 7</ProductOfOthers>
  <ReturnType>sample string 6</ReturnType>
  <RevenuePercentage>1</RevenuePercentage>
  <TypeOfBusiness>sample string 9</TypeOfBusiness>
</PolicyProductDetailsDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PolicyProductDetailsDTO'.

Response Information

Resource Description

ActionResultDTOOfPolicyProductDetailsDTO
NameDescriptionTypeAdditional information
Result

PolicyProductDetailsDTO

None.

CreatedBy

string

None.

EntityID

integer

None.

RowSource

string

None.

PolicyID

integer

None.

IsSuccess

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

InfoMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "Id": 1,
    "ProductNumber": 1,
    "PolicyQuoteID": 2,
    "ProductName": "sample string 3",
    "AnnulaSalesReceipts": 1,
    "NumberOfUnits": 1,
    "MonthsInMarket": 1,
    "MonthsExpectedLife": 1,
    "IntendedUse": "sample string 4",
    "PrincipalComponents": "sample string 5",
    "IsRented": true,
    "IsProductImported": true,
    "IsProductExported": true,
    "IsNewProduct": true,
    "IsAircraft": true,
    "ReturnType": "sample string 6",
    "ProductOfOthers": "sample string 7",
    "LabelOfOthers": "sample string 8",
    "TypeOfBusiness": "sample string 9",
    "RevenuePercentage": 1
  },
  "CreatedBy": "sample string 1",
  "EntityID": 2,
  "RowSource": "sample string 3",
  "PolicyID": 4,
  "IsSuccess": true,
  "ErrorCode": "sample string 6",
  "ErrorMessage": "sample string 7",
  "InfoMessage": "sample string 8"
}

application/xml, text/xml

Sample:
<ActionResultOfPolicyProductDetailsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects">
  <ErrorCode>sample string 6</ErrorCode>
  <ErrorMessage>sample string 7</ErrorMessage>
  <InfoMessage>sample string 8</InfoMessage>
  <IsSuccess>true</IsSuccess>
  <CreatedBy>sample string 1</CreatedBy>
  <EntityID>2</EntityID>
  <PolicyID>4</PolicyID>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
    <d2p1:AnnulaSalesReceipts>1</d2p1:AnnulaSalesReceipts>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:IntendedUse>sample string 4</d2p1:IntendedUse>
    <d2p1:IsAircraft>true</d2p1:IsAircraft>
    <d2p1:IsNewProduct>true</d2p1:IsNewProduct>
    <d2p1:IsProductExported>true</d2p1:IsProductExported>
    <d2p1:IsProductImported>true</d2p1:IsProductImported>
    <d2p1:IsRented>true</d2p1:IsRented>
    <d2p1:LabelOfOthers>sample string 8</d2p1:LabelOfOthers>
    <d2p1:MonthsExpectedLife>1</d2p1:MonthsExpectedLife>
    <d2p1:MonthsInMarket>1</d2p1:MonthsInMarket>
    <d2p1:NumberOfUnits>1</d2p1:NumberOfUnits>
    <d2p1:PolicyQuoteID>2</d2p1:PolicyQuoteID>
    <d2p1:PrincipalComponents>sample string 5</d2p1:PrincipalComponents>
    <d2p1:ProductName>sample string 3</d2p1:ProductName>
    <d2p1:ProductNumber>1</d2p1:ProductNumber>
    <d2p1:ProductOfOthers>sample string 7</d2p1:ProductOfOthers>
    <d2p1:ReturnType>sample string 6</d2p1:ReturnType>
    <d2p1:RevenuePercentage>1</d2p1:RevenuePercentage>
    <d2p1:TypeOfBusiness>sample string 9</d2p1:TypeOfBusiness>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfPolicyProductDetailsDTO>