# FleetData

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

The fleet detail a fuel or fleet-card sale carries: who drove, which vehicle, and what was bought.

## Fields
- `driverId` (string): The driver's identifier, as the fleet customer assigns it. (nullable, max length 30)
- `vehicleId` (string): The vehicle's identifier, as the fleet customer assigns it. (nullable, max length 30)
- `odometer` (integer(int32)): The vehicle's odometer reading. Conditional: When Odometer is not null. Range: 0 to 99999999. (nullable)
- `jobNumber` (string): The job number the sale is charged to. (nullable, max length 30)
- `departmentNumber` (string): The department number the sale is charged to. (nullable, max length 30)
- `employeeNumber` (string): The driver's employee number. Personal data. (nullable, max length 30)
- `licenseNumber` (string): The driver's license number. Personal data. (nullable, max length 30)
- `licenseState` (string): The state or province that issued the driver's license. (nullable, max length 3)
- `vehicleLicensePlate` (string): The vehicle's license plate. (nullable, max length 15)
- `vehicleLicenseState` (string): The state or province that issued the vehicle's license plate. (nullable, max length 3)
- `vehicleIdentificationNumber` (string): The vehicle identification number (VIN). (nullable, max length 17)
- `trailerId` (string): The trailer's identifier. (nullable, max length 30)
- `trailerLicensePlate` (string): The trailer's license plate. (nullable, max length 15)
- `unitId` (string): The unit identifier, for a fleet that tracks units separately from vehicles. (nullable, max length 30)
- `reeferHours` (number(double)): The refrigeration unit's hour meter reading, in hours. Conditional: When ReeferHours is not null. Must be >= 0. (nullable)
- `userId` (string): The fleet user's identifier. Personal data. (nullable, max length 30)
- `customerData` (string): Free-form data the fleet customer asked to have carried. (nullable, max length 50)
- `serviceLevel` ([FleetServiceLevel](https://docs.winkpg.io/docs/api/models/FleetServiceLevel.md)): How the fuel was dispensed. Conditional: When ServiceLevel is not null. (nullable)
  Values:
  - `SelfService`: The driver dispensed the fuel.
  - `FullService`: An attendant dispensed the fuel.
- `fuelAmount` (number(double)): The fuel portion of the sale, in the transaction currency. Conditional: When FuelAmount is not null. Must be >= 0. (nullable)
- `nonFuelAmount` (number(double)): The non-fuel portion of the sale, in the transaction currency. Conditional: When NonFuelAmount is not null. Must be >= 0. (nullable)
- `prompts` (array<[FleetPrompt](https://docs.winkpg.io/docs/api/models/FleetPrompt.md)>): Answers to brand-specific prompts the common members do not cover. At most `MaxPrompts` entries. Conditional: When Prompts is not null. (nullable)
  Fields of each item:
  - `name` (string) required: The prompt's name, as the card brand defines it. (nullable, max length 30)
  - `value` (string) required: The value the driver or the terminal supplied for the prompt. (nullable, max length 40)
- `products` (array<[FleetProduct](https://docs.winkpg.io/docs/api/models/FleetProduct.md)>): The products on the sale. At most `MaxProducts` entries. Conditional: When Products is not null. (nullable)
  Fields of each item:
  - `productCode` (string) required: The three-digit NACS product code, for example `019` for diesel. (nullable, min length 3, max length 3)
  - `description` (string): A short description of the product. (nullable, max length 25)
  - `quantity` (number(double)): The quantity sold, in `unitOfMeasure`. Conditional: When Quantity is not null. Must be > 0. (nullable)
  - `unitOfMeasure` ([FleetUnitOfMeasure](https://docs.winkpg.io/docs/api/models/FleetUnitOfMeasure.md)): The unit `quantity` is stated in. Conditional: When UnitOfMeasure is not null. (nullable)
    Values:
    - `Gallons`: US gallons.
    - `Liters`: Liters.
    - `Quarts`: US quarts.
    - `Pounds`: Pounds.
    - `Kilograms`: Kilograms.
    - `Units`: Individual units.
    - `Hours`: Hours.
    - `Miles`: Miles.
    - `Kilometers`: Kilometers.
  - `unitPrice` (number(double)): The price of one unit, in the transaction currency. Conditional: When UnitPrice is not null. Must be >= 0. (nullable)
  - `amount` (number(double)): The total for this product, in the transaction currency. Conditional: When Amount is not null. Must be >= 0. (nullable)

## See also

- [All documentation](https://docs.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
