{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fleetwire/json-schema/fleetwire-partner-rental-schema.json",
  "title": "PartnerRental",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/fleetwire-openapi-openapi.json#/components/schemas/PartnerRental",
  "type": "object",
  "required": [
    "rental_id",
    "listing_id",
    "plate",
    "status",
    "timezone",
    "starts_at",
    "ends_at",
    "toll_plan"
  ],
  "properties": {
    "rental_id": {
      "type": "string"
    },
    "listing_id": {
      "type": "string"
    },
    "plate": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "booked",
        "in_progress",
        "completed",
        "canceled"
      ],
      "description": "`canceled` rentals are listed by period so you can reverse a per-rental fee."
    },
    "timezone": {
      "type": "string"
    },
    "starts_at": {
      "type": "string",
      "format": "date-time"
    },
    "ends_at": {
      "type": "string",
      "format": "date-time"
    },
    "toll_plan": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "unlimited",
        "activation_plus_toll",
        "pay_per_use",
        null
      ],
      "description": "How the renter pays for tolls on this rental. `unlimited`: don't add individual tolls. `activation_plus_toll`: send each actual toll. `pay_per_use`: send each toll, with your fee in `provider_fee_cents` if you charge one. `null`: the rental company hasn't set a plan, so hold the toll for review. The rental company sets a default and can change it per rental. Treat a value you don't recognize like `null`."
    },
    "source": {
      "type": [
        "string",
        "null"
      ],
      "description": "Where the rental was booked: `direct` (through Fleetwire), `turo`, `getaround`, `outdoorsy`, `hirecar`, `shair` or `hq_rentals`. Marketplace trips such as Turo are billed through the marketplace, so use it to leave per-rental fees off them. New values may be added later; `null` means unknown."
    }
  }
}