POST api/Vehicle?applicationId={applicationId}
Add a vehicle or update the vehicle on the application.
Request Information
Requires Authentication!
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| applicationId | integer |
Required |
Body Parameters
AdvantageVehicle| Name | Description | Type | Additional information |
|---|---|---|---|
| Vehicle |
Contains the details of the vehicle. |
Vehicle |
Required |
Request Formats
application/json, text/json
Sample:
{
"Vehicle": {
"Make": "Vauxhall",
"Model": "Insignia",
"Colour": "Insignia Gray",
"Mileage": "101241",
"DateReg": "2009-02-20T00:00:00",
"RegNo": "YC09UYH",
"VAT": 0.0,
"CashPrice": 3999.99,
"CashDeposit": 500.0,
"PartExchange": 499.99,
"FinanceRequired": 3000.0
}
}
application/xml, text/xml
Sample:
<AdvantageVehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Advantage.Blink.Web.WebModel.Vehicle">
<Vehicle>
<Make>Vauxhall</Make>
<Model>Insignia</Model>
<Colour>Insignia Gray</Colour>
<Mileage>101241</Mileage>
<DateReg>2009-02-20T00:00:00</DateReg>
<RegNo>YC09UYH</RegNo>
<VAT>0</VAT>
<CashPrice>3999.99</CashPrice>
<CashDeposit>500</CashDeposit>
<PartExchange>499.99</PartExchange>
<FinanceRequired>3000</FinanceRequired>
</Vehicle>
</AdvantageVehicle>
Response Information
Resource Description
AdvantageVehicle| Name | Description | Type | Additional information |
|---|---|---|---|
| Vehicle |
Contains the details of the vehicle. |
Vehicle |
Required |
Response Formats
application/json, text/json
Sample:
{
"Vehicle": {
"Make": "Vauxhall",
"Model": "Insignia",
"Colour": "Insignia Gray",
"Mileage": "101241",
"DateReg": "2009-02-20T00:00:00",
"RegNo": "YC09UYH",
"VAT": 0.0,
"CashPrice": 3999.99,
"CashDeposit": 500.0,
"PartExchange": 499.99,
"FinanceRequired": 3000.0
}
}
application/xml, text/xml
Sample:
<AdvantageVehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Advantage.Blink.Web.WebModel.Vehicle">
<Vehicle>
<Make>Vauxhall</Make>
<Model>Insignia</Model>
<Colour>Insignia Gray</Colour>
<Mileage>101241</Mileage>
<DateReg>2009-02-20T00:00:00</DateReg>
<RegNo>YC09UYH</RegNo>
<VAT>0</VAT>
<CashPrice>3999.99</CashPrice>
<CashDeposit>500</CashDeposit>
<PartExchange>499.99</PartExchange>
<FinanceRequired>3000</FinanceRequired>
</Vehicle>
</AdvantageVehicle>