POST api/Purchase/PurchasePrivateVehicleNew
Created BY : Nagendra Created Date : 20th Nov 2019 Purpose :Insert InsertPrivateCarDealership into new table
Request Information
URI Parameters
None.
Body Parameters
PrivateCarDealership| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseVehiclePrivateID | integer |
None. |
|
| PurchaseVehicleCarDealerID | integer |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| PersonPhoneNumber | string |
None. |
|
| ReferredByPL | integer |
None. |
|
| Suburb | string |
None. |
|
| TransportLocation | integer |
None. |
|
| MakeID | integer |
None. |
|
| ModelID | integer |
None. |
|
| SeriesID | integer |
None. |
|
| BodyType | integer |
None. |
|
| Notes | string |
None. |
|
| RegistrationID | string |
None. |
|
| BodyColour | integer |
None. |
|
| PurchaseSourceTypePL | integer |
None. |
|
| VehicleImagePath | string |
None. |
|
| VehicleImageName | string |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| BidAmount | decimal number |
None. |
|
| AcceptStatus | boolean |
None. |
|
| QuoteStatus | boolean |
None. |
|
| IsLocalDropOff | boolean |
None. |
|
| CarDealerID | integer |
None. |
|
| CardealerRepresentativeName | string |
None. |
|
| PrivateAddress | string |
None. |
|
| OwnerAddress | string |
None. |
|
| OwnerSuburb | string |
None. |
|
| OwnerPostalCode | string |
None. |
|
| OwnerCountryID | integer |
None. |
|
| OwnerStateID | integer |
None. |
|
| DropOffLocation | integer |
None. |
|
| TransportCost | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"PurchaseVehiclePrivateID": 1,
"PurchaseVehicleCarDealerID": 2,
"FirstName": "sample string 3",
"LastName": "sample string 4",
"PersonPhoneNumber": "sample string 5",
"ReferredByPL": 6,
"Suburb": "sample string 7",
"TransportLocation": 8,
"MakeID": 9,
"ModelID": 10,
"SeriesID": 11,
"BodyType": 12,
"Notes": "sample string 13",
"RegistrationID": "sample string 14",
"BodyColour": 15,
"PurchaseSourceTypePL": 16,
"VehicleImagePath": "sample string 17",
"VehicleImageName": "sample string 18",
"CreatedBy": 19,
"CreatedDate": "2020-02-27T04:50:59.4511029+11:00",
"BidAmount": 21.0,
"AcceptStatus": true,
"QuoteStatus": true,
"IsLocalDropOff": true,
"CarDealerID": 25,
"CardealerRepresentativeName": "sample string 26",
"PrivateAddress": "sample string 27",
"OwnerAddress": "sample string 28",
"OwnerSuburb": "sample string 29",
"OwnerPostalCode": "sample string 30",
"OwnerCountryID": 1,
"OwnerStateID": 1,
"DropOffLocation": 1,
"TransportCost": 31.0
}
application/xml, text/xml
Sample:
<PrivateCarDealership xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TARWebAPI.Models"> <AcceptStatus>true</AcceptStatus> <BidAmount>21</BidAmount> <BodyColour>15</BodyColour> <BodyType>12</BodyType> <CarDealerID>25</CarDealerID> <CardealerRepresentativeName>sample string 26</CardealerRepresentativeName> <CreatedBy>19</CreatedBy> <CreatedDate>2020-02-27T04:50:59.4511029+11:00</CreatedDate> <DropOffLocation>1</DropOffLocation> <FirstName>sample string 3</FirstName> <IsLocalDropOff>true</IsLocalDropOff> <LastName>sample string 4</LastName> <MakeID>9</MakeID> <ModelID>10</ModelID> <Notes>sample string 13</Notes> <OwnerAddress>sample string 28</OwnerAddress> <OwnerCountryID>1</OwnerCountryID> <OwnerPostalCode>sample string 30</OwnerPostalCode> <OwnerStateID>1</OwnerStateID> <OwnerSuburb>sample string 29</OwnerSuburb> <PersonPhoneNumber>sample string 5</PersonPhoneNumber> <PrivateAddress>sample string 27</PrivateAddress> <PurchaseSourceTypePL>16</PurchaseSourceTypePL> <PurchaseVehicleCarDealerID>2</PurchaseVehicleCarDealerID> <PurchaseVehiclePrivateID>1</PurchaseVehiclePrivateID> <QuoteStatus>true</QuoteStatus> <ReferredByPL>6</ReferredByPL> <RegistrationID>sample string 14</RegistrationID> <SeriesID>11</SeriesID> <Suburb>sample string 7</Suburb> <TransportCost>31</TransportCost> <TransportLocation>8</TransportLocation> <VehicleImageName>sample string 18</VehicleImageName> <VehicleImagePath>sample string 17</VehicleImagePath> </PrivateCarDealership>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.