{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-trip-fuel-purchase-schema.json",
  "title": "tripFuelPurchase",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-truckmate-finance-openapi.yml#/components/schemas/tripFuelPurchase",
  "type": "object",
  "properties": {
    "fuelTaxId": {
      "type": "integer"
    },
    "tripFuelPurchaseId": {
      "type": "integer"
    },
    "purchaseSequence": {
      "type": [
        "integer",
        "null"
      ]
    },
    "purchaseLocation": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 30
    },
    "purchaseJurisdiction": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 4
    },
    "purchaseDate": {
      "type": [
        "string",
        "null"
      ],
      "oneOf": [
        {
          "enum": [
            ""
          ]
        },
        {
          "pattern": "^\\d{4}-(1[0-2]|0[1-9])-(3[01]|0[1-9]|[12]\\d)((T| )([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d))?$"
        }
      ]
    },
    "volume": {
      "type": [
        "number",
        "null"
      ]
    },
    "unit": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "GAL",
        "LTR",
        ""
      ]
    },
    "currencyCode": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 3
    },
    "cost": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuelCardVendor": {
      "type": [
        "integer",
        "null"
      ]
    },
    "fuelCardNumber": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20
    },
    "fuelInvoiceNumber": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 20
    },
    "fuelStationVendor": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "fuelStationId": {
      "type": "string",
      "maxLength": 20
    },
    "fuelStationName": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "fuelStationCity": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 30
    },
    "fuelStationPostalCode": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "fuelType1": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "fuelVolume1": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuelRate1": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuelCost1": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuelType2": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "fuelVolume2": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuelRate2": {
      "type": [
        "number",
        "null"
      ]
    },
    "fuelCost2": {
      "type": [
        "number",
        "null"
      ]
    },
    "reeferFuelVolume": {
      "type": [
        "number",
        "null"
      ]
    },
    "reeferFuelRate": {
      "type": [
        "number",
        "null"
      ]
    },
    "reeferFuelCost": {
      "type": [
        "number",
        "null"
      ]
    },
    "driverId1": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "driverId2": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 10
    },
    "odometer": {
      "type": [
        "number",
        "null"
      ]
    },
    "purchaseType": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "bulk",
        "keyLock",
        "station",
        ""
      ]
    },
    "taxable": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "taxPaid": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "receipt": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "False",
        "True",
        ""
      ]
    },
    "user1": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user2": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    },
    "user3": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 40
    }
  }
}