POST api/Quoting?IsQuote={IsQuote}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
IsQuote

boolean

Default value is True

Body Parameters

BindQuoteViewModel
NameDescriptionTypeAdditional information
Name

string

Required

Description

string

None.

ValidFrom

date

None.

ValidTo

date

None.

CustomerIds

Collection of integer

None.

CarrierIds

Collection of integer

None.

StatusId

integer

Required

Rates

Collection of SimplifiedRateQuoteCategoryViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "ValidFrom": "2025-12-05T23:17:29.6733621-08:00",
  "ValidTo": "2025-12-05T23:17:29.6733621-08:00",
  "CustomerIds": [
    1,
    1
  ],
  "CarrierIds": [
    1,
    1
  ],
  "StatusId": 3,
  "Rates": [
    {
      "RateCategoryId": 1,
      "RateCategoryName": "sample string 1",
      "ServiceId": 2,
      "ModeId": 1,
      "QuoteRates": [
        {
          "RateId": 1,
          "ChargeId": 2,
          "Rate": 3.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "FreeTime": 1.0,
          "IsVariable": true,
          "IsQuickAdd": true
        },
        {
          "RateId": 1,
          "ChargeId": 2,
          "Rate": 3.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "FreeTime": 1.0,
          "IsVariable": true,
          "IsQuickAdd": true
        }
      ]
    },
    {
      "RateCategoryId": 1,
      "RateCategoryName": "sample string 1",
      "ServiceId": 2,
      "ModeId": 1,
      "QuoteRates": [
        {
          "RateId": 1,
          "ChargeId": 2,
          "Rate": 3.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "FreeTime": 1.0,
          "IsVariable": true,
          "IsQuickAdd": true
        },
        {
          "RateId": 1,
          "ChargeId": 2,
          "Rate": 3.0,
          "MinCharge": 1.0,
          "MaxCharge": 1.0,
          "FreeTime": 1.0,
          "IsVariable": true,
          "IsQuickAdd": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<BindQuoteViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Quote">
  <CarrierIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </CarrierIds>
  <CustomerIds xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>1</d2p1:int>
  </CustomerIds>
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <Rates>
    <SimplifiedRateQuoteCategoryViewModel>
      <ModeId>1</ModeId>
      <QuoteRates>
        <SimplifiedRateQuoteViewModel>
          <ChargeId>2</ChargeId>
          <FreeTime>1</FreeTime>
          <IsQuickAdd>true</IsQuickAdd>
          <IsVariable>true</IsVariable>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Rate>3</Rate>
          <RateId>1</RateId>
        </SimplifiedRateQuoteViewModel>
        <SimplifiedRateQuoteViewModel>
          <ChargeId>2</ChargeId>
          <FreeTime>1</FreeTime>
          <IsQuickAdd>true</IsQuickAdd>
          <IsVariable>true</IsVariable>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Rate>3</Rate>
          <RateId>1</RateId>
        </SimplifiedRateQuoteViewModel>
      </QuoteRates>
      <RateCategoryId>1</RateCategoryId>
      <RateCategoryName>sample string 1</RateCategoryName>
      <ServiceId>2</ServiceId>
    </SimplifiedRateQuoteCategoryViewModel>
    <SimplifiedRateQuoteCategoryViewModel>
      <ModeId>1</ModeId>
      <QuoteRates>
        <SimplifiedRateQuoteViewModel>
          <ChargeId>2</ChargeId>
          <FreeTime>1</FreeTime>
          <IsQuickAdd>true</IsQuickAdd>
          <IsVariable>true</IsVariable>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Rate>3</Rate>
          <RateId>1</RateId>
        </SimplifiedRateQuoteViewModel>
        <SimplifiedRateQuoteViewModel>
          <ChargeId>2</ChargeId>
          <FreeTime>1</FreeTime>
          <IsQuickAdd>true</IsQuickAdd>
          <IsVariable>true</IsVariable>
          <MaxCharge>1</MaxCharge>
          <MinCharge>1</MinCharge>
          <Rate>3</Rate>
          <RateId>1</RateId>
        </SimplifiedRateQuoteViewModel>
      </QuoteRates>
      <RateCategoryId>1</RateCategoryId>
      <RateCategoryName>sample string 1</RateCategoryName>
      <ServiceId>2</ServiceId>
    </SimplifiedRateQuoteCategoryViewModel>
  </Rates>
  <StatusId>3</StatusId>
  <ValidFrom>2025-12-05T23:17:29.6733621-08:00</ValidFrom>
  <ValidTo>2025-12-05T23:17:29.6733621-08:00</ValidTo>
</BindQuoteViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.