User Manual
Version 7.6
×

Add a fuel card transaction

 
Required parameters:
cmd: add_fuel_transaction
card_num: card number
operation: operation type
unixtimestamp:  transaction time in unixtime
place: place
azs: gas station name
liters: number of liters
fuel: fuel type
price: price without discount
sum: amount without discount
 
Optional parameters:
priceg: discounted price
sumg: discounted amount
driver: driver
lat: latitude
lon: the length
info: additional information
internal_id: internal identification number
 
Example request:
https://<url>/api/api.php?cmd=add_fuel_transaction
 
Method: POST
Answer:
{ "code": 0, "msg": "OK" }