POST api/Vehicle8849/CalculatePriceForAdmin

Request Information

URI Parameters

None.

Body Parameters

Vehicle8849DTO
NameDescriptionTypeAdditional information
id

integer

None.

lossDate

date

None.

vin

string

None.

unitNumber

string

None.

isLogging

boolean

None.

soldTo

string

None.

emailTo

string

None.

address

string

None.

address2

string

None.

zip

string

None.

phone

string

None.

city

string

None.

explanation

string

None.

isRefundFullAmount

boolean

None.

isCalculateDifference

boolean

None.

paidAmount

string

None.

actualTaxAmount

string

None.

overpaidTaxAmount

string

None.

lossEventTypeId

integer

None.

yearId

integer

None.

monthId

integer

None.

vehicleWeightCategoryId

integer

None.

countryId

integer

None.

stateId

integer

None.

form8849Id

integer

None.

lossEventType

LossEventTypeDTO

None.

month

MonthDTO

None.

vehicleWeightCategory

VehicleWeightCategoryDTO

None.

form8849

Form8849DTO

None.

listAttachment8849

Collection of Attachment8849DTO

None.

country

CountryDTO

None.

state

StateDTO

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Application.DTOs.Vehicle8849DTO'. Path 'form8849.listVehicle8849'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Application.DTOs.Vehicle8849DTO'. Path 'form8849.listVehicle8849'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Application.DTOs.Vehicle8849DTO, Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Application.DTOs.Vehicle8849DTO, Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IdentityResultDTO
NameDescriptionTypeAdditional information
success

boolean

None.

errorMessage

string

None.

error

Collection of string

None.

result

string

None.

resultObject

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "errorMessage": "sample string 2",
  "error": [
    "sample string 1",
    "sample string 2"
  ],
  "result": "sample string 3",
  "resultObject": [
    {},
    {}
  ]
}

application/xml, text/xml

Sample:
<IdentityResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <error xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </error>
  <errorMessage>sample string 2</errorMessage>
  <result>sample string 3</result>
  <resultObject xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </resultObject>
  <success>true</success>
</IdentityResultDTO>