Skip to main content
PATCH
Update a fuel entry

Authorizations

Authorization
string
header
required

Authorization: Bearer ulk__. Cree la clave en Configuración → API.

Path Parameters

id
string<uuid>
required

Fuel entry UUID.

Body

application/json
vehicle_external_id
integer | null

Assign or clear the linked vehicle (legacy vehicle_id).

vehicle_number
string
Required string length: 1 - 255
vehicle_name
string | null
Maximum string length: 255
driver_external_id
integer | null
driver_key
string | null
Maximum string length: 255
name
string | null
Maximum string length: 255
product_id
string<uuid> | null
product_name
string
Required string length: 1 - 255
product_type
string
Required string length: 1 - 255
vendor_id
string<uuid> | null
vendor_name
string | null
Maximum string length: 255
vendor_address
string | null
Maximum string length: 500
gallons
number
total_cost
number
Required range: x >= 0
price_per_gallon
number
Required range: x >= 0
odometer_reading
number
Required range: x >= 0
transaction_date
string<date-time> | null
transaction_id
string | null
Maximum string length: 255
notes
string | null
Maximum string length: 2000
source
enum<string> | null

Origin of the entry. manual for UI capture, import for bulk CSV/Excel, API for integrations. Legacy ERM is accepted and stored as manual.

Available options:
API,
manual,
import
Example:

"API"

reference_id
string | null
Maximum string length: 255
trip_external_id
integer | null
matched_message_id
integer | null
gps_odometer_reading
number | null
Required range: x >= 0
karma_driver_id
integer | null

Response

OK

data
object
required