POST api/Payments/fuel
Request Information
URI Parameters
None.
Body Parameters
FuelModelName | Description | Type | Additional information |
---|---|---|---|
HHID | string |
None. |
|
Lat | decimal number |
None. |
|
Lng | decimal number |
None. |
|
Battery | integer |
None. |
|
ActionApp | string |
None. |
|
CreateDate | date |
None. |
|
ImageData | string |
None. |
|
ImageName | string |
None. |
|
ImageData2 | string |
None. |
|
ImageName2 | string |
None. |
|
Liter | decimal number |
None. |
|
Price | decimal number |
None. |
|
Distance | decimal number |
None. |
|
Miles | decimal number |
None. |
|
late_fuel_id | integer |
None. |
|
Jobno | string |
None. |
|
JobTypeFuelID | integer |
None. |
|
VehicleType | string |
None. |
|
FuelLimit | decimal number |
None. |
|
Remark | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "HHID": "sample string 1", "Lat": 2.0, "Lng": 3.0, "Battery": 4, "ActionApp": "sample string 5", "CreateDate": "2025-05-19T19:01:16.9840906+07:00", "ImageData": "sample string 7", "ImageName": "sample string 8", "ImageData2": "sample string 9", "ImageName2": "sample string 10", "Liter": 11.1, "Price": 12.1, "Distance": 1.1, "Miles": 1.1, "late_fuel_id": 13, "Jobno": "sample string 14", "JobTypeFuelID": 1, "VehicleType": "sample string 15", "FuelLimit": 16.1, "Remark": "sample string 17" }
application/xml, text/xml
Sample:
<FuelModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <ActionApp>sample string 5</ActionApp> <Battery>4</Battery> <CreateDate>2025-05-19T19:01:16.9840906+07:00</CreateDate> <Distance>1.1</Distance> <FuelLimit>16.1</FuelLimit> <HHID>sample string 1</HHID> <ImageData>sample string 7</ImageData> <ImageData2>sample string 9</ImageData2> <ImageName>sample string 8</ImageName> <ImageName2>sample string 10</ImageName2> <JobTypeFuelID>1</JobTypeFuelID> <Jobno>sample string 14</Jobno> <Lat>2</Lat> <Liter>11.1</Liter> <Lng>3</Lng> <Miles>1.1</Miles> <Price>12.1</Price> <Remark>sample string 17</Remark> <VehicleType>sample string 15</VehicleType> <late_fuel_id>13</late_fuel_id> </FuelModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultWithModelName | Description | Type | Additional information |
---|---|---|---|
success | boolean |
None. |
|
message | string |
None. |
|
refcode | string |
None. |
|
total | integer |
None. |
|
datas | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "message": "sample string 2", "refcode": "sample string 3", "total": 4, "datas": {} }
application/xml, text/xml
Sample:
<ResultWithModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models"> <datas /> <message>sample string 2</message> <refcode>sample string 3</refcode> <success>true</success> <total>4</total> </ResultWithModel>