POST api/InsuranceV2/PremiumEstimate

Request Information

URI Parameters

None.

Body Parameters

RequestPremiumEstimate
NameDescriptionTypeAdditional information
SchemeId

integer

None.

TotalNumber

integer

None.

Days

integer

None.

InsuranceCompanyChannelCode

string

None.

InsuranceSchemeCode

string

None.

InsuranceSchemeType

InsuranceSchemeCodeTypeEnum

None.

RequestTimestamp

integer

None.

ReqAccount

IsuranceReqAccount

None.

Request Formats

application/json, text/json

Sample:
{
  "SchemeId": 1,
  "TotalNumber": 2,
  "Days": 3,
  "InsuranceCompanyChannelCode": "sample string 4",
  "InsuranceSchemeCode": "sample string 5",
  "InsuranceSchemeType": 0,
  "RequestTimestamp": 6,
  "ReqAccount": {
    "OrgId": "sample string 1",
    "LoginName": "sample string 2",
    "Password": "sample string 3",
    "HandlerCode": "sample string 4",
    "ChannelCode": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<RequestPremiumEstimate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Isonfor.ECommerce.Common.Entity.V2.Request.Insurance">
  <_x003C_InsuranceCompanyChannelCode_x003E_k__BackingField>sample string 4</_x003C_InsuranceCompanyChannelCode_x003E_k__BackingField>
  <_x003C_InsuranceSchemeCode_x003E_k__BackingField>sample string 5</_x003C_InsuranceSchemeCode_x003E_k__BackingField>
  <_x003C_InsuranceSchemeType_x003E_k__BackingField>All</_x003C_InsuranceSchemeType_x003E_k__BackingField>
  <_x003C_ReqAccount_x003E_k__BackingField>
    <ChannelCode>sample string 5</ChannelCode>
    <HandlerCode>sample string 4</HandlerCode>
    <LoginName>sample string 2</LoginName>
    <OrgId>sample string 1</OrgId>
    <Password>sample string 3</Password>
  </_x003C_ReqAccount_x003E_k__BackingField>
  <_x003C_RequestTimestamp_x003E_k__BackingField>6</_x003C_RequestTimestamp_x003E_k__BackingField>
  <Days>3</Days>
  <SchemeId>1</SchemeId>
  <TotalNumber>2</TotalNumber>
</RequestPremiumEstimate>

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 'RequestPremiumEstimate'.

Response Information

Resource Description

ExecuteResultOfString
NameDescriptionTypeAdditional information
Data

string

None.

Success

boolean

None.

IsSuccess

boolean

None.

Msg

string

None.

Code

integer

None.

StatusCode

string

None.

Errors

Dictionary of string [key] and string [value]

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": "sample string 1",
  "Success": true,
  "IsSuccess": true,
  "Msg": "sample string 4",
  "Code": 5,
  "StatusCode": "sample string 6",
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<ExecuteResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZTSoft.Core">
  <Code>5</Code>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 4</Msg>
  <StatusCode>sample string 6</StatusCode>
  <Success>true</Success>
  <Data>sample string 1</Data>
</ExecuteResultOfstring>