POST v1/Policies/{policyId}/Quotes

Upserts a quote for an existing policy.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
policyId

Policy Id to upsert quotes for

string

Required

Body Parameters

Quote for upserting

QuoteDTO
NameDescriptionTypeAdditional information
QuoteID

integer

None.

PolicyID

integer

None.

QuoteNumber

string

None.

QuoteStatus

string

None.

QuoteSubStatus

string

None.

QuoteType

string

None.

CarrierID

integer

None.

MGAID

integer

None.

QuoteDate

date

None.

QuoteExpirationDate

date

None.

QuotedByID

integer

None.

Conditions

string

None.

BasePremium

decimal number

None.

IsDeleted

boolean

None.

Preferred

boolean

None.

QuoteCarrierFees

Collection of QuoteCarrierFeeDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "QuoteID": 1,
  "PolicyID": 2,
  "QuoteNumber": "sample string 3",
  "QuoteStatus": "sample string 4",
  "QuoteSubStatus": "sample string 5",
  "QuoteType": "sample string 6",
  "CarrierID": 1,
  "MGAID": 1,
  "QuoteDate": "2024-12-13T18:44:11.1735626+00:00",
  "QuoteExpirationDate": "2024-12-13T18:44:11.1735626+00:00",
  "QuotedByID": 7,
  "Conditions": "sample string 8",
  "BasePremium": 1.0,
  "IsDeleted": true,
  "Preferred": true,
  "QuoteCarrierFees": [
    {
      "QuoteID": 1,
      "CarrierFeeID": 2,
      "AmountIsPercent": true,
      "Amount": 4.0
    },
    {
      "QuoteID": 1,
      "CarrierFeeID": 2,
      "AmountIsPercent": true,
      "Amount": 4.0
    }
  ]
}

application/xml, text/xml

Sample:
<QuoteDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies">
  <BasePremium>1</BasePremium>
  <CarrierID>1</CarrierID>
  <Conditions>sample string 8</Conditions>
  <IsDeleted>true</IsDeleted>
  <MGAID>1</MGAID>
  <PolicyID>2</PolicyID>
  <Preferred>true</Preferred>
  <QuoteCarrierFees>
    <QuoteCarrierFeeDTO>
      <Amount>4</Amount>
      <AmountIsPercent>true</AmountIsPercent>
      <CarrierFeeID>2</CarrierFeeID>
      <QuoteID>1</QuoteID>
    </QuoteCarrierFeeDTO>
    <QuoteCarrierFeeDTO>
      <Amount>4</Amount>
      <AmountIsPercent>true</AmountIsPercent>
      <CarrierFeeID>2</CarrierFeeID>
      <QuoteID>1</QuoteID>
    </QuoteCarrierFeeDTO>
  </QuoteCarrierFees>
  <QuoteDate>2024-12-13T18:44:11.1735626+00:00</QuoteDate>
  <QuoteExpirationDate>2024-12-13T18:44:11.1735626+00:00</QuoteExpirationDate>
  <QuoteID>1</QuoteID>
  <QuoteNumber>sample string 3</QuoteNumber>
  <QuoteStatus>sample string 4</QuoteStatus>
  <QuoteSubStatus>sample string 5</QuoteSubStatus>
  <QuoteType>sample string 6</QuoteType>
  <QuotedByID>7</QuotedByID>
</QuoteDTO>

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

Response Information

Resource Description

Action result with upserted quote

ActionResultDTOOfQuoteDTO
NameDescriptionTypeAdditional information
Result

QuoteDTO

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": {
    "QuoteID": 1,
    "PolicyID": 2,
    "QuoteNumber": "sample string 3",
    "QuoteStatus": "sample string 4",
    "QuoteSubStatus": "sample string 5",
    "QuoteType": "sample string 6",
    "CarrierID": 1,
    "MGAID": 1,
    "QuoteDate": "2024-12-13T18:44:11.2048043+00:00",
    "QuoteExpirationDate": "2024-12-13T18:44:11.2048043+00:00",
    "QuotedByID": 7,
    "Conditions": "sample string 8",
    "BasePremium": 1.0,
    "IsDeleted": true,
    "Preferred": true,
    "QuoteCarrierFees": [
      {
        "QuoteID": 1,
        "CarrierFeeID": 2,
        "AmountIsPercent": true,
        "Amount": 4.0
      },
      {
        "QuoteID": 1,
        "CarrierFeeID": 2,
        "AmountIsPercent": true,
        "Amount": 4.0
      }
    ]
  },
  "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:
<ActionResultOfQuoteDTO 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:BasePremium>1</d2p1:BasePremium>
    <d2p1:CarrierID>1</d2p1:CarrierID>
    <d2p1:Conditions>sample string 8</d2p1:Conditions>
    <d2p1:IsDeleted>true</d2p1:IsDeleted>
    <d2p1:MGAID>1</d2p1:MGAID>
    <d2p1:PolicyID>2</d2p1:PolicyID>
    <d2p1:Preferred>true</d2p1:Preferred>
    <d2p1:QuoteCarrierFees>
      <d2p1:QuoteCarrierFeeDTO>
        <d2p1:Amount>4</d2p1:Amount>
        <d2p1:AmountIsPercent>true</d2p1:AmountIsPercent>
        <d2p1:CarrierFeeID>2</d2p1:CarrierFeeID>
        <d2p1:QuoteID>1</d2p1:QuoteID>
      </d2p1:QuoteCarrierFeeDTO>
      <d2p1:QuoteCarrierFeeDTO>
        <d2p1:Amount>4</d2p1:Amount>
        <d2p1:AmountIsPercent>true</d2p1:AmountIsPercent>
        <d2p1:CarrierFeeID>2</d2p1:CarrierFeeID>
        <d2p1:QuoteID>1</d2p1:QuoteID>
      </d2p1:QuoteCarrierFeeDTO>
    </d2p1:QuoteCarrierFees>
    <d2p1:QuoteDate>2024-12-13T18:44:11.2048043+00:00</d2p1:QuoteDate>
    <d2p1:QuoteExpirationDate>2024-12-13T18:44:11.2048043+00:00</d2p1:QuoteExpirationDate>
    <d2p1:QuoteID>1</d2p1:QuoteID>
    <d2p1:QuoteNumber>sample string 3</d2p1:QuoteNumber>
    <d2p1:QuoteStatus>sample string 4</d2p1:QuoteStatus>
    <d2p1:QuoteSubStatus>sample string 5</d2p1:QuoteSubStatus>
    <d2p1:QuoteType>sample string 6</d2p1:QuoteType>
    <d2p1:QuotedByID>7</d2p1:QuotedByID>
  </Result>
  <RowSource>sample string 3</RowSource>
</ActionResultOfQuoteDTO>