v1
latestOpenAPI 3.1.02026-07-2617501.1 MBCreate a new fuel purchase transaction
post/v1/fuel_purchases
Query parameters
sourcestring
This is the payment source of the current fuel purchase. Allowed values are as follows: <ul><li>EFS_INTEGRATION</li><li>COMDATA_INTEGRATION</li><li>WEX_INTEGRATION</li><li>Manual</li><li>Motive Card</li><li>GIR (GIR W150 Fuel Management System)</li><li>fluidsecure-integration</li><li>fleetcor-integration</li></ul>
Request body
Response
200
Example response
{
"fuel_purchase": {
"id": 699,
"offline_id": "c4ef3132-3a75-43c7-acc7-9b4aa8c866c9",
"purchased_at": "2018-06-13T18:43:00Z",
"jurisdiction": "AL",
"fuel_type": "diesel",
"total_cost": 150,
"currency": "USD",
"fuel": 12,
"fuel_unit": "gal",
"odometer_unit": "mi",
"location": "location",
"uploader": {
"id": 8451,
"first_name": "George",
"last_name": "Henry",
"email": "george.henry+bn@keeptruckin.com",
"role": "dispatcher"
},
"vehicle": {
"id": 4116,
"number": "Jason's Vehicle"
},
"driver": {
"id": 2463,
"first_name": "Paul",
"last_name": "Walker",
"username": "paul",
"email": "demo@keeptruckin.com",
"status": "active",
"role": "driver"
}
}
}