View the fuel purchases by an ID
get/v1/fuel_purchases/{id}
Request
- Base URLhttps://api.gomotive.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Specify the ID of the fuel purchase transaction to view its details.
Response
200
Example response
{
"fuel_purchase": {
"id": 684,
"offline_id": "0053ddeb-2869-4918-8c2d-db7b8d3521f7",
"purchased_at": "2018-06-13T18:43:00Z",
"jurisdiction": "AL",
"fuel_type": "diesel",
"total_cost": 321,
"currency": "USD",
"fuel": 12,
"fuel_unit": "gal",
"odometer_unit": "mi",
"uploader": {
"id": 8011,
"first_name": "Uploader",
"last_name": "Test",
"email": "uploader@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"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.