POST api/quotes/calculator

Gets a calculation from quoteAPI

Request Information

URI Parameters

None.

Body Parameters

ERP.Api.Models.CustomerPortal.Calculator
NameDescriptionTypeAdditional information
VehiclePrice

decimal number

None.

Deposit

decimal number

None.

Term

integer

None.

CreditProfile

ERP.Domain.Common.Quote.CreditWorthiness

None.

FlatRate

decimal number

None.

Vrm

string

None.

Mileage

decimal number

None.

AnnualMileage

decimal number

None.

RegisterationDate

date

None.

ResidualValue

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "vehiclePrice": 1.0,
  "deposit": 2.0,
  "term": 3,
  "creditProfile": 0,
  "flatRate": 1.0,
  "vrm": "sample string 4",
  "mileage": 5.0,
  "annualMileage": 6.0,
  "registerationDate": "2025-01-18",
  "residualValue": 1.0
}

application/xml, text/xml

Sample:
<Calculator xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Api.Models.CustomerPortal">
  <AnnualMileage>6</AnnualMileage>
  <CreditProfile>Poor</CreditProfile>
  <Deposit>2</Deposit>
  <FlatRate>1</FlatRate>
  <Mileage>5</Mileage>
  <RegisterationDate>2025-01-18T23:50:02.3962531+00:00</RegisterationDate>
  <ResidualValue>1</ResidualValue>
  <Term>3</Term>
  <VehiclePrice>1</VehiclePrice>
  <Vrm>sample string 4</Vrm>
</Calculator>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'ERP.Api.Models.CustomerPortal.Calculator'.

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.