v1
latestOpenAPI 3.1.02026-07-2617501.1 MBUpdate a fuel purchase
put/v1/fuel_purchases/{id}
Path parameters
idinteger required
Specify the ID of the fuel purchase transaction which needs to be updated.
Query parameters
sourcestring
This is the payment source of the current fuel purchase. Allowed values are as follows: <b>EFS_INTEGRATION</b>, <b>COMDATA_INTEGRATION</b>, <b>WEX_INTEGRATION</b>, <b>Manual</b>, <b>Motive Card</b>, <b>GIR (GIR W150 Fuel Management System)</b>.
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"
}
}
}