POST api/VehicleBatteryApi
Request Information
URI Parameters
None.
Body Parameters
VehicleBatteryViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BatteryId | integer |
None. |
|
| VehicleId | integer |
None. |
|
| VehicleNumber | string |
None. |
|
| EditLogNote | string |
None. |
|
| Quantity | integer |
Required |
|
| BatteryNumber | string |
None. |
|
| PurchaseDate | date |
Required |
|
| WarentyExpairyDate | date |
Required |
|
| AlertBeforeDays | integer |
Required |
|
| BillDate | date |
None. |
|
| Type | string |
None. |
|
| Note | string |
None. |
|
| AmpAH | integer |
Required |
|
| ShopName | string |
None. |
|
| ContactNumber | string |
None. |
|
| Address | string |
None. |
|
| PayType | string |
None. |
|
| BillNumber | string |
None. |
|
| Price | decimal number |
None. |
|
| Tax1 | decimal number |
None. |
|
| Tax2 | decimal number |
None. |
|
| Tax3 | decimal number |
None. |
|
| TotalAmount | decimal number |
Required |
|
| 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:
{
"BatteryId": 1,
"VehicleId": 2,
"VehicleNumber": "sample string 3",
"EditLogNote": "sample string 4",
"Quantity": 5,
"BatteryNumber": "sample string 6",
"PurchaseDate": "2026-07-18T00:59:49.2505493+05:30",
"WarentyExpairyDate": "2026-07-18T00:59:49.2505493+05:30",
"AlertBeforeDays": 9,
"BillDate": "2026-07-18T00:59:49.2505493+05:30",
"Type": "sample string 11",
"Note": "sample string 12",
"AmpAH": 13,
"ShopName": "sample string 14",
"ContactNumber": "sample string 15",
"Address": "sample string 16",
"PayType": "sample string 17",
"BillNumber": "sample string 18",
"Price": 19.0,
"Tax1": 20.0,
"Tax2": 21.0,
"Tax3": 22.0,
"TotalAmount": 23.0,
"CreatedBy": "sample string 24",
"CreatedDate": "2026-07-18T00:59:49.2505493+05:30",
"UpdatedBy": "sample string 26",
"UpdatedDate": "2026-07-18T00:59:49.2505493+05:30",
"SaaSid": "sample string 28",
"Status": 29
}
application/xml, text/xml
Sample:
<VehicleBatteryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSPRO.BusinessModel"> <Address>sample string 16</Address> <AlertBeforeDays>9</AlertBeforeDays> <AmpAH>13</AmpAH> <BatteryId>1</BatteryId> <BatteryNumber>sample string 6</BatteryNumber> <BillDate>2026-07-18T00:59:49.2505493+05:30</BillDate> <BillNumber>sample string 18</BillNumber> <ContactNumber>sample string 15</ContactNumber> <CreatedBy>sample string 24</CreatedBy> <CreatedDate>2026-07-18T00:59:49.2505493+05:30</CreatedDate> <EditLogNote>sample string 4</EditLogNote> <Note>sample string 12</Note> <PayType>sample string 17</PayType> <Price>19</Price> <PurchaseDate>2026-07-18T00:59:49.2505493+05:30</PurchaseDate> <Quantity>5</Quantity> <SaaSid>sample string 28</SaaSid> <ShopName>sample string 14</ShopName> <Status>29</Status> <Tax1>20</Tax1> <Tax2>21</Tax2> <Tax3>22</Tax3> <TotalAmount>23</TotalAmount> <Type>sample string 11</Type> <UpdatedBy>sample string 26</UpdatedBy> <UpdatedDate>2026-07-18T00:59:49.2505493+05:30</UpdatedDate> <VehicleId>2</VehicleId> <VehicleNumber>sample string 3</VehicleNumber> <WarentyExpairyDate>2026-07-18T00:59:49.2505493+05:30</WarentyExpairyDate> </VehicleBatteryViewModel>
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>