POST api/Vehicles/Post?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": "481ed03a-3a71-4115-9570-028e311b2868", "Code": "sample string 2" }, "EngineNo": "sample string 2", "ProductionOn": "2023-12-08T20:20:08.5999677+04:00", "ReceivedOn": "2023-12-08T20:20:08.5999677+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-08T20:20:08.5999677+04:00", "ExpiryOn": "2023-12-08T20:20:08.5999677+04:00", "AttachmentIDs": "sample string 5" }, "ModelYear": 12, "ColorName": "sample string 13", "VehicleModel": { "VehicleModelID": "b28a83c4-f93f-4e38-a9bf-527b16e70b12", "Name": "sample string 2", "Code": "sample string 3", "Description": "sample string 4", "TariffGroup": { "TariffGroupID": "95cdd80a-1ef0-4907-90bc-aabd25c9b37f", "Name": "sample string 2", "IsOnFreeSale": true }, "VehicleClassification": { "VehicleClassificationID": "a16333f3-7b53-4f4d-b401-b5ed1333dc15", "Name": "sample string 2", "Description": "sample string 3", "SequenceNo": 4, "Attachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Icon": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "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": "fad525eb-d1f8-489c-8342-9ae2c803ced0", "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": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "BackImageAttachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "LeftImageAttachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "RightImageAttachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" } }, "SuggestedUpgradeModelIDs": [ "99d3b532-4520-42b7-ba69-3e709353a099", "208093fa-a4fa-4786-a7fd-69589cab3093" ], "FavouriteNote": "sample string 26", "IsRestrictBooking": true, "PaymentMode": 0, "ModelYear": "sample string 28" }, "KeyInfo": "sample string 14", "RegistrationStartOn": "2023-12-08T20:20:08.5999677+04:00", "RegistartionRenewalOn": "2023-12-08T20:20:08.5999677+04:00", "VehicleTollTrafficDetail": { "TollFile": { "TollFileID": "9261bf5e-6c0d-40a7-84a9-e342bf3433e3", "TollFileNo": "sample string 2" }, "TrafficFile": { "TrafficFileID": "37e30769-719e-4b80-8366-72804c0d638a", "TrafficFileNo": "sample string 2" }, "TollRegisterDate": "2023-12-08T20:20:08.5999677+04:00", "TollExpiredDate": "2023-12-08T20:20:08.5999677+04:00", "TrafficRegisterDate": "2023-12-08T20:20:08.5999677+04:00", "TrafficExpiredDate": "2023-12-08T20:20:08.5999677+04:00", "TollAttachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "TrafficAttachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "TollTagID": "sample string 1" }, "VehicleAssignment": 0, "OwnerBranch": { "Identity": { "Id": "481ed03a-3a71-4115-9570-028e311b2868", "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": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Longitude": 11.1, "Latitude": 12.1, "BranchType": { "BranchTypeID": "246be487-3eac-48f8-b7a5-36d12cd6fa0e", "Name": "sample string 2", "Attachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "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": "481ed03a-3a71-4115-9570-028e311b2868", "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": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "ImageString": "sample string 6", "AttachmentDataBase64": "sample string 7" }, "Longitude": 11.1, "Latitude": 12.1, "BranchType": { "BranchTypeID": "246be487-3eac-48f8-b7a5-36d12cd6fa0e", "Name": "sample string 2", "Attachment": { "AttachmentID": "ecce0204-6968-4dc8-b34b-78fb5d0a5700", "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": "9448d55a-236b-4cd4-b53d-56d9e71902a0", "TransactionType": 0, "FinanceTranType": 1, "VehicleNo": "sample string 2", "VehicleModelName": "sample string 3", "DriverName": "sample string 4", "TrasactionDate": "2023-12-08T20:20:08.5999677+04:00", "TrasactionEndDate": "2023-12-08T20:20:08.5999677+04:00", "TransactionNo": "sample string 6", "LastTransactionOn": "2023-12-08T20:20:08.5999677+04:00", "InvoiceCycle": 1, "AgreementStatus": 0, "LastInvoiceFrom": "2023-12-08T20:20:08.5999677+04:00", "LastInvoiceTo": "2023-12-08T20:20:08.5999677+04:00", "Note": "sample string 10" }, "LastTransactionDetail": { "TransactionID": "9448d55a-236b-4cd4-b53d-56d9e71902a0", "TransactionType": 0, "FinanceTranType": 1, "VehicleNo": "sample string 2", "VehicleModelName": "sample string 3", "DriverName": "sample string 4", "TrasactionDate": "2023-12-08T20:20:08.5999677+04:00", "TrasactionEndDate": "2023-12-08T20:20:08.5999677+04:00", "TransactionNo": "sample string 6", "LastTransactionOn": "2023-12-08T20:20:08.5999677+04:00", "InvoiceCycle": 1, "AgreementStatus": 0, "LastInvoiceFrom": "2023-12-08T20:20:08.5999677+04:00", "LastInvoiceTo": "2023-12-08T20:20:08.5999677+04:00", "Note": "sample string 10" }, "ExpectedVehicleCheckInOn": "2023-12-08T20:20:08.5999677+04:00", "OwnershipEndOn": "2023-12-08T20:20:08.5999677+04:00", "OwnershipStartOn": "2023-12-08T20:20:08.5999677+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": "3118b1dc-ab4a-4317-93fa-7c55a3b420a4", "Code": "sample string 9" }, "Description": "sample string 18", "OwnershipType": 0, "InsurenceEndOn": "2023-12-08T20:20:08.5999677+04:00", "LicenseExpiryDate": "2023-12-08T20:20:08.5999677+04:00", "DepreciationDetail": { "PurchasePrice": 1.1, "LastDepreciationOn": "2023-12-08T20:20:08.5999677+04:00", "NextDepreciationDueOn": "2023-12-08T20:20:08.5999677+04:00", "BookValue": 4.1 }, "NRRReasonID": "7fb6d5aa-56a8-41a1-a48e-da67231802b3", "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": "9aff8020-3a5b-4089-b1df-d5569c64dad8", "ParkingLotName": "sample string 31", "Tags": [ "sample string 1", "sample string 2" ], "CreatedBy": "33afc268-b999-4c50-9888-21b5e55b568a", "CreatedOn": "2023-12-08T20:20:08.5999677+04:00", "ModifiedBy": "81999196-8241-42f1-b850-6e09c316477a", "ModifiedOn": "2023-12-08T20:20:08.5999677+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": "a09262be-71e0-4cfb-bc1b-7d8f1a59210a", "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>a09262be-71e0-4cfb-bc1b-7d8f1a59210a</ID> <IsValid>true</IsValid> <Message>sample string 2</Message> </Result>