{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/fuel/entries/","auth":"required","results":{"codes":[{"status":200,"language":"json","code":"[\n    {\n        \"generatedAtInMillis\": 1539106047558,\n        \"data\": \"SUCCESS\",\n        \"error\": null\n    }\n]","name":""}]},"settings":"559288b86bf22f170075b794","params":[{"name":"vendorId","type":"int","default":"","desc":"This is the ID obtained from Azuga after registering the fuel card. Please reach out to products:::at:::azuga.com to request for a registration","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d2f"},{"name":"transactionNo","type":"string","default":"","desc":"This is the unique key identifying the specific fuel transaction","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d2e"},{"name":"transactionDate","type":"string","default":"","desc":"The date of the transaction in UTC timestamp either in milliseconds or in the format as YYYY-mm-dd HH:mm:ss","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d2d"},{"name":"unitPrice","type":"double","default":"","desc":"The price per unit of the fuel/item purchased","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d2c"},{"name":"priceUnit","type":"string","default":"","desc":"This indicates the currency. Accepts from an enumerated list of items: USD, CAD, MXN, EUR, GBP","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d2b"},{"name":"fuelFilled","type":"double","default":"","desc":"This is the quantity of fuel purchased","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d2a"},{"name":"amount","type":"double","default":"","desc":"The total amount of the transaction being posted","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d29"},{"name":"fuelType","type":"string","default":"","desc":"The type of fuel purchased in the transaction","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d28"},{"name":"fuelUnit","type":"string","default":"gallons","desc":"The unit of measure for the quantity of fuel purchased","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d27"},{"name":"stationAddress","type":"array_object","default":"","desc":"This is an address object specifying address details of the station/location where the fuel was purchased","required":true,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d26"},{"name":"vin","type":"string","default":"","desc":"This is the VIN number of the vehicle for which the fuel was purchased. It is a mandatory field if VIN is being used as a lookup for vehicles in Azuga","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d25"},{"name":"vehicleAlias","type":"string","default":"","desc":"The vehicle alias as it exists in the fuel transaction records. It is mandatory field if this is being used as a lookup for vehicles in Azuga","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d24"},{"name":"odometerReading","type":"double","default":"","desc":"The odometer reading on the vehicle at the time of the purchase.","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d23"},{"name":"userName","type":"string","default":"","desc":"The name of the driver/user associated with this transaction","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d22"},{"name":"accountNumber","type":"string","default":"","desc":"The account number associated with the fleet","required":false,"in":"body","ref":"","_id":"5bbce53b60b3190003c83d21"}],"examples":{"codes":[{"language":"curl","code":"curl -X POST \\\n  https://api.azuga.com/azuga-ws/v3/fuel/entries \\\n  -H 'Application-Key: 1' \\\n  -H 'Authorization: Basic YzY2NDMyMzAtMjYzNy0xMWU2LTk2ZWUtMjIwMDBhYzUwMWVl' \\\n  -H 'Cache-Control: no-cache' \\\n  -H 'Content-Type: application/json' \\\n  -d '[\n\t{\n\t\t\"vendorId\": 2,\n\t\t\"transactionNo\":\"055796\",\n\t\t\"transactionDate\":\"2018-03-10 23:12:24\",\n\t\t\"unitPrice\": 2.23,\n\t\t\"fuelFilled\": 10.44,\n\t\t\"amount\": 23.28,\n\t\t\"fuelUnit\": \"gallons\",\n\t\t\"priceUnit\":\"USD\",\n\t\t \"stationAddress\": {\n\t\t \t\"stationName\":\"SHELL\", \n\t\t \t\"streetAdress\":\"600 SOUTH JACKSON\",\n\t\t \t\"city\":\"TULLAHOMA\",\n\t\t \t\"state\":\"TN\",\n\t\t \t\"zip\":\"37388\",\n\t\t \t\"country\":\"USA\"\n\t\t },\n  \"vin\":\"1MLA15M19J1967923\",\n  \"userName\":\"Iron Man\",\n  \"odometerReading\": \"6360\"\n}]'"}]},"method":"post"},"next":{"description":"","pages":[]},"title":"Fuel Transaction","type":"endpoint","slug":"fuel-transaction","excerpt":"This API is used to import fuel transactions into Azuga that helps in reporting fuel exceptions and also calculate costs and savings across your fleet.","body":"","updates":[],"order":0,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5bbcd53703b4100003ebf10e","project":"55926c913735880d005f7c65","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["559286c7c39c4b2d00127a72","55928a98c39c4b2d00127a83","5592bd7b9a68220d00f1c3db","5593dcaf0e82e81700334e25","5594342f0c33bd0d000595a3","563081713998420d00a509e4","5630941c7581b80d00c51c86","56309f4ff1c0580d00fac666","567923b8239fac0d00c7df25","573306dea6a9c40e00e13875","577a288fd051530e00f65563","579af3982b865e17005a4357","57ee06aa1e42900e0014a374","5951f49a63f39000159e7ef1","5951f4c563f39000159e7ef2","598951542a9dfc000fcacd40","5b3375cc98cb500003e4b363","5bbcd4e29667280003084100"],"_id":"559286c6c39c4b2d00127a71","createdAt":"2015-06-30T12:08:38.768Z","project":"55926c913735880d005f7c65","releaseDate":"2015-06-30T12:08:38.768Z","__v":18,"forked_from":"559286b6c39c4b2d00127a6e"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Fuel","slug":"fuel-transactions","order":9999,"from_sync":false,"reference":false,"_id":"5bbcd4e29667280003084100","project":"55926c913735880d005f7c65","version":"559286c6c39c4b2d00127a71","createdAt":"2018-10-09T16:18:42.079Z","__v":0},"user":"55926c39cf9cdb2100b57022","createdAt":"2018-10-09T16:20:07.794Z","__v":1,"parentDoc":null}

postFuel Transaction

This API is used to import fuel transactions into Azuga that helps in reporting fuel exceptions and also calculate costs and savings across your fleet.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

vendorId:
required
integer
This is the ID obtained from Azuga after registering the fuel card. Please reach out to [email protected] to request for a registration
transactionNo:
required
string
This is the unique key identifying the specific fuel transaction
transactionDate:
required
string
The date of the transaction in UTC timestamp either in milliseconds or in the format as YYYY-mm-dd HH:mm:ss
unitPrice:
required
double
The price per unit of the fuel/item purchased
priceUnit:
required
string
This indicates the currency. Accepts from an enumerated list of items: USD, CAD, MXN, EUR, GBP
fuelFilled:
required
double
This is the quantity of fuel purchased
amount:
double
The total amount of the transaction being posted
fuelType:
string
The type of fuel purchased in the transaction
fuelUnit:
required
stringgallons
The unit of measure for the quantity of fuel purchased
stationAddress:
required
array of objects
This is an address object specifying address details of the station/location where the fuel was purchased
vin:
string
This is the VIN number of the vehicle for which the fuel was purchased. It is a mandatory field if VIN is being used as a lookup for vehicles in Azuga
vehicleAlias:
string
The vehicle alias as it exists in the fuel transaction records. It is mandatory field if this is being used as a lookup for vehicles in Azuga
odometerReading:
double
The odometer reading on the vehicle at the time of the purchase.
userName:
string
The name of the driver/user associated with this transaction
accountNumber:
string
The account number associated with the fleet

Examples


Result Format


User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}