POST api/savetrans
Request Information
URI Parameters
None.
Body Parameters
TransactionName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Driver | Driver |
None. |
|
DriverId | integer |
None. |
|
Car | Car |
None. |
|
CarId | integer |
None. |
|
Store | Store |
None. |
|
StoreId | integer |
None. |
|
TotalAmount | decimal number |
None. |
|
TotalLitres | decimal number |
None. |
|
TotalAdBlueLitres | decimal number |
None. |
|
Date | date |
None. |
|
DateServer | date |
None. |
|
IsManualTransaction | boolean |
None. |
|
Note | string |
None. |
|
Kilometers | decimal number |
None. |
|
KontoId | integer |
None. |
|
OfficeId | integer |
None. |
|
Valideted | boolean |
None. |
|
ValidationUser | string |
None. |
|
ValidationDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Driver": { "Id": 1, "EmployeId": 2, "Name": "sample string 3", "Surname": "sample string 4", "Email": "sample string 5" }, "DriverId": 2, "Car": { "Id": 1, "Plates": "sample string 2", "Brand": "sample string 3", "Model": "sample string 4", "FuelType": { "Id": 1, "Name": "sample string 2" }, "FuelTypeId": 5, "Kilometers": 6.1, "Year": 7, "HasAdBlue": true, "ChassisNumber": "sample string 9", "KontoId": 10, "OfficeId": 11 }, "CarId": 3, "Store": { "Id": 1, "Partner": { "Id": 1, "Naziv": "sample string 2", "Adresa": "sample string 3", "City": "sample string 4", "PostalNumber": "sample string 5" }, "PartnerId": 2, "Name": "sample string 3", "Adress": "sample string 4", "City": "sample string 5", "PostalNumber": "sample string 6", "Longitude": "sample string 7", "Latitude": "sample string 8", "DistanceString": "sample string 9", "Distance": 10.1 }, "StoreId": 4, "TotalAmount": 5.1, "TotalLitres": 6.1, "TotalAdBlueLitres": 7.1, "Date": "2025-01-22T20:49:21.4205213+01:00", "DateServer": "2025-01-22T20:49:21.4205213+01:00", "IsManualTransaction": true, "Note": "sample string 11", "Kilometers": 12.1, "KontoId": 13, "OfficeId": 14, "Valideted": true, "ValidationUser": "sample string 16", "ValidationDate": "2025-01-22T20:49:21.4205213+01:00" }
application/xml, text/xml
Sample:
<Transaction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GasTrackerAPI.Models"> <Car> <Brand>sample string 3</Brand> <ChassisNumber>sample string 9</ChassisNumber> <FuelType> <Id>1</Id> <Name>sample string 2</Name> </FuelType> <FuelTypeId>5</FuelTypeId> <HasAdBlue>true</HasAdBlue> <Id>1</Id> <Kilometers>6.1</Kilometers> <KontoId>10</KontoId> <Model>sample string 4</Model> <OfficeId>11</OfficeId> <Plates>sample string 2</Plates> <Year>7</Year> </Car> <CarId>3</CarId> <Date>2025-01-22T20:49:21.4205213+01:00</Date> <DateServer>2025-01-22T20:49:21.4205213+01:00</DateServer> <Driver> <Email>sample string 5</Email> <EmployeId>2</EmployeId> <Id>1</Id> <Name>sample string 3</Name> <Surname>sample string 4</Surname> </Driver> <DriverId>2</DriverId> <Id>1</Id> <IsManualTransaction>true</IsManualTransaction> <Kilometers>12.1</Kilometers> <KontoId>13</KontoId> <Note>sample string 11</Note> <OfficeId>14</OfficeId> <Store> <Adress>sample string 4</Adress> <City>sample string 5</City> <Distance>10.1</Distance> <DistanceString>sample string 9</DistanceString> <Id>1</Id> <Latitude>sample string 8</Latitude> <Longitude>sample string 7</Longitude> <Name>sample string 3</Name> <Partner> <Adresa>sample string 3</Adresa> <City>sample string 4</City> <Id>1</Id> <Naziv>sample string 2</Naziv> <PostalNumber>sample string 5</PostalNumber> </Partner> <PartnerId>2</PartnerId> <PostalNumber>sample string 6</PostalNumber> </Store> <StoreId>4</StoreId> <TotalAdBlueLitres>7.1</TotalAdBlueLitres> <TotalAmount>5.1</TotalAmount> <TotalLitres>6.1</TotalLitres> <ValidationDate>2025-01-22T20:49:21.4205213+01:00</ValidationDate> <ValidationUser>sample string 16</ValidationUser> <Valideted>true</Valideted> </Transaction>
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.