POST api/Vehicles?apiKey={apiKey}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
apiKey | string |
Required |
Body Parameters
VehicleName | Description | Type | Additional information |
---|---|---|---|
LicenseNo | string |
None. |
|
Identity | Identity |
None. |
|
EngineNo | string |
None. |
|
ProductionOn | date |
None. |
|
ReceivedOn | date |
None. |
|
ChassisNo | string |
None. |
|
CurrentFuelLevel | integer |
None. |
|
StartFuelLevel | integer |
None. |
|
CurrentKilometers | integer |
None. |
|
StartKm | integer |
None. |
|
LicenseAttachmentIDs | string |
None. |
|
RegistrationAttachmentIDs | string |
None. |
|
Insurance | VehicleInsurance |
None. |
|
ModelYear | integer |
None. |
|
ColorName | string |
None. |
|
VehicleModel | VehicleModel |
None. |
|
KeyInfo | string |
None. |
|
RegistrationStartOn | date |
None. |
|
RegistartionRenewalOn | date |
None. |
|
VehicleTollTrafficDetail | VehicleTollTrafficDetail |
None. |
|
VehicleAssignment | VehicleAssignment |
None. |
|
OwnerBranch | Branch |
None. |
|
CurrentBranch | Branch |
None. |
|
VehicleStatus | VehicleStatus |
None. |
|
TransactionDetail | TransactionDetail |
None. |
|
LastTransactionDetail | TransactionDetail |
None. |
|
ExpectedVehicleCheckInOn | date |
None. |
|
OwnershipEndOn | date |
None. |
|
OwnershipStartOn | date |
None. |
|
Vendor | ContactInfo |
None. |
|
Description | string |
None. |
|
OwnershipType | OwnershipType |
None. |
|
InsurenceEndOn | date |
None. |
|
LicenseExpiryDate | date |
None. |
|
DepreciationDetail | DepreciationDetail |
None. |
|
NRRReasonID | globally unique identifier |
None. |
|
NRRReason | string |
None. |
|
NRRRemark | string |
None. |
|
PODetail | string |
None. |
|
GRNDetail | string |
None. |
|
DisplayName | string |
None. |
|
WarrantyMonths | integer |
None. |
|
WarrantyKm | integer |
None. |
|
BarCode | string |
None. |
|
ParkingLotID | globally unique identifier |
None. |
|
ParkingLotName | string |
None. |
|
Tags | Collection of string |
None. |
|
CreatedBy | globally unique identifier |
None. |
|
CreatedOn | date |
None. |
|
ModifiedBy | globally unique identifier |
None. |
|
ModifiedOn | date |
None. |
|
IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "LicenseNo": "sample string 1", "Identity": { "Id": "df9888b5-64bc-4c41-bf48-3358222da1ba", "Code": "sample string 2" }, "EngineNo": "sample string 2", "ProductionOn": "2023-12-08T19:37:40.1014999+04:00", "ReceivedOn": "2023-12-08T19:37:40.1014999+04:00", "ChassisNo": "sample string 5", "CurrentFuelLevel": 6, "StartFuelLevel": 7, "CurrentKilometers": 8, "StartKm": 9, "LicenseAttachmentIDs": "sample string 10", "RegistrationAttachmentIDs": "sample string 11", "Insurance": { "InsuranceNo": "sample string 1", "Vendor": "sample string 2", "RegistrationOn": "2023-12-08T19:37:40.1014999+04:00", "ExpiryOn": "2023-12-08T19:37:40.1014999+04:00", "AttachmentIDs": "sample string 5" }, "ModelYear": 12, "ColorName": "sample string 13", "VehicleModel": { "VehicleModelID": "63be6826-b105-448c-a6da-7c34455ab29e", "Name": "sample string 2", "Code": "sample string 3", "Description": "sample string 4", "TariffGroup": { "TariffGroupID": "384c10bc-ef82-40ee-a43b-e69ecc5549d7", "Name": "sample string 2", "IsOnFreeSale": true }, "VehicleClassification": { "VehicleClassificationID": "923ad46d-2b18-4df8-8f11-19927186a11e", "Name": "sample string 2", "Description": "sample string 3", "SequenceNo": 4, "Attachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Icon": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "ShortDetails": "sample string 5" }, "Passengers": "sample string 8", "Luggages": "sample string 9", "Doors": "sample string 10", "AutoTransmission": true, "Airbag": true, "ABS": true, "AC": true, "CruseControl": true, "Engine": "sample string 17", "VehicleMake": { "VehicleMakeID": "1bac58e3-7f75-42fe-af86-eee9b566642f", "Name": "sample string 2" }, "Features": [ { "Name": "sample string 3", "Value": "sample string 4" }, { "Name": "sample string 3", "Value": "sample string 4" } ], "IsSoldOut": true, "IsCallToBook": true, "IsBestSeller": true, "VehicleImages": { "FrontImageAttachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "BackImageAttachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "LeftImageAttachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "RightImageAttachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" } }, "SuggestedUpgradeModelIDs": [ "87ab0f59-a3de-4707-b60b-790b979e224f", "337c155f-63ab-44f7-9c82-59d5177a1881" ], "FavouriteNote": "sample string 26", "IsRestrictBooking": true, "PaymentMode": 0, "ModelYear": "sample string 28" }, "KeyInfo": "sample string 14", "RegistrationStartOn": "2023-12-08T19:37:40.1014999+04:00", "RegistartionRenewalOn": "2023-12-08T19:37:40.1014999+04:00", "VehicleTollTrafficDetail": { "TollFile": { "TollFileID": "1bea5b87-6f7f-4499-ac47-ed4c4dcd05a1", "TollFileNo": "sample string 2" }, "TrafficFile": { "TrafficFileID": "4437b3c1-ca31-478b-8db0-c6f2844c6970", "TrafficFileNo": "sample string 2" }, "TollRegisterDate": "2023-12-08T19:37:40.1014999+04:00", "TollExpiredDate": "2023-12-08T19:37:40.1014999+04:00", "TrafficRegisterDate": "2023-12-08T19:37:40.1014999+04:00", "TrafficExpiredDate": "2023-12-08T19:37:40.1014999+04:00", "TollAttachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "TrafficAttachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "TollTagID": "sample string 1" }, "VehicleAssignment": 0, "OwnerBranch": { "Identity": { "Id": "df9888b5-64bc-4c41-bf48-3358222da1ba", "Code": "sample string 2" }, "CountryState": { "StateCode": "sample string 2", "StateName": "sample string 3", "CountryCode": "sample string 4", "CountryName": "sample string 5", "NationalityCode": "sample string 6", "NationalityName": "sample string 7" }, "Name": "sample string 4", "Address": "sample string 5", "ContactNo": "sample string 6", "TelephoneNo": "sample string 7", "EmailID": "sample string 8", "Attachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Longitude": 11.1, "Latitude": 12.1, "BranchType": { "BranchTypeID": "951970fc-bd80-42df-9e1a-762e204ad6ad", "Name": "sample string 2", "Attachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" } }, "HoursToGetReady": 15, "Description": "sample string 18", "Message": "sample string 19", "BranchOfficeTiming": {}, "GoogleLocationURL": "sample string 20" }, "CurrentBranch": { "Identity": { "Id": "df9888b5-64bc-4c41-bf48-3358222da1ba", "Code": "sample string 2" }, "CountryState": { "StateCode": "sample string 2", "StateName": "sample string 3", "CountryCode": "sample string 4", "CountryName": "sample string 5", "NationalityCode": "sample string 6", "NationalityName": "sample string 7" }, "Name": "sample string 4", "Address": "sample string 5", "ContactNo": "sample string 6", "TelephoneNo": "sample string 7", "EmailID": "sample string 8", "Attachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Longitude": 11.1, "Latitude": 12.1, "BranchType": { "BranchTypeID": "951970fc-bd80-42df-9e1a-762e204ad6ad", "Name": "sample string 2", "Attachment": { "AttachmentID": "808cd5f6-df03-4bb1-b466-d33121078337", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" } }, "HoursToGetReady": 15, "Description": "sample string 18", "Message": "sample string 19", "BranchOfficeTiming": {}, "GoogleLocationURL": "sample string 20" }, "VehicleStatus": 0, "TransactionDetail": { "TransactionID": "e112ffcc-ad5d-4b50-a7f4-1e8085f9d2f3", "TransactionType": 0, "FinanceTranType": 1, "VehicleNo": "sample string 2", "VehicleModelName": "sample string 3", "DriverName": "sample string 4", "TrasactionDate": "2023-12-08T19:37:40.1014999+04:00", "TrasactionEndDate": "2023-12-08T19:37:40.1014999+04:00", "TransactionNo": "sample string 6", "LastTransactionOn": "2023-12-08T19:37:40.1014999+04:00", "InvoiceCycle": 1, "AgreementStatus": 0, "LastInvoiceFrom": "2023-12-08T19:37:40.1014999+04:00", "LastInvoiceTo": "2023-12-08T19:37:40.1014999+04:00", "Note": "sample string 10" }, "LastTransactionDetail": { "TransactionID": "e112ffcc-ad5d-4b50-a7f4-1e8085f9d2f3", "TransactionType": 0, "FinanceTranType": 1, "VehicleNo": "sample string 2", "VehicleModelName": "sample string 3", "DriverName": "sample string 4", "TrasactionDate": "2023-12-08T19:37:40.1014999+04:00", "TrasactionEndDate": "2023-12-08T19:37:40.1014999+04:00", "TransactionNo": "sample string 6", "LastTransactionOn": "2023-12-08T19:37:40.1014999+04:00", "InvoiceCycle": 1, "AgreementStatus": 0, "LastInvoiceFrom": "2023-12-08T19:37:40.1014999+04:00", "LastInvoiceTo": "2023-12-08T19:37:40.1014999+04:00", "Note": "sample string 10" }, "ExpectedVehicleCheckInOn": "2023-12-08T19:37:40.1014999+04:00", "OwnershipEndOn": "2023-12-08T19:37:40.1014999+04:00", "OwnershipStartOn": "2023-12-08T19:37:40.1014999+04:00", "Vendor": { "CustomerType": 0, "TitleType": 0, "Name": "sample string 1", "Address": "sample string 2", "Email": "sample string 3", "ContactNo": "sample string 4", "CountryState": { "StateCode": "sample string 2", "StateName": "sample string 3", "CountryCode": "sample string 4", "CountryName": "sample string 5", "NationalityCode": "sample string 6", "NationalityName": "sample string 7" }, "Id": "08fe280b-84b0-491c-be87-1fd559efe5b6", "Code": "sample string 9" }, "Description": "sample string 18", "OwnershipType": 0, "InsurenceEndOn": "2023-12-08T19:37:40.1014999+04:00", "LicenseExpiryDate": "2023-12-08T19:37:40.1014999+04:00", "DepreciationDetail": { "PurchasePrice": 1.1, "LastDepreciationOn": "2023-12-08T19:37:40.1014999+04:00", "NextDepreciationDueOn": "2023-12-08T19:37:40.1014999+04:00", "BookValue": 4.1 }, "NRRReasonID": "21364108-6f6f-4493-9a38-3c88720c067a", "NRRReason": "sample string 22", "NRRRemark": "sample string 23", "PODetail": "sample string 24", "GRNDetail": "sample string 25", "DisplayName": "sample string 26", "WarrantyMonths": 27, "WarrantyKm": 28, "BarCode": "sample string 29", "ParkingLotID": "893fac1a-e68d-4d4e-ae2f-611980db3c01", "ParkingLotName": "sample string 31", "Tags": [ "sample string 1", "sample string 2" ], "CreatedBy": "4a24ba1a-bf3c-4078-a9c7-8d87eae18542", "CreatedOn": "2023-12-08T19:37:40.1014999+04:00", "ModifiedBy": "08dc80fc-4042-440c-9664-db72a1ce40a1", "ModifiedOn": "2023-12-08T19:37:40.1014999+04:00", "IsDeleted": true }
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultName | Description | Type | Additional information |
---|---|---|---|
IsValid | boolean |
None. |
|
Message | string |
None. |
|
Code | string |
None. |
|
ID | globally unique identifier |
None. |
|
Errors | Collection of string |
None. |
|
ErrorCodes | Collection of ErrorCode |
None. |
Response Formats
application/json, text/json
Sample:
{ "IsValid": true, "Message": "sample string 2", "Code": "sample string 3", "ID": "3e975def-2037-414f-bd1a-7a178011c256", "Errors": [ "sample string 1", "sample string 2" ], "ErrorCodes": [ 1, 1 ] }
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity"> <Code>sample string 3</Code> <ErrorCodes> <ErrorCode>Success</ErrorCode> <ErrorCode>Success</ErrorCode> </ErrorCodes> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> <ID>3e975def-2037-414f-bd1a-7a178011c256</ID> <IsValid>true</IsValid> <Message>sample string 2</Message> </Result>