83_update

Update or Create a Vehicle

Parameters

id (optional)

ID for the Vehicle. This is a 32-character string. If not provided, the call is treated as a Create request.

cost_per_distance

Float. How much per distance (mile/km) it costs your business to run this vehicle. It doesn't matter whether it's miles or kilometers as long as you are consistent.

price_per_distance

Float. How much you charge your customers for distance traveled.

description

String. A description of the vehicle.

reg

String. Registration number of the vehicle.

Example

FM_api(
	 'Vehicle_update', [
		 'cost_per_distance'  => '0.36',
		 'price_per_distance' => '0.50',
		 'description'        => 'red car with four wheels',
		 'reg'                => 'ABC 123',
	 ]
);

Result

{"ok":1,"id":"bb2694caba9477701f1e2c311a52032b"}

Last updated