POST api/VehicleServiceApi
Request Information
URI Parameters
None.
Body Parameters
VehicleServiceViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| VehicleServiceId | integer |
None. |
|
| VehicleId | integer |
None. |
|
| VehicleNumber | string |
None. |
|
| EditLogNote | string |
None. |
|
| VehicleName | string |
None. |
|
| ServiceTypeId | integer |
None. |
|
| ServiceType | string |
None. |
|
| ValidFromDate | date |
Required |
|
| ValidToDate | date |
Required |
|
| BillDate | date |
None. |
|
| AlertBeforeDays | integer |
Required |
|
| ServiceOdometer | integer |
None. |
|
| ServicedBy | string |
None. |
|
| ContactNumber | string |
None. |
|
| Address | string |
None. |
|
| PaymentMode | string |
None. |
|
| TotalAmount | decimal number |
Required |
|
| BillNumber | string |
None. |
|
| Notes | string |
None. |
|
| ColorCode | string |
None. |
|
| CreatedBy | string |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | string |
None. |
|
| UpdatedDate | date |
None. |
|
| SaaSid | string |
None. |
|
| Status | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"VehicleServiceId": 1,
"VehicleId": 2,
"VehicleNumber": "sample string 3",
"EditLogNote": "sample string 4",
"VehicleName": "sample string 5",
"ServiceTypeId": 6,
"ServiceType": "sample string 7",
"ValidFromDate": "2026-07-18T00:59:21.9659639+05:30",
"ValidToDate": "2026-07-18T00:59:21.9659639+05:30",
"BillDate": "2026-07-18T00:59:21.9659639+05:30",
"AlertBeforeDays": 11,
"ServiceOdometer": 12,
"ServicedBy": "sample string 13",
"ContactNumber": "sample string 14",
"Address": "sample string 15",
"PaymentMode": "sample string 16",
"TotalAmount": 17.0,
"BillNumber": "sample string 18",
"Notes": "sample string 19",
"ColorCode": "sample string 20",
"CreatedBy": "sample string 21",
"CreatedDate": "2026-07-18T00:59:21.9659639+05:30",
"UpdatedBy": "sample string 23",
"UpdatedDate": "2026-07-18T00:59:21.9659639+05:30",
"SaaSid": "sample string 25",
"Status": 26
}
application/xml, text/xml
Sample:
<VehicleServiceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSPRO.BusinessModel"> <Address>sample string 15</Address> <AlertBeforeDays>11</AlertBeforeDays> <BillDate>2026-07-18T00:59:21.9659639+05:30</BillDate> <BillNumber>sample string 18</BillNumber> <ColorCode>sample string 20</ColorCode> <ContactNumber>sample string 14</ContactNumber> <CreatedBy>sample string 21</CreatedBy> <CreatedDate>2026-07-18T00:59:21.9659639+05:30</CreatedDate> <EditLogNote>sample string 4</EditLogNote> <Notes>sample string 19</Notes> <PaymentMode>sample string 16</PaymentMode> <SaaSid>sample string 25</SaaSid> <ServiceOdometer>12</ServiceOdometer> <ServiceType>sample string 7</ServiceType> <ServiceTypeId>6</ServiceTypeId> <ServicedBy>sample string 13</ServicedBy> <Status>26</Status> <TotalAmount>17</TotalAmount> <UpdatedBy>sample string 23</UpdatedBy> <UpdatedDate>2026-07-18T00:59:21.9659639+05:30</UpdatedDate> <ValidFromDate>2026-07-18T00:59:21.9659639+05:30</ValidFromDate> <ValidToDate>2026-07-18T00:59:21.9659639+05:30</ValidToDate> <VehicleId>2</VehicleId> <VehicleName>sample string 5</VehicleName> <VehicleNumber>sample string 3</VehicleNumber> <VehicleServiceId>1</VehicleServiceId> </VehicleServiceViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>