{
  "components": {
    "schemas": {
      "AdminRentalOverdueDispatchContext": {
        "properties": {
          "delivery": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeliveryBase"
              }
            ], 
            "nullable": true
          }, 
          "rental": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AdminRentalOverdueDispatchRentalContext"
              }
            ], 
            "nullable": true
          }, 
          "run": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunResponse"
              }
            ], 
            "nullable": true
          }, 
          "run_stop": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunStopResponse"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "AdminRentalOverdueDispatchRentalContext": {
        "properties": {
          "asset": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchAsset"
              }
            ], 
            "nullable": true
          }, 
          "company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchName"
              }
            ], 
            "nullable": true
          }, 
          "end_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "equipment_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchEquipmentClass"
              }
            ], 
            "nullable": true
          }, 
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverdueLocation"
              }
            ], 
            "nullable": true
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "start_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "AdminRentalOverdueTaskGroupResponse": {
        "properties": {
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "tasks": {
            "items": {
              "$ref": "#/components/schemas/AdminRentalOverdueTaskResponse"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "order_id", 
          "rental_id", 
          "tasks"
        ], 
        "type": "object"
      }, 
      "AdminRentalOverdueTaskProperties": {
        "properties": {
          "delivery_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "dispatch_context": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AdminRentalOverdueDispatchContext"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "AdminRentalOverdueTaskResponse": {
        "properties": {
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "properties": {
            "$ref": "#/components/schemas/AdminRentalOverdueTaskProperties"
          }, 
          "task_type": {
            "type": "string"
          }
        }, 
        "required": [
          "due_date", 
          "task_type"
        ], 
        "type": "object"
      }, 
      "AdminRentalsBatchCancelResponse": {
        "properties": {
          "results": {
            "description": "Per-rental outcome, one entry for every rental in the request.", 
            "items": {
              "$ref": "#/components/schemas/BatchCancelResult"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "results"
        ], 
        "type": "object"
      }, 
      "AdminRentalsReassignRequest": {
        "properties": {
          "new_order_id": {
            "description": "The ID of the order to which rentals will be reassigned.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_ids": {
            "description": "(DEPRECATED) List of rental IDs to be reassigned. Use rentals_to_reassign instead for rate adjustment support.", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "rentals_to_reassign": {
            "description": "List of rentals to reassign with optional rate adjustments. Replaces rental_ids and supports specifying new rates during reassignment.", 
            "items": {
              "$ref": "#/components/schemas/RentalToReassign"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "start_date": {
            "description": "ISO 8601 effective start date for reassignment. If omitted, defaults to now.", 
            "type": "string"
          }
        }, 
        "required": [
          "new_order_id"
        ], 
        "type": "object"
      }, 
      "AdminRentalsReassignResponse": {
        "properties": {
          "reassigned_rentals": {
            "description": "List of rentals that were reassigned with their old and new rental IDs.", 
            "items": {
              "$ref": "#/components/schemas/ReassignedRentalResponse"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "reassigned_rentals"
        ], 
        "type": "object"
      }, 
      "AdminSaleItemDelivery": {
        "properties": {
          "charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "completed_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "contact_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "contact_phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_details": {
            "nullable": true, 
            "type": "object"
          }, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_signature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/_DeliverySignature"
              }
            ], 
            "nullable": true
          }, 
          "delivery_signature_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "delivery_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/_DeliveryStatus"
              }
            ], 
            "nullable": true
          }, 
          "delivery_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "delivery_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/_DeliveryType"
              }
            ], 
            "nullable": true
          }, 
          "delivery_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "note": {
            "nullable": true, 
            "type": "string"
          }, 
          "order": {
            "allOf": [
              {
                "$ref": "#/components/schemas/_Order"
              }
            ], 
            "nullable": true
          }, 
          "order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "part_display": {
            "nullable": true, 
            "type": "string"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "run_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/_SaleItemFulfillment"
            }, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/SaleItemInAdminDelivery"
            }, 
            "type": "array"
          }, 
          "scheduled_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "transport_type": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "AllocationType": {
        "properties": {
          "allocation_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "allocation_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "AncillarySearchResponse": {
        "properties": {
          "page": {
            "format": "int32", 
            "type": "integer"
          }, 
          "per_page": {
            "format": "int32", 
            "type": "integer"
          }, 
          "results": {
            "items": {
              "$ref": "#/components/schemas/AncillarySearchResult"
            }, 
            "type": "array"
          }, 
          "total": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "AncillarySearchResult": {
        "properties": {
          "available_quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "cat_class": {
            "nullable": true, 
            "type": "string"
          }, 
          "cost": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "equipment_class_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "manufacturer_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "msrp": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "part_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "product_class_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "ready_to_rent_count": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rentable": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "result_type": {
            "type": "string"
          }, 
          "score": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "store_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "total": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "ArchiveAssetRequest": {
        "properties": {
          "archived_status": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "archived_status"
        ], 
        "type": "object"
      }, 
      "Asset": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "branch": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Branch1"
              }
            ], 
            "nullable": true
          }, 
          "custom_name": {
            "type": "string"
          }, 
          "equipment_class_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "inventory_status": {
            "type": "string"
          }, 
          "make": {
            "nullable": true, 
            "type": "string"
          }, 
          "model": {
            "nullable": true, 
            "type": "string"
          }, 
          "year": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "Asset1": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "custom_name": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "AssetConditionSnapshot": {
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/Asset"
          }, 
          "asset_condition_snapshot_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "fuel_reading": {
            "format": "float", 
            "type": "number"
          }, 
          "hours_reading": {
            "format": "int32", 
            "type": "integer"
          }, 
          "new_damage_description": {
            "type": "string"
          }, 
          "notes": {
            "type": "string"
          }, 
          "odometer_reading": {
            "format": "int32", 
            "type": "integer"
          }, 
          "photos": {
            "items": {
              "type": "string"
            }, 
            "type": "array"
          }, 
          "reporter": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "date_created", 
          "new_damage_description", 
          "notes"
        ], 
        "type": "object"
      }, 
      "AssetDeviceStatusResponse": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "devices": {
            "items": {
              "$ref": "#/components/schemas/DeviceStatus"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "AssetEnrichmentRequest": {
        "properties": {
          "tracker_ids": {
            "description": "List of tracker IDs to fetch last known location for. Cannot be empty.", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "tracker_ids"
        ], 
        "type": "object"
      }, 
      "AssetEnrichmentResponse": {
        "properties": {
          "locations": {
            "additionalProperties": {
              "$ref": "#/components/schemas/AssetLocation"
            }, 
            "description": "Map of last known location keyed by tracker_id. Every requested tracker_id is present; trackers with no telematics data have null location fields.", 
            "type": "object"
          }
        }, 
        "required": [
          "locations"
        ], 
        "type": "object"
      }, 
      "AssetKeypadHealthResponse": {
        "properties": {
          "asset_id": {
            "description": "The asset ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "keypad_health": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeypadHealthData"
              }
            ], 
            "description": "Keypad health data from Snowflake. Null if no data available.", 
            "nullable": true
          }, 
          "message": {
            "description": "Optional message (e.g., when no keypad health data is available)", 
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "asset_id"
        ], 
        "type": "object"
      }, 
      "AssetLocation": {
        "properties": {
          "asset_id": {
            "description": "The asset ID associated with the tracker.", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "city": {
            "description": "City of the last known location.", 
            "nullable": true, 
            "type": "string"
          }, 
          "last_address": {
            "description": "Full last known address.", 
            "nullable": true, 
            "type": "string"
          }, 
          "last_location": {
            "description": "Last known GPS location.", 
            "nullable": true, 
            "type": "string"
          }, 
          "last_location_timestamp": {
            "description": "Timestamp of the last known location.", 
            "nullable": true, 
            "type": "string"
          }, 
          "state": {
            "description": "State of the last known location.", 
            "nullable": true, 
            "type": "string"
          }, 
          "street": {
            "description": "Street of the last known location.", 
            "nullable": true, 
            "type": "string"
          }, 
          "tracker_id": {
            "description": "The tracker ID.", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "zip_code": {
            "description": "ZIP code of the last known location.", 
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "AssetResourceMappingsBatch": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AssetResourceMappingsItem"
            }, 
            "minItems": 1, 
            "type": "array"
          }
        }, 
        "required": [
          "items"
        ], 
        "type": "object"
      }, 
      "AssetResourceMappingsBatchResponse": {
        "properties": {
          "applied": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "not_found": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "skipped_stale": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "AssetResourceMappingsItem": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "resource_mappings": {
            "$ref": "#/components/schemas/ResourceMappings"
          }
        }, 
        "required": [
          "asset_id", 
          "resource_mappings"
        ], 
        "type": "object"
      }, 
      "AssignInventoryBranchRequest": {
        "properties": {
          "branchId": {
            "format": "int32", 
            "type": "integer"
          }, 
          "companyId": {
            "format": "int32", 
            "type": "integer"
          }, 
          "skipResourceSync": {
            "type": "boolean"
          }, 
          "userId": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "branchId", 
          "companyId", 
          "userId"
        ], 
        "type": "object"
      }, 
      "AssignInventoryBranchResponse": {
        "properties": {
          "changed": {
            "type": "boolean"
          }, 
          "id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "inventory_branch_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "BackfillDeviceMappingsRequest": {
        "properties": {
          "asset_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "dry_run": {
            "type": "boolean"
          }, 
          "force": {
            "type": "boolean"
          }
        }, 
        "required": [
          "asset_ids"
        ], 
        "type": "object"
      }, 
      "BackfillDeviceMappingsResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/BackfillResult"
            }, 
            "type": "array"
          }, 
          "summary": {
            "$ref": "#/components/schemas/BackfillSummary"
          }
        }, 
        "type": "object"
      }, 
      "BackfillResult": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "devices_count": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "dry_run": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "reason": {
            "nullable": true, 
            "type": "string"
          }, 
          "status": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "BackfillSummary": {
        "properties": {
          "error": {
            "format": "int32", 
            "type": "integer"
          }, 
          "populated": {
            "format": "int32", 
            "type": "integer"
          }, 
          "skipped": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "BatchCancel": {
        "properties": {
          "cancel_reason_note": {
            "type": "string"
          }, 
          "cancel_reason_type": {
            "type": "string"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "rental_id"
        ], 
        "type": "object"
      }, 
      "BatchCancelResult": {
        "properties": {
          "message": {
            "description": "Reason a rental was failed or skipped.", 
            "nullable": true, 
            "type": "string"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "status": {
            "description": "One of \"cancelled\", \"failed\", or \"skipped\".", 
            "type": "string"
          }
        }, 
        "required": [
          "rental_id", 
          "status"
        ], 
        "type": "object"
      }, 
      "BatchOffRent": {
        "properties": {
          "end_date": {
            "format": "int32", 
            "type": "integer"
          }, 
          "off_rent_date_requested": {
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "schedule_off_rent": {
            "type": "boolean"
          }
        }, 
        "required": [
          "rental_id"
        ], 
        "type": "object"
      }, 
      "BatteryTelemetry": {
        "properties": {
          "battery_potential_power_input_1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "charge_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "key_switch_battery_potential": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "BillingProvider": {
        "properties": {
          "billing_provider_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "remit_location": {
            "$ref": "#/components/schemas/Location"
          }
        }, 
        "required": [
          "billing_provider_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "BillingStatusUpdateRentalRequest": {
        "properties": {
          "rental_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "rental_status_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }
        }, 
        "required": [
          "rental_id", 
          "rental_status_id"
        ], 
        "type": "object"
      }, 
      "BillingStatusUpdateRequest": {
        "properties": {
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/BillingStatusUpdateRentalRequest"
            }, 
            "type": "array"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/BillingStatusUpdateSaleItemFulfillmentRequest"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "BillingStatusUpdateSaleItemFulfillmentRequest": {
        "properties": {
          "quantity": {
            "format": "float", 
            "minimum": 0, 
            "nullable": true, 
            "type": "number"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }
        }, 
        "required": [
          "sale_item_fulfillment_id", 
          "sale_items_status_id"
        ], 
        "type": "object"
      }, 
      "Branch": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "branch_id"
        ], 
        "type": "object"
      }, 
      "Branch1": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "branch_id", 
          "company"
        ], 
        "type": "object"
      }, 
      "BulkCreateAssetRequest": {
        "properties": {
          "assets": {
            "items": {
              "$ref": "#/components/schemas/CreateAssetRequest"
            }, 
            "minItems": 1, 
            "type": "array"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "assets", 
          "company_id", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "BulkUpdateRequestAssets": {
        "properties": {
          "asset_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "maxItems": 5000, 
            "minItems": 1, 
            "type": "array"
          }, 
          "changes": {
            "$ref": "#/components/schemas/BulkUpdateRequestAssetsChanges"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "asset_ids", 
          "changes", 
          "company_id", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "BulkUpdateRequestAssetsChanges": {
        "properties": {
          "pim_product_id": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CellularTelemetry": {
        "properties": {
          "rsrp": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "rssi": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "CheckoutSalesperson": {
        "properties": {
          "role": {
            "enum": [
              "PRIMARY", 
              "SECONDARY"
            ], 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "role", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "Company": {
        "properties": {
          "authorized_signer": {
            "$ref": "#/components/schemas/User"
          }, 
          "authorized_signer_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_location": {
            "$ref": "#/components/schemas/Location"
          }, 
          "billing_provider": {
            "$ref": "#/components/schemas/BillingProvider"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "credit_limit": {
            "type": "number"
          }, 
          "crm_entity_id": {
            "type": "string"
          }, 
          "default_branch": {
            "$ref": "#/components/schemas/Branch"
          }, 
          "delivery_vendor": {
            "type": "boolean"
          }, 
          "do_not_rent": {
            "type": "boolean"
          }, 
          "dot_number": {
            "type": "string"
          }, 
          "employer_identification_number": {
            "type": "string"
          }, 
          "external_billing_provider_id": {
            "type": "string"
          }, 
          "has_fleet": {
            "type": "boolean"
          }, 
          "has_fleet_cam": {
            "type": "boolean"
          }, 
          "has_msa": {
            "type": "boolean"
          }, 
          "has_rentals": {
            "type": "boolean"
          }, 
          "home_office_location": {
            "$ref": "#/components/schemas/Location"
          }, 
          "home_office_location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "hours_of_service_type": {
            "$ref": "#/components/schemas/HoursOfServiceType"
          }, 
          "hours_of_service_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "i18n_locale": {
            "type": "string"
          }, 
          "i18n_temperature": {
            "type": "string"
          }, 
          "i18n_unit": {
            "type": "string"
          }, 
          "is_eligible_for_payouts": {
            "type": "boolean"
          }, 
          "is_rsp_partner": {
            "type": "boolean"
          }, 
          "is_telematics_service_provider": {
            "type": "boolean"
          }, 
          "logo_photo_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "net_terms": {
            "$ref": "#/components/schemas/NetTerm"
          }, 
          "ou_id": {
            "format": "uuid", 
            "type": "string"
          }, 
          "owner_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "photo": {
            "$ref": "#/components/schemas/Photo"
          }, 
          "service_vendor": {
            "type": "boolean"
          }, 
          "supply_vendor": {
            "type": "boolean"
          }, 
          "timezone": {
            "type": "string"
          }, 
          "xero_id": {
            "format": "uuid", 
            "type": "string"
          }
        }, 
        "required": [
          "company_id", 
          "delivery_vendor", 
          "do_not_rent", 
          "is_eligible_for_payouts", 
          "is_rsp_partner", 
          "service_vendor", 
          "supply_vendor", 
          "timezone"
        ], 
        "type": "object"
      }, 
      "Company1": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "CompanyDivision": {
        "properties": {
          "company_division_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "company_division_id"
        ], 
        "type": "object"
      }, 
      "CompanyDivisionTypeResponse": {
        "properties": {
          "company_division_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CompanyNote": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "company_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "company_note_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompanyNoteType"
              }
            ], 
            "nullable": true
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "is_pinned": {
            "type": "boolean"
          }, 
          "note_description": {
            "nullable": true, 
            "type": "string"
          }, 
          "note_text": {
            "nullable": true, 
            "type": "string"
          }, 
          "note_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserNote"
              }
            ], 
            "nullable": true
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "CompanyNoteCreate": {
        "properties": {
          "company_note_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "is_pinned": {
            "type": "boolean"
          }, 
          "note_description": {
            "nullable": true, 
            "type": "string"
          }, 
          "note_text": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "company_note_type_id"
        ], 
        "type": "object"
      }, 
      "CompanyNoteType": {
        "properties": {
          "company_note_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CompanyNoteUpdate": {
        "properties": {
          "company_note_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "is_pinned": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "note_description": {
            "nullable": true, 
            "type": "string"
          }, 
          "note_text": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CompanyRentalsKpisResponse": {
        "properties": {
          "active_rentals": {
            "description": "Total number of active rentals for the company.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "active_rentals_added_this_month": {
            "description": "Total number of active rentals added this month for the company.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "drop_off_deliveries_today": {
            "description": "Total number of drop-off deliveries scheduled for today for the company.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_floater_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RentalFloaterStatus"
              }
            ], 
            "description": "Status of the company's rental floater document."
          }, 
          "upcoming_deliveries": {
            "description": "Total number of upcoming deliveries for the company.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "upcoming_drop_off_deliveries": {
            "description": "Total number of upcoming drop-off deliveries for the company.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "upcoming_pickup_deliveries": {
            "description": "Total number of upcoming pickup deliveries for the company.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "zero_utilization_count": {
            "description": "Total number of days with zero utilization for the company.", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "active_rentals", 
          "active_rentals_added_this_month", 
          "drop_off_deliveries_today", 
          "rental_floater_status", 
          "upcoming_deliveries", 
          "upcoming_drop_off_deliveries", 
          "upcoming_pickup_deliveries", 
          "zero_utilization_count"
        ], 
        "type": "object"
      }, 
      "CompanyRentalsSearchExtendedDataRequest": {
        "properties": {
          "rental_ids": {
            "description": "List of rental IDs to fetch extended data for. Cannot be empty.", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "rental_ids"
        ], 
        "type": "object"
      }, 
      "CompanyRentalsSearchExtendedDataResponse": {
        "properties": {
          "company_id": {
            "description": "The company ID for which extended data was retrieved.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "extended_data": {
            "description": "Extended rental data from Snowflake T3_ON_RENT_VIEW table.", 
            "items": {
              "$ref": "#/components/schemas/RentalExtendedDataResponse"
            }, 
            "type": "array"
          }, 
          "rental_ids": {
            "description": "List of rental IDs that were queried.", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "total_records": {
            "description": "Total number of extended rental records retrieved.", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "company_id", 
          "extended_data", 
          "rental_ids", 
          "total_records"
        ], 
        "type": "object"
      }, 
      "ConfigMergedResponse": {
        "properties": {
          "config": {
            "description": "Effective merged config for the requested ref.", 
            "type": "object"
          }, 
          "config_id": {
            "description": "config_id of the row for the requested ref_type/ref_id. None if no row exists.", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "ConfigPatch": {
        "properties": {
          "config": {
            "description": "Keys to merge into the existing stored config.", 
            "type": "object"
          }
        }, 
        "required": [
          "config"
        ], 
        "type": "object"
      }, 
      "ConfigPost": {
        "properties": {
          "config": {
            "description": "Override keys to store. Never the full merged blob.", 
            "type": "object"
          }, 
          "ref_id": {
            "default": 0, 
            "description": "ID for the ref_type. Use 0 for global.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "ref_type": {
            "description": "Scope: 'global', 'branch', or 'user'", 
            "type": "string"
          }
        }, 
        "required": [
          "config", 
          "ref_type"
        ], 
        "type": "object"
      }, 
      "ConfigRowResponse": {
        "properties": {
          "config": {
            "description": "Stored override keys.", 
            "type": "object"
          }, 
          "config_id": {
            "description": "Unique identifier for this config row.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "created_at": {
            "description": "Creation timestamp.", 
            "format": "date-time", 
            "type": "string"
          }, 
          "created_by": {
            "description": "user_id of the creator.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "ref_id": {
            "description": "ID for the ref_type.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "ref_type": {
            "description": "Scope: 'global', 'branch', or 'user'", 
            "type": "string"
          }, 
          "updated_at": {
            "description": "Last update timestamp.", 
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "updated_by": {
            "description": "user_id of the last updater.", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "ConsumableItem": {
        "properties": {
          "description": {
            "type": "string"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "unit_price": {
            "type": "number"
          }
        }, 
        "required": [
          "description", 
          "part_id", 
          "quantity", 
          "unit_price"
        ], 
        "type": "object"
      }, 
      "Contract": {
        "properties": {
          "contract_id": {
            "type": "string"
          }, 
          "contract_type": {
            "$ref": "#/components/schemas/ContractType"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_signed": {
            "format": "date-time", 
            "type": "string"
          }, 
          "last_sent": {
            "format": "date-time", 
            "type": "string"
          }, 
          "signature": {
            "type": "string"
          }, 
          "terms": {}, 
          "title": {
            "type": "string"
          }, 
          "type": {
            "type": "string"
          }
        }, 
        "required": [
          "contract_id", 
          "contract_type", 
          "date_created", 
          "terms", 
          "type"
        ], 
        "type": "object"
      }, 
      "ContractResponse": {
        "properties": {
          "contract_id": {
            "type": "string"
          }, 
          "contract_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_signed": {
            "format": "date-time", 
            "type": "string"
          }, 
          "last_sent": {
            "format": "date-time", 
            "type": "string"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "signature": {
            "type": "string"
          }, 
          "title": {
            "type": "string"
          }, 
          "type": {
            "type": "string"
          }
        }, 
        "required": [
          "contract_id", 
          "contract_type_id", 
          "date_created", 
          "order_id", 
          "type"
        ], 
        "type": "object"
      }, 
      "ContractType": {
        "properties": {
          "contract_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "contract_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "CraftTypeResponse": {
        "properties": {
          "craft_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CreateAssetRequest": {
        "properties": {
          "asset_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "asset_use_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "color": {
            "nullable": true, 
            "type": "string"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "custom_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "dot_number_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "equipment_make_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "equipment_model_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "hours": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "license_plate_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "license_plate_state": {
            "maxLength": 2, 
            "nullable": true, 
            "type": "string"
          }, 
          "notes": {
            "nullable": true, 
            "type": "string"
          }, 
          "odometer": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "org_unit_resource_ids": {
            "items": {
              "type": "string"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "organization_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "minItems": 1, 
            "type": "array"
          }, 
          "pim_product_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "request_item_id": {
            "type": "string"
          }, 
          "resource_ids": {
            "items": {
              "type": "string"
            }, 
            "minItems": 1, 
            "type": "array"
          }, 
          "serial_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "tracker_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vin": {
            "nullable": true, 
            "type": "string"
          }, 
          "year": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "required": [
          "asset_type_id", 
          "company_id", 
          "request_item_id"
        ], 
        "type": "object"
      }, 
      "CreateAssetResponse": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "error": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CreateAssetResponseError"
              }
            ], 
            "nullable": true
          }, 
          "request_item_id": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CreateAssetResponseError": {
        "properties": {
          "code": {
            "nullable": true, 
            "type": "string"
          }, 
          "details": {
            "nullable": true, 
            "type": "object"
          }, 
          "message": {
            "type": "string"
          }
        }, 
        "required": [
          "message"
        ], 
        "type": "object"
      }, 
      "CreatePurchaseOrderResponse": {
        "properties": {
          "product_list_id": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "CreditNote": {
        "properties": {
          "are_tax_calcs_missing": {
            "type": "boolean"
          }, 
          "avalara_transaction_id": {
            "type": "string"
          }, 
          "avalara_transaction_id_update_dt_tm": {
            "format": "date-time", 
            "type": "string"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "credit_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "credit_note_number": {
            "type": "string"
          }, 
          "credit_note_type": {
            "$ref": "#/components/schemas/CreditNoteType"
          }, 
          "erp_external_id": {
            "type": "string"
          }, 
          "line_item_amount": {
            "type": "number"
          }, 
          "memo": {
            "type": "string"
          }, 
          "originating_invoice": {
            "$ref": "#/components/schemas/Invoice"
          }, 
          "reference": {
            "type": "string"
          }, 
          "remaining_credit_amount": {
            "type": "number"
          }, 
          "sent": {
            "type": "boolean"
          }, 
          "ship_from": {}, 
          "ship_to": {}, 
          "tax_amount": {
            "type": "number"
          }, 
          "taxes_invalidated_dt_tm": {
            "format": "date-time", 
            "type": "string"
          }, 
          "total_credit_amount": {
            "type": "number"
          }
        }, 
        "required": [
          "are_tax_calcs_missing", 
          "created_by_user", 
          "credit_note_id", 
          "credit_note_number", 
          "credit_note_type", 
          "line_item_amount", 
          "memo", 
          "sent", 
          "tax_amount", 
          "total_credit_amount"
        ], 
        "type": "object"
      }, 
      "CreditNoteAllocation": {
        "properties": {
          "allocation_type": {
            "$ref": "#/components/schemas/AllocationType"
          }, 
          "amount": {
            "type": "number"
          }, 
          "bank_account_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "credit_note": {
            "$ref": "#/components/schemas/CreditNote"
          }, 
          "credit_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "erp_allocated_to_id": {
            "type": "string"
          }, 
          "erp_creation_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "reference": {
            "type": "string"
          }, 
          "reversal_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "reversal_reason": {
            "type": "string"
          }, 
          "reversal_user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "allocation_type", 
          "amount", 
          "created_by_user", 
          "credit_note_id", 
          "date"
        ], 
        "type": "object"
      }, 
      "CreditNoteType": {
        "properties": {
          "credit_note_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "credit_note_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "DeletedEquipmentMake": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "equipment_make_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "pim_manufacturer_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "unassociated_asset_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "company_id", 
          "equipment_make_id", 
          "name", 
          "unassociated_asset_ids"
        ], 
        "type": "object"
      }, 
      "DeletedEquipmentModel": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "equipment_model_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "unassociated_asset_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "company_id", 
          "equipment_model_id", 
          "name", 
          "unassociated_asset_ids"
        ], 
        "type": "object"
      }, 
      "DeliverLoginLinkResponse": {
        "properties": {
          "message": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "Delivery": {
        "properties": {
          "asset_condition_snapshot": {
            "$ref": "#/components/schemas/AssetConditionSnapshot"
          }, 
          "charge": {
            "type": "number"
          }, 
          "completed_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "completed_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "contact_name": {
            "type": "string"
          }, 
          "contact_phone_number": {
            "type": "string"
          }, 
          "delivery_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "delivery_creation_type": {
            "$ref": "#/components/schemas/DeliveryCreationType"
          }, 
          "delivery_details": {}, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_photos": {
            "items": {
              "$ref": "#/components/schemas/DeliveryPhoto"
            }, 
            "type": "array"
          }, 
          "delivery_status": {
            "$ref": "#/components/schemas/DeliveryStatus"
          }, 
          "delivery_type": {
            "$ref": "#/components/schemas/DeliveryType"
          }, 
          "driver": {
            "$ref": "#/components/schemas/User"
          }, 
          "facilitator_type": {
            "$ref": "#/components/schemas/DeliveryFacilitatorType"
          }, 
          "location": {
            "$ref": "#/components/schemas/Location2"
          }, 
          "note": {
            "type": "string"
          }, 
          "origin_location": {
            "$ref": "#/components/schemas/Location2"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "description": "A CostCapture Purchase Order", 
            "format": "uuid", 
            "type": "string"
          }, 
          "purchase_order_number": {
            "description": "The human readable ID of the CostCapture Purchase Order", 
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_name": {
            "type": "string"
          }, 
          "scheduled_date": {
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "charge", 
          "delivery_creation_type", 
          "delivery_id", 
          "delivery_status", 
          "delivery_type", 
          "facilitator_type"
        ], 
        "type": "object"
      }, 
      "Delivery1": {
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/Asset"
          }, 
          "asset_condition_snapshot": {
            "$ref": "#/components/schemas/AssetConditionSnapshot"
          }, 
          "charge": {
            "type": "number"
          }, 
          "completed_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "completed_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "contact_name": {
            "type": "string"
          }, 
          "contact_phone_number": {
            "type": "string"
          }, 
          "delivery_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "delivery_creation_type": {
            "$ref": "#/components/schemas/DeliveryCreationType"
          }, 
          "delivery_details": {}, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_photos": {
            "items": {
              "$ref": "#/components/schemas/DeliveryPhoto"
            }, 
            "type": "array"
          }, 
          "delivery_status": {
            "$ref": "#/components/schemas/DeliveryStatus"
          }, 
          "delivery_type": {
            "$ref": "#/components/schemas/DeliveryType"
          }, 
          "driver": {
            "$ref": "#/components/schemas/User"
          }, 
          "facilitator_type": {
            "$ref": "#/components/schemas/DeliveryFacilitatorType"
          }, 
          "line_item": {
            "$ref": "#/components/schemas/LineItem"
          }, 
          "location": {
            "$ref": "#/components/schemas/Location2"
          }, 
          "note": {
            "type": "string"
          }, 
          "origin_location": {
            "$ref": "#/components/schemas/Location2"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "description": "A CostCapture Purchase Order", 
            "format": "uuid", 
            "type": "string"
          }, 
          "purchase_order_number": {
            "description": "The human readable ID of the CostCapture Purchase Order", 
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_name": {
            "type": "string"
          }, 
          "scheduled_date": {
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "charge", 
          "delivery_creation_type", 
          "delivery_id", 
          "delivery_status", 
          "delivery_type", 
          "facilitator_type"
        ], 
        "type": "object"
      }, 
      "DeliveryBase": {
        "properties": {
          "charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "completed_by_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "completed_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "contact_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "contact_phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "delivery_details": {
            "nullable": true, 
            "type": "object"
          }, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "driver_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "note": {
            "nullable": true, 
            "type": "string"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "run_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/SaleItemInDelivery"
            }, 
            "type": "array"
          }, 
          "scheduled_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DeliveryConfirmationResponse": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "created_at": {
            "format": "date-time", 
            "type": "string"
          }, 
          "delivery_confirmation_id": {
            "type": "string"
          }, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "company_id", 
          "created_at", 
          "delivery_confirmation_id", 
          "delivery_id"
        ], 
        "type": "object"
      }, 
      "DeliveryCreationType": {
        "properties": {
          "delivery_creation_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "delivery_creation_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "DeliveryFacilitatorType": {
        "properties": {
          "delivery_facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "delivery_facilitator_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "DeliveryPhoto": {
        "properties": {
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_photo_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "photo": {
            "$ref": "#/components/schemas/Photo"
          }
        }, 
        "required": [
          "delivery_id", 
          "delivery_photo_id", 
          "photo"
        ], 
        "type": "object"
      }, 
      "DeliveryPhoto1": {
        "properties": {
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_photo_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "photo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Photo1"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "DeliveryStatus": {
        "properties": {
          "delivery_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "delivery_status_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "DeliveryStatus1": {
        "properties": {
          "delivery_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DeliveryType": {
        "properties": {
          "delivery_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "delivery_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "DeliveryType1": {
        "properties": {
          "delivery_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DeviceEntryResponse": {
        "properties": {
          "date_installed": {
            "type": "string"
          }, 
          "date_uninstalled": {
            "nullable": true, 
            "type": "string"
          }, 
          "device_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "device_serial": {
            "type": "string"
          }, 
          "device_source": {
            "nullable": true, 
            "type": "string"
          }, 
          "label": {
            "nullable": true, 
            "type": "string"
          }, 
          "legacy_primary": {
            "type": "boolean"
          }, 
          "roles": {
            "items": {
              "$ref": "#/components/schemas/DeviceRoleResponse"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "DeviceMappingsResponse": {
        "properties": {
          "devices": {
            "items": {
              "$ref": "#/components/schemas/DeviceEntryResponse"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "DeviceMetadata": {
        "properties": {
          "date_installed": {
            "nullable": true, 
            "type": "string"
          }, 
          "device_serial": {
            "type": "string"
          }, 
          "label": {
            "nullable": true, 
            "type": "string"
          }, 
          "legacy_primary": {
            "type": "boolean"
          }, 
          "roles": {
            "items": {
              "$ref": "#/components/schemas/DeviceRole"
            }, 
            "type": "array"
          }, 
          "tracker_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "tracker_type_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "vendor_name": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DeviceRole": {
        "properties": {
          "logical_order": {
            "format": "int32", 
            "type": "integer"
          }, 
          "role_type": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DeviceRoleRequest": {
        "properties": {
          "logical_order": {
            "format": "int32", 
            "type": "integer"
          }, 
          "role_type": {
            "type": "string"
          }
        }, 
        "required": [
          "logical_order", 
          "role_type"
        ], 
        "type": "object"
      }, 
      "DeviceRoleResponse": {
        "properties": {
          "logical_order": {
            "format": "int32", 
            "type": "integer"
          }, 
          "role_type": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DeviceStatus": {
        "properties": {
          "device": {
            "$ref": "#/components/schemas/DeviceMetadata"
          }, 
          "dtcs": {
            "items": {
              "$ref": "#/components/schemas/Dtc"
            }, 
            "type": "array"
          }, 
          "telemetry": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeviceTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "telemetry_available": {
            "type": "boolean"
          }
        }, 
        "type": "object"
      }, 
      "DeviceTelemetry": {
        "properties": {
          "battery": {
            "allOf": [
              {
                "$ref": "#/components/schemas/BatteryTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "cellular": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CellularTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "emissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EmissionsTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "engine": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EngineTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "fuel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FuelTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "generator": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/LocationTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "motion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MotionTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "pump": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PumpTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UsageTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "utility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UtilityTelemetry"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "DispatchAsset": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "custom_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "equipment_class": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchEquipmentClass"
              }
            ], 
            "nullable": true
          }, 
          "equipment_model": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchName"
              }
            ], 
            "nullable": true
          }, 
          "make": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchName"
              }
            ], 
            "nullable": true
          }, 
          "model": {
            "nullable": true, 
            "type": "string"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "photo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchPhoto"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "DispatchEquipmentClass": {
        "properties": {
          "equipment_class_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "photo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DispatchPhoto"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "DispatchName": {
        "properties": {
          "name": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "DispatchPhoto": {
        "properties": {
          "filename": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "Driver": {
        "properties": {
          "first_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "last_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "DriverProfile": {
        "properties": {
          "avatar_url": {
            "nullable": true, 
            "type": "string"
          }, 
          "branches": {
            "items": {
              "$ref": "#/components/schemas/DriverProfileBranch"
            }, 
            "type": "array"
          }, 
          "driver_profile_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "notes": {
            "nullable": true, 
            "type": "string"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DriverProfileUser"
              }
            ], 
            "nullable": true
          }, 
          "user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vendor_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "DriverProfileBranch": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "is_hidden": {
            "type": "boolean"
          }, 
          "map_color": {
            "nullable": true, 
            "type": "string"
          }, 
          "schedule": {
            "type": "object"
          }
        }, 
        "type": "object"
      }, 
      "DriverProfileBranchInput": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "is_hidden": {
            "type": "boolean"
          }, 
          "map_color": {
            "nullable": true, 
            "type": "string"
          }, 
          "schedule": {
            "type": "object"
          }
        }, 
        "required": [
          "branch_id"
        ], 
        "type": "object"
      }, 
      "DriverProfileCreateOutsideHauler": {
        "properties": {
          "avatar_url": {
            "nullable": true, 
            "type": "string"
          }, 
          "branches": {
            "items": {
              "$ref": "#/components/schemas/DriverProfileBranchInput"
            }, 
            "minItems": 1, 
            "type": "array"
          }, 
          "cell_phone_number": {
            "pattern": "^\\+[1-9][0-9]{0,1}\\d{10,14}$", 
            "type": "string"
          }, 
          "email_address": {
            "nullable": true, 
            "type": "string"
          }, 
          "first_name": {
            "minLength": 1, 
            "type": "string"
          }, 
          "last_name": {
            "minLength": 1, 
            "type": "string"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "notes": {
            "nullable": true, 
            "type": "string"
          }, 
          "vendor_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }
        }, 
        "required": [
          "branches", 
          "cell_phone_number", 
          "first_name", 
          "last_name", 
          "vendor_id"
        ], 
        "type": "object"
      }, 
      "DriverProfileUpsert": {
        "properties": {
          "avatar_url": {
            "nullable": true, 
            "type": "string"
          }, 
          "branches": {
            "items": {
              "$ref": "#/components/schemas/DriverProfileBranchInput"
            }, 
            "type": "array"
          }, 
          "driver_profile_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "notes": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vendor_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "DriverProfileUser": {
        "properties": {
          "cell_phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "company_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "email_address": {
            "nullable": true, 
            "type": "string"
          }, 
          "first_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "last_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "DriverProfilesListResponse": {
        "properties": {
          "driver_profiles": {
            "items": {
              "$ref": "#/components/schemas/DriverProfile"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "Dtc": {
        "properties": {
          "code": {
            "type": "string"
          }, 
          "failure_mode_identifier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Fmi"
              }
            ], 
            "nullable": true
          }, 
          "last_seen": {
            "nullable": true, 
            "type": "string"
          }, 
          "obd_dtc_code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ObdDtcCode"
              }
            ], 
            "nullable": true
          }, 
          "occurrences": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "protocol": {
            "type": "string"
          }, 
          "report_timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "suspect_parameter_number": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Spn"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "EmissionsTelemetry": {
        "properties": {
          "def_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "dpf_regen_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "EngineTelemetry": {
        "properties": {
          "active": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "coolant_level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "coolant_temperature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "oil_pressure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "oil_temperature": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "rpm": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "EquipmentAvailabilityResponse": {
        "properties": {
          "available_assets": {
            "items": {
              "$ref": "#/components/schemas/Asset"
            }, 
            "type": "array"
          }, 
          "equipment_class_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "equipment_class_name": {
            "type": "string"
          }, 
          "reserved_assets": {
            "items": {
              "$ref": "#/components/schemas/Asset"
            }, 
            "type": "array"
          }, 
          "unavailable_assets": {
            "items": {
              "$ref": "#/components/schemas/Asset"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "EquipmentClass": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "company_division": {
            "$ref": "#/components/schemas/CompanyDivision"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_deleted": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "description": {
            "type": "string"
          }, 
          "equipment_class_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "rentable": {
            "type": "boolean"
          }, 
          "weekly_minimum": {
            "type": "boolean"
          }
        }, 
        "required": [
          "company", 
          "date_created", 
          "date_updated", 
          "equipment_class_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "FacilitatorType": {
        "properties": {
          "delivery_facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "Fmi": {
        "properties": {
          "code": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "FrequentlyOrderedEquipment": {
        "properties": {
          "equipment_class_id": {
            "description": "Equipment class ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "equipment_class_name": {
            "description": "Equipment class name", 
            "type": "string"
          }, 
          "frequency": {
            "description": "Number of times rented together", 
            "format": "int32", 
            "type": "integer"
          }, 
          "ready_to_rent_count": {
            "description": "Number of Ready-to-Rent assets of this equipment class at the branch", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "FrequentlyOrderedPart": {
        "properties": {
          "available_quantity": {
            "description": "Available quantity at the branch", 
            "format": "int32", 
            "type": "integer"
          }, 
          "cat_class": {
            "description": "Catalog class", 
            "type": "string"
          }, 
          "cost": {
            "description": "Cost", 
            "format": "float", 
            "type": "number"
          }, 
          "frequency": {
            "description": "Number of times rented together", 
            "format": "int32", 
            "type": "integer"
          }, 
          "manufacturer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Manufacturer"
              }
            ], 
            "description": "Manufacturer details"
          }, 
          "manufacturer_name": {
            "description": "Manufacturer name", 
            "type": "string"
          }, 
          "msrp": {
            "description": "Manufacturer suggested retail price", 
            "format": "float", 
            "type": "number"
          }, 
          "name": {
            "description": "Part name", 
            "type": "string"
          }, 
          "part_id": {
            "description": "Part ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "part_number": {
            "description": "Part number", 
            "type": "string"
          }, 
          "product_class_id": {
            "description": "Product class ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "description": "Total quantity", 
            "format": "int32", 
            "type": "integer"
          }, 
          "store_id": {
            "description": "Store/branch ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "total": {
            "description": "Total inventory", 
            "format": "int32", 
            "type": "integer"
          }, 
          "wac_amount": {
            "description": "Weighted average cost amount", 
            "type": "string"
          }, 
          "wac_currency_code": {
            "description": "Weighted average cost currency code", 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "FrequentlyOrderedTogetherResponse": {
        "properties": {
          "frequently_ordered_equipment": {
            "description": "List of equipment classes frequently ordered together", 
            "items": {
              "$ref": "#/components/schemas/FrequentlyOrderedEquipment"
            }, 
            "type": "array"
          }, 
          "frequently_ordered_parts": {
            "description": "List of parts frequently ordered together", 
            "items": {
              "$ref": "#/components/schemas/FrequentlyOrderedPart"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "FuelTelemetry": {
        "properties": {
          "consumption_rate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "economy_average": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "economy_instantaneous": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "economy_lifetime": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "level": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "total_used": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "used_idle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "FulfillmentItem": {
        "properties": {
          "fulfillment_id": {
            "description": "The sale item fulfillment ID to deliver", 
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "description": "Quantity to mark as delivered (supports partial)", 
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }
        }, 
        "required": [
          "fulfillment_id", 
          "quantity"
        ], 
        "type": "object"
      }, 
      "FulfillmentNotificationPreferenceResponse": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery": {
            "type": "boolean"
          }, 
          "off_rent": {
            "type": "boolean"
          }, 
          "service_request": {
            "type": "boolean"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "FulfillmentNotificationPreferences": {
        "properties": {
          "delivery": {
            "type": "boolean"
          }, 
          "off_rent": {
            "type": "boolean"
          }, 
          "service_request": {
            "type": "boolean"
          }
        }, 
        "type": "object"
      }, 
      "GeneratorAverageTelemetry": {
        "properties": {
          "ac_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "ac_rms_current": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_line_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_neutral_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "GeneratorControlTelemetry": {
        "properties": {
          "alternator_efficiency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "frequency_selection": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "governing_speed_command": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "governor_droop": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "governor_gain_adjust": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "not_in_automatic_start_state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "not_ready_to_parallel": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "requested_engine_control_mode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "GeneratorPhaseTelemetry": {
        "properties": {
          "ac_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "ac_rms_current": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "apparent_power": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_line_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_neutral_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "power_factor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "reactive_power": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "real_power": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "GeneratorTelemetry": {
        "properties": {
          "average": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorAverageTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "circuit_breaker_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "control": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorControlTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "excitation_field_current": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "phase_a": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorPhaseTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "phase_b": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorPhaseTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "phase_c": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorPhaseTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GeneratorTotalTelemetry"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "GeneratorTotalTelemetry": {
        "properties": {
          "apparent_power": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "kvar_hours_export": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "kw_hours_export": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "kw_hours_import": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "overall_power_factor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "overall_power_factor_lagging": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "percent_kw": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "reactive_power": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "real_power": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "GpsLocation": {
        "properties": {
          "latitude": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "longitude": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }
        }, 
        "type": "object"
      }, 
      "HealthStatus": {
        "properties": {
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "status": {
            "nullable": true, 
            "type": "string"
          }, 
          "timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "value": {
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "HoursOfServiceType": {
        "properties": {
          "display_name": {
            "type": "string"
          }, 
          "hours_of_service_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "display_name", 
          "hours_of_service_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "InstallDevice": {
        "properties": {
          "date_installed": {
            "nullable": true, 
            "type": "string"
          }, 
          "device_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "device_serial": {
            "nullable": true, 
            "type": "string"
          }, 
          "is_legacy_primary": {
            "type": "boolean"
          }, 
          "label": {
            "nullable": true, 
            "type": "string"
          }, 
          "roles": {
            "items": {
              "$ref": "#/components/schemas/DeviceRoleRequest"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "roles"
        ], 
        "type": "object"
      }, 
      "InventoryReservationEvent": {
        "properties": {
          "inventory_location_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "product_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "quantity_reserved": {
            "format": "int32", 
            "minimum": 0, 
            "type": "integer"
          }, 
          "reservation_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "reserved_by_id": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "target_id": {
            "description": "Order id (inventory target id)", 
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "target_type": {
            "type": "string"
          }, 
          "total_quantity_reserved": {
            "format": "int32", 
            "minimum": 0, 
            "type": "integer"
          }, 
          "version": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }
        }, 
        "required": [
          "inventory_location_id", 
          "product_id", 
          "quantity_reserved", 
          "reservation_id", 
          "reserved_by_id", 
          "target_id", 
          "target_type", 
          "total_quantity_reserved"
        ], 
        "type": "object"
      }, 
      "Invoice": {
        "properties": {
          "allocations": {
            "items": {
              "$ref": "#/components/schemas/CreditNoteAllocation"
            }, 
            "type": "array"
          }, 
          "are_tax_calcs_missing": {
            "type": "boolean"
          }, 
          "avalara_transaction_id": {
            "type": "string"
          }, 
          "avalara_transaction_id_update_dt_tm": {
            "format": "date-time", 
            "type": "string"
          }, 
          "billed_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "billing_approved": {
            "type": "boolean"
          }, 
          "billing_approved_by_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_approved_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "billing_provider": {
            "$ref": "#/components/schemas/BillingProvider"
          }, 
          "charges": {
            "items": {
              "$ref": "#/components/schemas/RentalCharge1"
            }, 
            "type": "array"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "customer_tax_exempt_status": {
            "type": "boolean"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "extended_data": {}, 
          "invoice_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "invoice_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "invoice_no": {
            "type": "string"
          }, 
          "line_item_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/LineItem"
            }, 
            "type": "array"
          }, 
          "ordered_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "owed_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "paid": {
            "type": "boolean"
          }, 
          "paid_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "public_note": {
            "type": "string"
          }, 
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrder1"
          }, 
          "reference": {
            "type": "string"
          }, 
          "rental_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "rpp_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "sent": {
            "type": "boolean"
          }, 
          "ship_from": {
            "$ref": "#/components/schemas/InvoiceShippingLocation"
          }, 
          "ship_to": {
            "$ref": "#/components/schemas/InvoiceShippingLocation"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "tax_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "taxes_invalidated_dt_tm": {
            "format": "date-time", 
            "type": "string"
          }, 
          "xero_id": {
            "type": "string"
          }
        }, 
        "required": [
          "are_tax_calcs_missing", 
          "date_created", 
          "date_updated", 
          "end_date", 
          "invoice_id", 
          "paid", 
          "sent", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "Invoice1": {
        "properties": {
          "allocations": {
            "items": {
              "$ref": "#/components/schemas/CreditNoteAllocation"
            }, 
            "type": "array"
          }, 
          "are_tax_calcs_missing": {
            "type": "boolean"
          }, 
          "avalara_transaction_id": {
            "type": "string"
          }, 
          "avalara_transaction_id_update_dt_tm": {
            "format": "date-time", 
            "type": "string"
          }, 
          "billed_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "billing_approved": {
            "type": "boolean"
          }, 
          "billing_approved_by_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_approved_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "billing_provider": {
            "$ref": "#/components/schemas/BillingProvider"
          }, 
          "charges": {
            "items": {
              "$ref": "#/components/schemas/RentalCharge1"
            }, 
            "type": "array"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "customer_tax_exempt_status": {
            "type": "boolean"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "extended_data": {}, 
          "invoice_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "invoice_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "invoice_no": {
            "type": "string"
          }, 
          "line_item_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "ordered_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "owed_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "paid": {
            "type": "boolean"
          }, 
          "paid_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "public_note": {
            "type": "string"
          }, 
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrder1"
          }, 
          "reference": {
            "type": "string"
          }, 
          "rental_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "rpp_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "sent": {
            "type": "boolean"
          }, 
          "ship_from": {
            "$ref": "#/components/schemas/InvoiceShippingLocation"
          }, 
          "ship_to": {
            "$ref": "#/components/schemas/InvoiceShippingLocation"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "tax_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "taxes_invalidated_dt_tm": {
            "format": "date-time", 
            "type": "string"
          }, 
          "xero_id": {
            "type": "string"
          }
        }, 
        "required": [
          "are_tax_calcs_missing", 
          "date_created", 
          "date_updated", 
          "end_date", 
          "invoice_id", 
          "paid", 
          "sent", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "InvoiceShippingLocation": {
        "properties": {
          "address": {
            "$ref": "#/components/schemas/InvoiceShippingLocationAddress"
          }, 
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "InvoiceShippingLocationAddress": {
        "properties": {
          "city": {
            "type": "string"
          }, 
          "country": {
            "type": "string"
          }, 
          "latitude": {
            "format": "float", 
            "type": "number"
          }, 
          "longitude": {
            "format": "float", 
            "type": "number"
          }, 
          "state_abbreviation": {
            "type": "string"
          }, 
          "street_1": {
            "type": "string"
          }, 
          "zip_code": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "Job": {
        "properties": {
          "child_jobs": {
            "items": {
              "$ref": "#/components/schemas/Job"
            }, 
            "type": "array"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "create_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "custom_id": {
            "type": "string"
          }, 
          "job_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "parent_job_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "update_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "company", 
          "create_date", 
          "job_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "KeypadHealthData": {
        "properties": {
          "BATTERY_VOLTAGE_TYPE": {
            "description": "Battery voltage type", 
            "nullable": true, 
            "type": "string"
          }, 
          "DAYS_BTWN_KEYPAD_ENTRY_AND_TRIP": {
            "description": "Days between keypad entry and trip", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "KEYPAD_APP": {
            "description": "Keypad application version", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_BOOTLOADER": {
            "description": "Keypad bootloader version", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_HARDWARE": {
            "description": "Keypad hardware version", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_ID": {
            "description": "Keypad ID", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "KEYPAD_INSTALL_STATUS": {
            "description": "Keypad installation status", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_REQ": {
            "description": "Keypad REQ version", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_REQ_TYPE": {
            "description": "Keypad REQ type", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_SERIAL": {
            "description": "Keypad serial number", 
            "nullable": true, 
            "type": "string"
          }, 
          "KEYPAD_VS_TRIP_HEALTH": {
            "description": "Keypad vs trip health status", 
            "nullable": true, 
            "type": "string"
          }, 
          "LAST_CELLULAR_CONTACT": {
            "description": "Last cellular contact timestamp", 
            "nullable": true, 
            "type": "string"
          }, 
          "LAST_CHECKIN_TIMESTAMP": {
            "description": "Last check-in timestamp", 
            "nullable": true, 
            "type": "string"
          }, 
          "LAST_KEYCODE_ASSIGNMENT_DATE": {
            "description": "Last keycode assignment date", 
            "nullable": true, 
            "type": "string"
          }, 
          "LAST_KEYCODE_ASSIGNMENT_STATUS": {
            "description": "Last keycode assignment status", 
            "nullable": true, 
            "type": "string"
          }, 
          "LAST_KEYPAD_ENTRY_DATE": {
            "description": "Last keypad entry date", 
            "nullable": true, 
            "type": "string"
          }, 
          "PENDING_KEYCODE_AGED_COUNT": {
            "description": "Count of aged pending keycodes", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "PENDING_KEYCODE_COUNT": {
            "description": "Count of pending keycodes", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "TRACKER_LAST_DATE_INSTALLED": {
            "description": "Last date the tracker was installed", 
            "nullable": true, 
            "type": "string"
          }, 
          "TRACKER_MODEL": {
            "description": "Model of the tracker", 
            "nullable": true, 
            "type": "string"
          }, 
          "TRACKER_SERIAL": {
            "description": "Serial number of the tracker", 
            "nullable": true, 
            "type": "string"
          }, 
          "TRACKER_TYPE": {
            "description": "Type of tracker installed on the asset", 
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "LineItem": {
        "properties": {
          "amount": {
            "format": "float", 
            "type": "number"
          }, 
          "asset": {
            "$ref": "#/components/schemas/Asset"
          }, 
          "branch": {
            "$ref": "#/components/schemas/Branch1"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "description": {
            "type": "string"
          }, 
          "extended_data": {}, 
          "line_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/LineItemType"
          }, 
          "number_of_units": {
            "format": "float", 
            "type": "number"
          }, 
          "override_market_tax_rate": {
            "type": "boolean"
          }, 
          "payouts_processed": {
            "type": "boolean"
          }, 
          "price_per_unit": {
            "format": "float", 
            "type": "number"
          }, 
          "rental": {
            "$ref": "#/components/schemas/Rental"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "tax_amount": {
            "type": "number"
          }, 
          "tax_rate": {
            "$ref": "#/components/schemas/TaxRate"
          }, 
          "tax_rate_percentage": {
            "type": "number"
          }, 
          "taxable": {
            "type": "boolean"
          }
        }, 
        "required": [
          "amount", 
          "date_created", 
          "date_updated", 
          "line_item_id", 
          "line_item_type", 
          "payouts_processed"
        ], 
        "type": "object"
      }, 
      "LineItem1": {
        "properties": {
          "amount": {
            "format": "float", 
            "type": "number"
          }, 
          "branch": {
            "$ref": "#/components/schemas/Branch1"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "description": {
            "type": "string"
          }, 
          "extended_data": {}, 
          "line_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/LineItemType"
          }, 
          "number_of_units": {
            "format": "float", 
            "type": "number"
          }, 
          "override_market_tax_rate": {
            "type": "boolean"
          }, 
          "payouts_processed": {
            "type": "boolean"
          }, 
          "price_per_unit": {
            "format": "float", 
            "type": "number"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "tax_amount": {
            "type": "number"
          }, 
          "tax_rate": {
            "$ref": "#/components/schemas/TaxRate"
          }, 
          "tax_rate_percentage": {
            "type": "number"
          }, 
          "taxable": {
            "type": "boolean"
          }
        }, 
        "required": [
          "amount", 
          "date_created", 
          "date_updated", 
          "line_item_id", 
          "line_item_type", 
          "payouts_processed"
        ], 
        "type": "object"
      }, 
      "LineItemProductType": {
        "properties": {
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "line_item_product_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "updated_by_user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "line_item_product_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "LineItemType": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "fixed_amount": {
            "type": "number"
          }, 
          "invoice_display_name": {
            "type": "string"
          }, 
          "line_item_product_type": {
            "$ref": "#/components/schemas/LineItemProductType"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "stackable": {
            "type": "boolean"
          }, 
          "tax_code": {
            "$ref": "#/components/schemas/TaxCode"
          }
        }, 
        "required": [
          "active", 
          "invoice_display_name", 
          "line_item_product_type", 
          "line_item_type_id", 
          "name", 
          "stackable"
        ], 
        "type": "object"
      }, 
      "LinkedPurchaseOrder": {
        "properties": {
          "order_link_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "type": "string"
          }
        }, 
        "required": [
          "order_link_id", 
          "purchase_order_id"
        ], 
        "type": "object"
      }, 
      "LinkedSalesOrder": {
        "properties": {
          "branch_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "company_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_link_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_status": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "order_id", 
          "order_link_id"
        ], 
        "type": "object"
      }, 
      "LinkedWorkOrder": {
        "properties": {
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "order_link_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "status": {
            "nullable": true, 
            "type": "string"
          }, 
          "work_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "work_order_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "required": [
          "order_link_id", 
          "work_order_id"
        ], 
        "type": "object"
      }, 
      "Location": {
        "properties": {
          "city": {
            "type": "string"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "jobsite": {
            "type": "boolean"
          }, 
          "latitude": {
            "format": "float", 
            "type": "number"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_type": {
            "$ref": "#/components/schemas/LocationType"
          }, 
          "longitude": {
            "format": "float", 
            "type": "number"
          }, 
          "needs_review": {
            "type": "boolean"
          }, 
          "nickname": {
            "type": "string"
          }, 
          "state": {
            "$ref": "#/components/schemas/State"
          }, 
          "street_1": {
            "type": "string"
          }, 
          "street_2": {
            "type": "string"
          }, 
          "universal_entity": {
            "$ref": "#/components/schemas/UniversalEntity"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }, 
          "zip_code": {
            "format": "int32", 
            "type": "integer"
          }, 
          "zip_code_extended": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "date_updated", 
          "jobsite", 
          "location_id", 
          "needs_review", 
          "user"
        ], 
        "type": "object"
      }, 
      "Location1": {
        "properties": {
          "city": {
            "type": "string"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "jobsite": {
            "type": "boolean"
          }, 
          "latitude": {
            "format": "float", 
            "type": "number"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_type": {
            "$ref": "#/components/schemas/LocationType"
          }, 
          "longitude": {
            "format": "float", 
            "type": "number"
          }, 
          "needs_review": {
            "type": "boolean"
          }, 
          "nickname": {
            "type": "string"
          }, 
          "state": {
            "$ref": "#/components/schemas/State"
          }, 
          "street_1": {
            "type": "string"
          }, 
          "street_2": {
            "type": "string"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }, 
          "zip_code": {
            "format": "int32", 
            "type": "integer"
          }, 
          "zip_code_extended": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "date_updated", 
          "jobsite", 
          "location_id", 
          "needs_review", 
          "user"
        ], 
        "type": "object"
      }, 
      "Location2": {
        "properties": {
          "city": {
            "type": "string"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "jobsite": {
            "type": "boolean"
          }, 
          "latitude": {
            "format": "float", 
            "type": "number"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_type": {
            "$ref": "#/components/schemas/LocationType"
          }, 
          "longitude": {
            "format": "float", 
            "type": "number"
          }, 
          "needs_review": {
            "type": "boolean"
          }, 
          "nickname": {
            "type": "string"
          }, 
          "state": {
            "$ref": "#/components/schemas/State"
          }, 
          "street_1": {
            "type": "string"
          }, 
          "street_2": {
            "type": "string"
          }, 
          "universal_entity": {
            "$ref": "#/components/schemas/UniversalEntity"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }, 
          "zip_code": {
            "format": "int32", 
            "type": "integer"
          }, 
          "zip_code_extended": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "date_updated", 
          "jobsite", 
          "location_id", 
          "needs_review", 
          "user"
        ], 
        "type": "object"
      }, 
      "Location3": {
        "properties": {
          "city": {
            "nullable": true, 
            "type": "string"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "nickname": {
            "nullable": true, 
            "type": "string"
          }, 
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/State1"
              }
            ], 
            "nullable": true
          }, 
          "street_1": {
            "nullable": true, 
            "type": "string"
          }, 
          "zip_code": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "LocationTelemetry": {
        "properties": {
          "gps_hdop": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "latitude": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "longitude": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "LocationType": {
        "properties": {
          "location_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "location_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "M2MRentalOffRentRequest": {
        "properties": {
          "off_rent_date": {
            "description": "When the rental went off rent: ISO-8601 with a UTC offset, not in the future. Becomes the rental's end date.", 
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "off_rent_date"
        ], 
        "type": "object"
      }, 
      "MTTBatchWorker": {
        "properties": {
          "company_division_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "craft_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "email_address": {
            "format": "email", 
            "type": "string"
          }, 
          "employee_id": {
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "phone_number": {
            "type": "string"
          }, 
          "shift_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "supervisor_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "first_name", 
          "last_name"
        ], 
        "type": "object"
      }, 
      "MTTBatchWorkerResponse": {
        "properties": {
          "company_division_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "company_division_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompanyDivisionTypeResponse"
              }
            ], 
            "nullable": true
          }, 
          "craft_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "craft_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CraftTypeResponse"
              }
            ], 
            "nullable": true
          }, 
          "email_address": {
            "format": "email", 
            "type": "string"
          }, 
          "employee_id": {
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "mtt_trailer_worker_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "phone_number": {
            "type": "string"
          }, 
          "shift_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "supervisor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SupervisorResponse"
              }
            ], 
            "nullable": true
          }, 
          "supervisor_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_shift_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserShiftTypeResponse"
              }
            ], 
            "nullable": true
          }
        }, 
        "required": [
          "email_address", 
          "first_name", 
          "last_name", 
          "phone_number"
        ], 
        "type": "object"
      }, 
      "MTTBatchWorkersRequest": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "market_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "workers": {
            "items": {
              "$ref": "#/components/schemas/MTTBatchWorker"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "company_id", 
          "market_id", 
          "workers"
        ], 
        "type": "object"
      }, 
      "MTTBatchWorkersResponse": {
        "properties": {
          "workers": {
            "items": {
              "$ref": "#/components/schemas/MTTBatchWorkerResponse"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "MTTCheckoutRequest": {
        "properties": {
          "application_source_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_provider_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "consumable_items": {
            "items": {
              "$ref": "#/components/schemas/ConsumableItem"
            }, 
            "type": "array"
          }, 
          "customer_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_invoice_memo": {
            "type": "string"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_items": {
            "items": {
              "$ref": "#/components/schemas/RentalItem"
            }, 
            "type": "array"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/CheckoutSalesperson"
            }, 
            "type": "array"
          }, 
          "sub_renter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTCheckoutSubRenter"
              }
            ], 
            "nullable": true
          }, 
          "supplier_company_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "application_source_id", 
          "billing_provider_id", 
          "branch_id", 
          "customer_id", 
          "supplier_company_id"
        ], 
        "type": "object"
      }, 
      "MTTCheckoutResponse": {
        "properties": {
          "invoice_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "MTTCheckoutSubRenter": {
        "properties": {
          "sub_renter_company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_ordered_by_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "required": [
          "sub_renter_company_id", 
          "sub_renter_ordered_by_id"
        ], 
        "type": "object"
      }, 
      "MTTCheckoutTransactionSlipRequest": {
        "properties": {
          "email_address": {
            "description": "The email address to send the transaction slip to", 
            "format": "email", 
            "type": "string"
          }, 
          "order_id": {
            "description": "The ID of the order created during checkout, used to retrieve rentals for transaction slip", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "email_address", 
          "order_id"
        ], 
        "type": "object"
      }, 
      "MTTCheckoutTransactionSlipResponse": {
        "properties": {
          "email_sent": {
            "description": "Indicates whether the email was sent successfully", 
            "type": "boolean"
          }
        }, 
        "type": "object"
      }, 
      "MTTCompanyMttSettingsSummaryResponse": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "mtt_company_setting_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTCompanySettingCreate": {
        "properties": {
          "active": {
            "default": true, 
            "type": "boolean"
          }, 
          "billing_method_id": {
            "default": 4, 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "manual_po_entry_enabled": {
            "default": false, 
            "type": "boolean"
          }, 
          "market_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "parent_company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "parent_poc_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "primary_salesperson_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "secondary_salesperson_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "required": [
          "company_id", 
          "location_id", 
          "market_id", 
          "primary_salesperson_user_id", 
          "purchase_order_id"
        ], 
        "type": "object"
      }, 
      "MTTCompanySettingResponse": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTCompanySummaryResponse"
              }
            ], 
            "nullable": true
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "created_by": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTLocationResponse"
              }
            ], 
            "nullable": true
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTMarketResponse"
              }
            ], 
            "nullable": true
          }, 
          "market_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "mtt_company_setting_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "parent_company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTParentCompanyResponse"
              }
            ], 
            "nullable": true
          }, 
          "parent_company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "parent_poc": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTParentPocResponse"
              }
            ], 
            "nullable": true
          }, 
          "parent_poc_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "purchase_order": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTPurchaseOrderResponse"
              }
            ], 
            "nullable": true
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/MTTSalespersonResponse"
            }, 
            "type": "array"
          }, 
          "updated_by": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTCompanySettingUpdate": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "manual_po_entry_enabled": {
            "type": "boolean"
          }, 
          "parent_company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "parent_poc_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "primary_salesperson_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "secondary_salesperson_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTCompanySummaryResponse": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "mtt_settings": {
            "items": {
              "$ref": "#/components/schemas/MTTCompanyMttSettingsSummaryResponse"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "MTTLocationResponse": {
        "properties": {
          "city": {
            "nullable": true, 
            "type": "string"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "nickname": {
            "nullable": true, 
            "type": "string"
          }, 
          "street_1": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "MTTMarketResponse": {
        "properties": {
          "market_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "MTTParentCompanyResponse": {
        "properties": {
          "parent_company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "parent_company_name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "MTTParentPocResponse": {
        "properties": {
          "parent_poc_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "parent_poc_name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "MTTPurchaseOrderResponse": {
        "properties": {
          "active": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTReturnTransactionSlipRequest": {
        "properties": {
          "email_address": {
            "description": "The email address to send the transaction slip to", 
            "format": "email", 
            "type": "string"
          }, 
          "rental_ids": {
            "description": "Array of rental IDs to include in the return transaction slip", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "minItems": 1, 
            "type": "array"
          }
        }, 
        "required": [
          "email_address", 
          "rental_ids"
        ], 
        "type": "object"
      }, 
      "MTTReturnTransactionSlipResponse": {
        "properties": {
          "email_sent": {
            "description": "Indicates whether the email was sent successfully", 
            "type": "boolean"
          }
        }, 
        "type": "object"
      }, 
      "MTTSalespersonResponse": {
        "properties": {
          "mtt_salesperson_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salesperson_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTSalespersonUserResponse"
              }
            ], 
            "nullable": true
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTSalespersonUserResponse": {
        "properties": {
          "email_address": {
            "format": "email", 
            "nullable": true, 
            "type": "string"
          }, 
          "employee_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTTrailerWorkerCreate": {
        "properties": {
          "active": {
            "default": true, 
            "type": "boolean"
          }, 
          "allowed_to_rent": {
            "default": true, 
            "type": "boolean"
          }, 
          "company_division_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "craft_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "market_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "supervisor_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_shift_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "market_id", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "MTTTrailerWorkerResponse": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "allowed_to_rent": {
            "type": "boolean"
          }, 
          "created_by": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTMarketResponse"
              }
            ], 
            "nullable": true
          }, 
          "market_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "mtt_trailer_worker_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTPurchaseOrderResponse"
              }
            ], 
            "nullable": true
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "updated_by": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTTrailerWorkerUserResponse"
              }
            ], 
            "nullable": true
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTTrailerWorkerUpdate": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "allowed_to_rent": {
            "type": "boolean"
          }, 
          "company_division_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "craft_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "employee_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "supervisor_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "user_shift_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "MTTTrailerWorkerUserResponse": {
        "properties": {
          "company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MTTCompanySummaryResponse"
              }
            ], 
            "nullable": true
          }, 
          "company_division_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CompanyDivisionTypeResponse"
              }
            ], 
            "nullable": true
          }, 
          "craft_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CraftTypeResponse"
              }
            ], 
            "nullable": true
          }, 
          "email_address": {
            "format": "email", 
            "nullable": true, 
            "type": "string"
          }, 
          "employee_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "supervisor": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SupervisorResponse"
              }
            ], 
            "nullable": true
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user_shift_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UserShiftTypeResponse"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "Manufacturer": {
        "properties": {
          "company_id": {
            "description": "Company ID of manufacturer", 
            "format": "int32", 
            "type": "integer"
          }, 
          "id": {
            "description": "Manufacturer ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "description": "Manufacturer name", 
            "type": "string"
          }, 
          "sku_field": {
            "description": "SKU field", 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "MotionTelemetry": {
        "properties": {
          "heading": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "slope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SlopeTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "speed_gps": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "speed_vbus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "NetTerm": {
        "properties": {
          "days": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "net_term_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "net_term_id"
        ], 
        "type": "object"
      }, 
      "ObdDtcCode": {
        "properties": {
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "manufacturer": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "Order": {
        "properties": {
          "accepted_by": {
            "type": "string"
          }, 
          "accepted_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "application_source_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "application_source_ref": {
            "type": "string"
          }, 
          "application_source_ref_id": {
            "type": "string"
          }, 
          "approver_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_provider_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "branch": {
            "$ref": "#/components/schemas/Branch"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "contracts": {
            "$ref": "#/components/schemas/Contract"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "crm_enabled": {
            "type": "boolean"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "insurance_covers_rental": {
            "type": "boolean"
          }, 
          "insurance_policy_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/Invoice"
            }, 
            "type": "array"
          }, 
          "job": {
            "$ref": "#/components/schemas/Job"
          }, 
          "location": {
            "$ref": "#/components/schemas/Location"
          }, 
          "notes": {
            "items": {
              "$ref": "#/components/schemas/OrderNote"
            }, 
            "type": "array"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_invoice_memo": {
            "type": "string"
          }, 
          "order_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "primary_salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "project_type": {
            "type": "string"
          }, 
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrder"
          }, 
          "reference": {
            "type": "string"
          }, 
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/Rental2"
            }, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/SaleItem"
            }, 
            "type": "array"
          }, 
          "salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "salesperson_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderSalesperson"
            }, 
            "type": "array"
          }, 
          "scope_of_work": {
            "nullable": true, 
            "type": "string"
          }, 
          "supplier_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "universal_contact": {
            "$ref": "#/components/schemas/UniversalContact1"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "company_id", 
          "date_created", 
          "delivery_required", 
          "order_status_id", 
          "user"
        ], 
        "type": "object"
      }, 
      "Order1": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrderUser"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "OrderAuditHistoryEventType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "order_audit_event_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "order_audit_event_type_id"
        ], 
        "type": "object"
      }, 
      "OrderAuditHistoryRecord": {
        "properties": {
          "message": {
            "nullable": true, 
            "type": "string"
          }, 
          "order_audit_event_type": {
            "$ref": "#/components/schemas/OrderAuditHistoryEventType"
          }, 
          "order_audit_history_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_audit_ref_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrderAuditHistoryRefType"
              }
            ], 
            "nullable": true
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ref_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "time_stamp": {
            "format": "date-time", 
            "type": "string"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrderAuditHistoryUser"
              }
            ], 
            "nullable": true
          }
        }, 
        "required": [
          "order_audit_event_type", 
          "order_audit_history_id", 
          "order_id", 
          "time_stamp"
        ], 
        "type": "object"
      }, 
      "OrderAuditHistoryRefType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "order_audit_ref_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "order_audit_ref_type_id"
        ], 
        "type": "object"
      }, 
      "OrderAuditHistoryResponse": {
        "properties": {
          "page": {
            "format": "int32", 
            "type": "integer"
          }, 
          "records": {
            "items": {
              "$ref": "#/components/schemas/OrderAuditHistoryRecord"
            }, 
            "type": "array"
          }, 
          "size": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "page", 
          "records", 
          "size", 
          "total"
        ], 
        "type": "object"
      }, 
      "OrderAuditHistoryUser": {
        "properties": {
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "user_id"
        ], 
        "type": "object"
      }, 
      "OrderCreateRequest": {
        "properties": {
          "accepted_by": {
            "nullable": true, 
            "type": "string"
          }, 
          "accepted_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "application_source_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "application_source_ref": {
            "nullable": true, 
            "type": "string"
          }, 
          "application_source_ref_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "approver_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_provider_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "branch_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "crm_contact_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "crm_entity_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "external_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "job_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "notes": {
            "items": {
              "$ref": "#/components/schemas/OrderNote"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "order_invoice_memo": {
            "nullable": true, 
            "type": "string"
          }, 
          "order_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "payment_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "payment_method_preference_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "project_type": {
            "nullable": true, 
            "type": "string"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "reference": {
            "nullable": true, 
            "type": "string"
          }, 
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/OrderCreateRequestSchemaRentalInput"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/OrderCreateRequestSchemaSalesItemInput"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderCreateRequestSchemaSalespersonInput"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "scope_of_work": {
            "nullable": true, 
            "type": "string"
          }, 
          "sub_renter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OrderCreateRequestSchemaSubRenterInput"
              }
            ], 
            "nullable": true
          }, 
          "supplier_company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "transports": {
            "items": {
              "$ref": "#/components/schemas/OrderCreateRequestSchemaTransportInput"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "supplier_company_id", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "OrderCreateRequestSchemaRentalInput": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "delivery_charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "delivery_instructions": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_note": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_scheduled_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "drop_off_delivery_required": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "equipment_class_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "external_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "is_flat_monthly_rate": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "is_flexible_rate": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "job_description": {
            "nullable": true, 
            "type": "string"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "off_rent_date_requested": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "one_time_charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "part_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "poc_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "poc_phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "price_per_day": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "price_per_hour": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "price_per_month": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "price_per_week": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "purchase_price": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rate_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_notes": {
            "items": {
              "$ref": "#/components/schemas/OrderCreateRequestSchemaRentalNoteInput"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "rental_protection_plan_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_purchase_option_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_status": {
            "nullable": true
          }, 
          "rental_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "return_charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "return_delivery_required": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "shift_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "taxable": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "user_can_submit_sub_floor_rates": {
            "nullable": true, 
            "type": "boolean"
          }
        }, 
        "required": [
          "end_date", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "OrderCreateRequestSchemaRentalNoteInput": {
        "properties": {
          "content": {
            "nullable": true, 
            "type": "string"
          }, 
          "rental_note_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "OrderCreateRequestSchemaSalesItemInput": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_notes": {
            "description": "List of sale item notes to be created with the sale item", 
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SaleItemNoteCreateRequest"
                }
              ], 
              "description": "List of sale item notes to be created with the sale item"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }
        }, 
        "required": [
          "description", 
          "due_date", 
          "facilitator_type_id", 
          "line_item_type_id", 
          "line_number", 
          "location_id", 
          "ordered_quantity", 
          "unit_price"
        ], 
        "type": "object"
      }, 
      "OrderCreateRequestSchemaSalespersonInput": {
        "properties": {
          "role": {}, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "role", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "OrderCreateRequestSchemaSubRenterInput": {
        "properties": {
          "sub_renter_company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_ordered_by_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "required": [
          "sub_renter_company_id", 
          "sub_renter_ordered_by_id"
        ], 
        "type": "object"
      }, 
      "OrderCreateRequestSchemaTransportInput": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "contact_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "contact_phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "note": {
            "nullable": true, 
            "type": "string"
          }, 
          "origin_location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "scheduled_date": {
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "asset_id", 
          "location_id", 
          "scheduled_date"
        ], 
        "type": "object"
      }, 
      "OrderCreateResponse": {
        "properties": {
          "accepted_by": {
            "type": "string"
          }, 
          "accepted_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "application_source_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "application_source_ref": {
            "type": "string"
          }, 
          "application_source_ref_id": {
            "type": "string"
          }, 
          "approver_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_provider_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "branch": {
            "$ref": "#/components/schemas/Branch"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "contracts": {
            "$ref": "#/components/schemas/Contract"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "crm_enabled": {
            "type": "boolean"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "deliveries": {
            "items": {
              "$ref": "#/components/schemas/Delivery1"
            }, 
            "type": "array"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "insurance_covers_rental": {
            "type": "boolean"
          }, 
          "insurance_policy_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/Invoice1"
            }, 
            "type": "array"
          }, 
          "job": {
            "$ref": "#/components/schemas/Job"
          }, 
          "location": {
            "$ref": "#/components/schemas/Location"
          }, 
          "notes": {
            "items": {
              "$ref": "#/components/schemas/OrderNote"
            }, 
            "type": "array"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_invoice_memo": {
            "type": "string"
          }, 
          "order_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "payment_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "payment_method_preference_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "primary_salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "project_type": {
            "type": "string"
          }, 
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrder"
          }, 
          "reference": {
            "type": "string"
          }, 
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/Rental2"
            }, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/SaleItem1"
            }, 
            "type": "array"
          }, 
          "salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "salesperson_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderSalesperson"
            }, 
            "type": "array"
          }, 
          "scope_of_work": {
            "nullable": true, 
            "type": "string"
          }, 
          "sub_renter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubRenter"
              }
            ], 
            "nullable": true
          }, 
          "supplier_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "universal_contact": {
            "$ref": "#/components/schemas/UniversalContact1"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "company_id", 
          "date_created", 
          "delivery_required", 
          "order_status_id", 
          "user"
        ], 
        "type": "object"
      }, 
      "OrderGetResponse": {
        "properties": {
          "accepted_by": {
            "type": "string"
          }, 
          "accepted_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "application_source_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "application_source_ref": {
            "type": "string"
          }, 
          "application_source_ref_id": {
            "type": "string"
          }, 
          "approver_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_provider_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "branch": {
            "$ref": "#/components/schemas/Branch"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "contracts": {
            "$ref": "#/components/schemas/Contract"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "crm_enabled": {
            "type": "boolean"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "insurance_covers_rental": {
            "type": "boolean"
          }, 
          "insurance_policy_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/Invoice1"
            }, 
            "type": "array"
          }, 
          "job": {
            "$ref": "#/components/schemas/Job"
          }, 
          "location": {
            "$ref": "#/components/schemas/Location"
          }, 
          "notes": {
            "items": {
              "$ref": "#/components/schemas/OrderNote"
            }, 
            "type": "array"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_invoice_memo": {
            "type": "string"
          }, 
          "order_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "primary_salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "project_type": {
            "type": "string"
          }, 
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrder"
          }, 
          "reference": {
            "type": "string"
          }, 
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/Rental2"
            }, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/SaleItem1"
            }, 
            "type": "array"
          }, 
          "salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "salesperson_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderSalesperson"
            }, 
            "type": "array"
          }, 
          "scope_of_work": {
            "nullable": true, 
            "type": "string"
          }, 
          "sub_renter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubRenter"
              }
            ], 
            "nullable": true
          }, 
          "supplier_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "universal_contact": {
            "$ref": "#/components/schemas/UniversalContact1"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "company_id", 
          "date_created", 
          "delivery_required", 
          "order_status_id", 
          "user"
        ], 
        "type": "object"
      }, 
      "OrderLinkCountsItem": {
        "properties": {
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_order_count": {
            "format": "int32", 
            "type": "integer"
          }, 
          "purchase_orders": {
            "items": {
              "$ref": "#/components/schemas/LinkedPurchaseOrder"
            }, 
            "type": "array"
          }, 
          "sales_order_count": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sales_orders": {
            "items": {
              "$ref": "#/components/schemas/LinkedSalesOrder"
            }, 
            "type": "array"
          }, 
          "work_order_count": {
            "format": "int32", 
            "type": "integer"
          }, 
          "work_orders": {
            "items": {
              "$ref": "#/components/schemas/LinkedWorkOrder"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "order_id", 
          "purchase_order_count", 
          "purchase_orders", 
          "sales_order_count", 
          "sales_orders", 
          "work_order_count", 
          "work_orders"
        ], 
        "type": "object"
      }, 
      "OrderLinkCountsRequest": {
        "properties": {
          "order_ids": {
            "description": "Order ids to fetch link counts for. A page of the Orders grid is 100 rows; the cap of 200 leaves headroom without allowing an unbounded query.", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "maxItems": 200, 
            "minItems": 1, 
            "type": "array"
          }
        }, 
        "required": [
          "order_ids"
        ], 
        "type": "object"
      }, 
      "OrderLinkCountsResponse": {
        "properties": {
          "orders": {
            "items": {
              "$ref": "#/components/schemas/OrderLinkCountsItem"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "orders"
        ], 
        "type": "object"
      }, 
      "OrderLinkCreateRequest": {
        "properties": {
          "linked_entity_ids": {
            "description": "Ids of the records to link. Integer ids for sales orders and work orders; a UUID for a CostCapture purchase order.", 
            "items": {
              "type": "string"
            }, 
            "minItems": 1, 
            "type": "array"
          }, 
          "order_link_type_id": {
            "description": "Link type: 1 = sales order, 2 = work order, 3 = purchase order.", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "linked_entity_ids", 
          "order_link_type_id"
        ], 
        "type": "object"
      }, 
      "OrderLinksResponse": {
        "properties": {
          "purchase_orders": {
            "items": {
              "$ref": "#/components/schemas/LinkedPurchaseOrder"
            }, 
            "type": "array"
          }, 
          "sales_orders": {
            "items": {
              "$ref": "#/components/schemas/LinkedSalesOrder"
            }, 
            "type": "array"
          }, 
          "work_orders": {
            "items": {
              "$ref": "#/components/schemas/LinkedWorkOrder"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "purchase_orders", 
          "sales_orders", 
          "work_orders"
        ], 
        "type": "object"
      }, 
      "OrderNote": {
        "properties": {
          "content": {
            "type": "string"
          }, 
          "created_by_user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "content", 
          "created_by_user_id"
        ], 
        "type": "object"
      }, 
      "OrderNotificationBulkReadResponse": {
        "properties": {
          "updated_count": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "OrderNotificationCountResponse": {
        "properties": {
          "count": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "OrderNotificationItem": {
        "properties": {
          "action": {
            "type": "string"
          }, 
          "additional_data": {
            "readOnly": true
          }, 
          "created_at": {
            "readOnly": true
          }, 
          "message": {
            "type": "string"
          }, 
          "order_notification_history_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "read": {
            "type": "boolean"
          }, 
          "title": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "OrderNotificationListResponse": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/OrderNotificationItem"
            }, 
            "type": "array"
          }, 
          "page": {
            "format": "int32", 
            "minimum": 1, 
            "type": "integer"
          }, 
          "page_size": {
            "format": "int32", 
            "maximum": 100, 
            "minimum": 1, 
            "type": "integer"
          }, 
          "total": {
            "format": "int32", 
            "minimum": 0, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "OrderSalesperson": {
        "properties": {
          "commission": {
            "format": "float", 
            "type": "number"
          }, 
          "order_salesperson_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salesperson_type": {
            "$ref": "#/components/schemas/OrderSalespersonType"
          }, 
          "user": {
            "$ref": "#/components/schemas/User1"
          }
        }, 
        "required": [
          "order_salesperson_id", 
          "salesperson_type", 
          "user"
        ], 
        "type": "object"
      }, 
      "OrderSalespersonType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "salesperson_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "salesperson_type_id"
        ], 
        "type": "object"
      }, 
      "OrderSearchSalesPerson": {
        "properties": {
          "order_salesperson_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salesperson_type": {
            "$ref": "#/components/schemas/OrdersSearchSalesPersonType"
          }, 
          "user": {
            "$ref": "#/components/schemas/OrdersSearchUser"
          }
        }, 
        "required": [
          "order_salesperson_id", 
          "salesperson_type", 
          "user"
        ], 
        "type": "object"
      }, 
      "OrderUpdateRequest": {
        "properties": {
          "accepted_by": {
            "nullable": true, 
            "type": "string"
          }, 
          "accepted_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "approver_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "branch_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "job_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_invoice_memo": {
            "nullable": true, 
            "type": "string"
          }, 
          "order_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "project_type": {
            "nullable": true, 
            "type": "string"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderCreateRequestSchemaSalespersonInput"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "scope_of_work": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "OrderUpdateResponse": {
        "properties": {
          "accepted_by": {
            "type": "string"
          }, 
          "accepted_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "application_source_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "application_source_ref": {
            "type": "string"
          }, 
          "application_source_ref_id": {
            "type": "string"
          }, 
          "approver_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "billing_provider_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "branch": {
            "$ref": "#/components/schemas/Branch"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "contracts": {
            "$ref": "#/components/schemas/Contract"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "crm_enabled": {
            "type": "boolean"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "insurance_covers_rental": {
            "type": "boolean"
          }, 
          "insurance_policy_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "invoices": {
            "items": {
              "$ref": "#/components/schemas/Invoice1"
            }, 
            "type": "array"
          }, 
          "job": {
            "$ref": "#/components/schemas/Job"
          }, 
          "location": {
            "$ref": "#/components/schemas/Location"
          }, 
          "notes": {
            "items": {
              "$ref": "#/components/schemas/OrderNote"
            }, 
            "type": "array"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_invoice_memo": {
            "type": "string"
          }, 
          "order_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "primary_salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "project_type": {
            "type": "string"
          }, 
          "purchase_order": {
            "$ref": "#/components/schemas/PurchaseOrder"
          }, 
          "reference": {
            "type": "string"
          }, 
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/Rental2"
            }, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/SaleItem1"
            }, 
            "type": "array"
          }, 
          "salesperson": {
            "$ref": "#/components/schemas/User"
          }, 
          "salesperson_user_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderSalesperson"
            }, 
            "type": "array"
          }, 
          "scope_of_work": {
            "nullable": true, 
            "type": "string"
          }, 
          "sub_renter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SubRenter"
              }
            ], 
            "nullable": true
          }, 
          "supplier_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "universal_contact": {
            "$ref": "#/components/schemas/UniversalContact1"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "company_id", 
          "date_created", 
          "delivery_required", 
          "order_status_id", 
          "user"
        ], 
        "type": "object"
      }, 
      "OrderUser": {
        "properties": {
          "company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Company1"
              }
            ], 
            "nullable": true
          }, 
          "first_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "last_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "OrdersSearch": {
        "properties": {
          "branch": {
            "$ref": "#/components/schemas/OrdersSearchBranch"
          }, 
          "company": {
            "$ref": "#/components/schemas/OrdersSearchCompany"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_by": {
            "$ref": "#/components/schemas/OrdersSearchUser"
          }, 
          "rentals": {
            "items": {
              "$ref": "#/components/schemas/OrdersSearchRental"
            }, 
            "type": "array"
          }, 
          "sale_items": {
            "items": {
              "$ref": "#/components/schemas/OrdersSearchSaleItem"
            }, 
            "type": "array"
          }, 
          "salespersons": {
            "items": {
              "$ref": "#/components/schemas/OrderSearchSalesPerson"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "branch", 
          "company", 
          "date_created", 
          "order_id", 
          "ordered_by"
        ], 
        "type": "object"
      }, 
      "OrdersSearchBranch": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "branch_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "OrdersSearchCompany": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "company_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "OrdersSearchLineItemType": {
        "properties": {
          "line_item_product_type": {
            "$ref": "#/components/schemas/OrdersSearchLineItemTypeProduct"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "line_item_product_type", 
          "line_item_type_id"
        ], 
        "type": "object"
      }, 
      "OrdersSearchLineItemTypeProduct": {
        "properties": {
          "line_item_product_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "line_item_product_type_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "OrdersSearchRental": {
        "properties": {
          "equipment_class": {
            "$ref": "#/components/schemas/OrdersSearchRentalEquipmentClass"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_status": {
            "$ref": "#/components/schemas/OrdersSearchRentalStatus"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "equipment_class", 
          "rental_id", 
          "rental_status", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "OrdersSearchRentalEquipmentClass": {
        "properties": {
          "equipment_class_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "required": [
          "equipment_class_id", 
          "name"
        ], 
        "type": "object"
      }, 
      "OrdersSearchRentalStatus": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "rental_status_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "rental_status_id"
        ], 
        "type": "object"
      }, 
      "OrdersSearchResponse": {
        "properties": {
          "orders": {
            "items": {
              "$ref": "#/components/schemas/OrdersSearch"
            }, 
            "type": "array"
          }, 
          "page": {
            "format": "int32", 
            "type": "integer"
          }, 
          "size": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "orders", 
          "page", 
          "size", 
          "total"
        ], 
        "type": "object"
      }, 
      "OrdersSearchSaleItem": {
        "properties": {
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/OrdersSearchLineItemType"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/OrdersSearchSaleItemFulfillment"
            }, 
            "type": "array"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status": {
            "$ref": "#/components/schemas/OrdersSearchSaleItemStatus"
          }
        }, 
        "required": [
          "description", 
          "due_date", 
          "line_item_type", 
          "part_id", 
          "sale_item_id", 
          "sale_items_status"
        ], 
        "type": "object"
      }, 
      "OrdersSearchSaleItemFulfillment": {
        "properties": {
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "quantity", 
          "sale_item_fulfillment_id", 
          "sale_item_id", 
          "sale_items_status_id"
        ], 
        "type": "object"
      }, 
      "OrdersSearchSaleItemStatus": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "sale_items_status_id"
        ], 
        "type": "object"
      }, 
      "OrdersSearchSalesPersonType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "salesperson_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "salesperson_type_id"
        ], 
        "type": "object"
      }, 
      "OrdersSearchUser": {
        "properties": {
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "first_name", 
          "last_name", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "OverdueContext": {
        "properties": {
          "due_dates": {
            "additionalProperties": {
              "format": "date-time", 
              "nullable": true, 
              "type": "string"
            }, 
            "type": "object"
          }, 
          "overdue_task_types": {
            "items": {
              "type": "string"
            }, 
            "type": "array"
          }, 
          "run": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverdueRunBase"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "OverdueLocation": {
        "properties": {
          "address": {
            "nullable": true, 
            "type": "string"
          }, 
          "city": {
            "nullable": true, 
            "type": "string"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverdueLocationState"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "OverdueLocationState": {
        "properties": {
          "abbreviation": {
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "OverdueRunBase": {
        "properties": {
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "driver_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "end_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "est_distance_miles": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "est_total_time": {
            "nullable": true, 
            "type": "string"
          }, 
          "run_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "run_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "run_planned_time": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "run_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "start_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "trailer_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vehicle_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "Pagination": {
        "properties": {
          "has_more_items": {
            "type": "boolean"
          }, 
          "object_count": {
            "format": "int32", 
            "type": "integer"
          }, 
          "page_count": {
            "format": "int32", 
            "type": "integer"
          }, 
          "page_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "page_size": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "Photo": {
        "properties": {
          "file_problem": {
            "type": "boolean"
          }, 
          "filename": {
            "type": "string"
          }, 
          "large": {
            "type": "boolean"
          }, 
          "medium": {
            "type": "boolean"
          }, 
          "original_metadata": {}, 
          "photo_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "small": {
            "type": "boolean"
          }, 
          "thumbnail": {
            "type": "boolean"
          }, 
          "uploading_user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "file_problem", 
          "filename", 
          "large", 
          "medium", 
          "photo_id", 
          "small", 
          "thumbnail", 
          "uploading_user"
        ], 
        "type": "object"
      }, 
      "Photo1": {
        "properties": {
          "filename": {
            "nullable": true, 
            "type": "string"
          }, 
          "photo_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "PimMakeSyncItem": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "event_type": {}, 
          "pim_make_id": {
            "type": "string"
          }, 
          "pim_make_name": {
            "type": "string"
          }, 
          "replaced_by_platform_id": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "company_id", 
          "event_type", 
          "pim_make_id", 
          "pim_make_name"
        ], 
        "type": "object"
      }, 
      "PimMakeSyncRequest": {
        "properties": {
          "dry_run": {
            "default": false, 
            "type": "boolean"
          }, 
          "makes": {
            "items": {
              "$ref": "#/components/schemas/PimMakeSyncItem"
            }, 
            "maxItems": 100, 
            "minItems": 1, 
            "type": "array"
          }
        }, 
        "required": [
          "makes"
        ], 
        "type": "object"
      }, 
      "PimModelSyncItem": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "event_type": {}, 
          "pim_make_id": {
            "type": "string"
          }, 
          "pim_make_name": {
            "type": "string"
          }, 
          "pim_product_id": {
            "type": "string"
          }, 
          "pim_product_model": {
            "type": "string"
          }, 
          "replaced_by_platform_id": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "company_id", 
          "event_type", 
          "pim_make_id", 
          "pim_make_name", 
          "pim_product_id", 
          "pim_product_model"
        ], 
        "type": "object"
      }, 
      "PimModelSyncRequest": {
        "properties": {
          "dry_run": {
            "default": false, 
            "type": "boolean"
          }, 
          "products": {
            "items": {
              "$ref": "#/components/schemas/PimModelSyncItem"
            }, 
            "maxItems": 100, 
            "minItems": 1, 
            "type": "array"
          }
        }, 
        "required": [
          "products"
        ], 
        "type": "object"
      }, 
      "PimResetMakesResponse": {
        "properties": {
          "deleted_makes": {
            "items": {
              "$ref": "#/components/schemas/DeletedEquipmentMake"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "PimResetModelsResponse": {
        "properties": {
          "deleted_models": {
            "items": {
              "$ref": "#/components/schemas/DeletedEquipmentModel"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "Price": {
        "properties": {
          "amount": {
            "format": "float", 
            "type": "number"
          }, 
          "currency_code": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "PumpTelemetry": {
        "properties": {
          "discharge_pressure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "suction_pressure": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "PurchaseOrder": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "budget_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "currency": {
            "type": "string"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "universal_entity": {
            "$ref": "#/components/schemas/UniversalEntity1"
          }
        }, 
        "required": [
          "date_created", 
          "purchase_order_id", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "PurchaseOrder1": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "budget_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "currency": {
            "type": "string"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "orders": {
            "items": {
              "$ref": "#/components/schemas/Order"
            }, 
            "type": "array"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "universal_entity": {
            "$ref": "#/components/schemas/UniversalEntity1"
          }
        }, 
        "required": [
          "date_created", 
          "purchase_order_id", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "PurchaseOrder2": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "budget_amount": {
            "format": "float", 
            "type": "number"
          }, 
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "currency": {
            "type": "string"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "orders": {
            "items": {
              "$ref": "#/components/schemas/Order"
            }, 
            "type": "array"
          }, 
          "purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "date_created", 
          "purchase_order_id", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "RateType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "rate_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "rate_type_id"
        ], 
        "type": "object"
      }, 
      "ReassignedRentalResponse": {
        "properties": {
          "new_rental_id": {
            "description": "The ID of the new rental created as part of the reassignment.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "old_rental_id": {
            "description": "The ID of the rental that was reassigned.", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "new_rental_id", 
          "old_rental_id"
        ], 
        "type": "object"
      }, 
      "RecalculateRequest": {
        "properties": {
          "branch_id": {
            "description": "Branch (market) ID \u2014 only process deliveries on this branch", 
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_ids": {
            "description": "Explicit list of delivery IDs to recalculate \u2014 narrows date/branch filters but still applies the requested-status filter", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "end_date": {
            "description": "End of scheduled date range to process (inclusive, ISO date string)", 
            "format": "date", 
            "type": "string"
          }, 
          "start_date": {
            "description": "Start of scheduled date range to process (inclusive, ISO date string)", 
            "format": "date", 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "Rental": {
        "properties": {
          "amount_received": {
            "format": "float", 
            "type": "number"
          }, 
          "asset": {
            "$ref": "#/components/schemas/Asset"
          }, 
          "borrower": {
            "$ref": "#/components/schemas/User"
          }, 
          "cancel_reason_note": {
            "type": "string"
          }, 
          "cancel_reason_type": {}, 
          "charges": {
            "items": {
              "$ref": "#/components/schemas/RentalCharge"
            }, 
            "type": "array"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "drop_off_delivery": {
            "$ref": "#/components/schemas/Delivery"
          }, 
          "drop_off_delivery_required": {
            "type": "boolean"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date_estimated": {
            "type": "boolean"
          }, 
          "equipment_class": {
            "$ref": "#/components/schemas/EquipmentClass"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "has_re_rent": {
            "type": "boolean"
          }, 
          "inventory_product_name_historical": {
            "type": "string"
          }, 
          "is_below_floor_rate": {
            "type": "boolean"
          }, 
          "is_flat_monthly_rate": {
            "type": "boolean"
          }, 
          "is_flexible_rate": {
            "type": "boolean"
          }, 
          "job_description": {
            "type": "string"
          }, 
          "lien_notice_sent": {
            "type": "boolean"
          }, 
          "mileage_plan": {
            "type": "string"
          }, 
          "off_rent_date_time": {
            "format": "date-time", 
            "type": "string"
          }, 
          "one_time_charge": {
            "format": "float", 
            "type": "number"
          }, 
          "order": {
            "$ref": "#/components/schemas/Order"
          }, 
          "price": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_day": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_hour": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_month": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_week": {
            "format": "float", 
            "type": "number"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rate_type": {
            "$ref": "#/components/schemas/RateType"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_notes": {
            "items": {
              "$ref": "#/components/schemas/RentalNote"
            }, 
            "type": "array"
          }, 
          "rental_pricing_structure": {
            "$ref": "#/components/schemas/RentalPricingStructure"
          }, 
          "rental_protection_plan": {
            "$ref": "#/components/schemas/RentalProtectionPlan"
          }, 
          "rental_purchase_option": {
            "$ref": "#/components/schemas/RentalPurchaseOption"
          }, 
          "rental_shift": {
            "$ref": "#/components/schemas/RentalShift"
          }, 
          "rental_status": {
            "$ref": "#/components/schemas/RentalStatus"
          }, 
          "rental_type": {
            "$ref": "#/components/schemas/RentalType"
          }, 
          "return_delivery": {
            "$ref": "#/components/schemas/Delivery"
          }, 
          "return_delivery_required": {
            "type": "boolean"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "start_date_estimated": {
            "type": "boolean"
          }, 
          "taxable": {
            "type": "boolean"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "one_time_charge", 
          "price_per_day", 
          "price_per_hour", 
          "price_per_month", 
          "price_per_week", 
          "rental_id", 
          "rental_status"
        ], 
        "type": "object"
      }, 
      "Rental1": {
        "properties": {
          "amount_received": {
            "format": "float", 
            "type": "number"
          }, 
          "asset": {
            "$ref": "#/components/schemas/Asset"
          }, 
          "borrower": {
            "$ref": "#/components/schemas/User"
          }, 
          "cancel_reason_note": {
            "type": "string"
          }, 
          "cancel_reason_type": {}, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "drop_off_delivery": {
            "$ref": "#/components/schemas/Delivery"
          }, 
          "drop_off_delivery_required": {
            "type": "boolean"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date_estimated": {
            "type": "boolean"
          }, 
          "equipment_class": {
            "$ref": "#/components/schemas/EquipmentClass"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "has_re_rent": {
            "type": "boolean"
          }, 
          "inventory_product_name_historical": {
            "type": "string"
          }, 
          "is_below_floor_rate": {
            "type": "boolean"
          }, 
          "is_flat_monthly_rate": {
            "type": "boolean"
          }, 
          "is_flexible_rate": {
            "type": "boolean"
          }, 
          "job_description": {
            "type": "string"
          }, 
          "lien_notice_sent": {
            "type": "boolean"
          }, 
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/LineItem1"
            }, 
            "type": "array"
          }, 
          "mileage_plan": {
            "type": "string"
          }, 
          "off_rent_date_time": {
            "format": "date-time", 
            "type": "string"
          }, 
          "one_time_charge": {
            "format": "float", 
            "type": "number"
          }, 
          "order": {
            "$ref": "#/components/schemas/Order"
          }, 
          "price": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_day": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_hour": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_month": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_week": {
            "format": "float", 
            "type": "number"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rate_type": {
            "$ref": "#/components/schemas/RateType"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_notes": {
            "items": {
              "$ref": "#/components/schemas/RentalNote"
            }, 
            "type": "array"
          }, 
          "rental_pricing_structure": {
            "$ref": "#/components/schemas/RentalPricingStructure"
          }, 
          "rental_protection_plan": {
            "$ref": "#/components/schemas/RentalProtectionPlan"
          }, 
          "rental_purchase_option": {
            "$ref": "#/components/schemas/RentalPurchaseOption"
          }, 
          "rental_shift": {
            "$ref": "#/components/schemas/RentalShift"
          }, 
          "rental_status": {
            "$ref": "#/components/schemas/RentalStatus"
          }, 
          "rental_type": {
            "$ref": "#/components/schemas/RentalType"
          }, 
          "return_delivery": {
            "$ref": "#/components/schemas/Delivery"
          }, 
          "return_delivery_required": {
            "type": "boolean"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "start_date_estimated": {
            "type": "boolean"
          }, 
          "taxable": {
            "type": "boolean"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "one_time_charge", 
          "price_per_day", 
          "price_per_hour", 
          "price_per_month", 
          "price_per_week", 
          "rental_id", 
          "rental_status"
        ], 
        "type": "object"
      }, 
      "Rental2": {
        "properties": {
          "amount_received": {
            "format": "float", 
            "type": "number"
          }, 
          "asset": {
            "$ref": "#/components/schemas/Asset"
          }, 
          "borrower": {
            "$ref": "#/components/schemas/User"
          }, 
          "cancel_reason_note": {
            "type": "string"
          }, 
          "cancel_reason_type": {}, 
          "charges": {
            "items": {
              "$ref": "#/components/schemas/RentalCharge"
            }, 
            "type": "array"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "delivery_instructions": {
            "type": "string"
          }, 
          "delivery_required": {
            "type": "boolean"
          }, 
          "drop_off_delivery": {
            "$ref": "#/components/schemas/Delivery"
          }, 
          "drop_off_delivery_required": {
            "type": "boolean"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "end_date_estimated": {
            "type": "boolean"
          }, 
          "equipment_class": {
            "$ref": "#/components/schemas/EquipmentClass"
          }, 
          "external_id": {
            "type": "string"
          }, 
          "has_re_rent": {
            "type": "boolean"
          }, 
          "inventory_product_name_historical": {
            "type": "string"
          }, 
          "is_below_floor_rate": {
            "type": "boolean"
          }, 
          "is_flat_monthly_rate": {
            "type": "boolean"
          }, 
          "is_flexible_rate": {
            "type": "boolean"
          }, 
          "job_description": {
            "type": "string"
          }, 
          "lien_notice_sent": {
            "type": "boolean"
          }, 
          "line_items": {
            "items": {
              "$ref": "#/components/schemas/LineItem1"
            }, 
            "type": "array"
          }, 
          "mileage_plan": {
            "type": "string"
          }, 
          "off_rent_date_time": {
            "format": "date-time", 
            "type": "string"
          }, 
          "one_time_charge": {
            "format": "float", 
            "type": "number"
          }, 
          "price": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_day": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_hour": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_month": {
            "format": "float", 
            "type": "number"
          }, 
          "price_per_week": {
            "format": "float", 
            "type": "number"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rate_type": {
            "$ref": "#/components/schemas/RateType"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_notes": {
            "items": {
              "$ref": "#/components/schemas/RentalNote"
            }, 
            "type": "array"
          }, 
          "rental_pricing_structure": {
            "$ref": "#/components/schemas/RentalPricingStructure"
          }, 
          "rental_protection_plan": {
            "$ref": "#/components/schemas/RentalProtectionPlan"
          }, 
          "rental_purchase_option": {
            "$ref": "#/components/schemas/RentalPurchaseOption"
          }, 
          "rental_shift": {
            "$ref": "#/components/schemas/RentalShift"
          }, 
          "rental_status": {
            "$ref": "#/components/schemas/RentalStatus"
          }, 
          "rental_type": {
            "$ref": "#/components/schemas/RentalType"
          }, 
          "return_delivery": {
            "$ref": "#/components/schemas/Delivery"
          }, 
          "return_delivery_required": {
            "type": "boolean"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "start_date_estimated": {
            "type": "boolean"
          }, 
          "taxable": {
            "type": "boolean"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "one_time_charge", 
          "price_per_day", 
          "price_per_hour", 
          "price_per_month", 
          "price_per_week", 
          "rental_id", 
          "rental_status"
        ], 
        "type": "object"
      }, 
      "Rental3": {
        "properties": {
          "off_rent_note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RentalNote1"
              }
            ], 
            "nullable": true
          }, 
          "part_assignments": {
            "items": {
              "$ref": "#/components/schemas/RentalPartAssignment"
            }, 
            "type": "array"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "reassignment_source_rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "reassignment_target_rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "return_delivery_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RentalActivityResponse": {
        "properties": {
          "data": {
            "description": "Additional data related to the rental activity.", 
            "type": "object"
          }, 
          "date": {
            "description": "Timestamp of when the activity occurred or is expected to occur.", 
            "type": "string"
          }, 
          "rental_id": {
            "description": "ID of the rental.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "state": {
            "description": "State of the rental activity.", 
            "type": "string"
          }, 
          "type": {
            "description": "Type of the rental activity.", 
            "type": "string"
          }
        }, 
        "required": [
          "date", 
          "rental_id", 
          "state", 
          "type"
        ], 
        "type": "object"
      }, 
      "RentalBelowAccountingFloorReason": {
        "properties": {
          "name": {
            "description": "Reason text shown in the dropdown", 
            "type": "string"
          }, 
          "rental_below_accounting_floor_reason_id": {
            "description": "Reason ID", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RentalCharge": {
        "properties": {
          "amount": {
            "format": "float", 
            "type": "number"
          }, 
          "rental_charge_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "rental_charge_id"
        ], 
        "type": "object"
      }, 
      "RentalCharge1": {
        "properties": {
          "amount": {
            "format": "float", 
            "type": "number"
          }, 
          "rental": {
            "$ref": "#/components/schemas/Rental1"
          }, 
          "rental_charge_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "rental", 
          "rental_charge_id"
        ], 
        "type": "object"
      }, 
      "RentalExtendedDataResponse": {
        "properties": {
          "class_utilization_comparison": {
            "description": "Class utilization comparison description.", 
            "type": "string"
          }, 
          "class_utilization_comparison_double_shift": {
            "description": "Class utilization comparison for double shift.", 
            "type": "string"
          }, 
          "class_utilization_comparison_triple_shift": {
            "description": "Class utilization comparison for triple shift.", 
            "type": "string"
          }, 
          "company_id": {
            "description": "The company ID.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "current_asset_location": {
            "description": "Current asset location of the rental.", 
            "type": "string"
          }, 
          "five_days_utilization_cst": {
            "description": "Five days ago utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "five_days_utilization_utc": {
            "description": "Five days ago utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "four_days_utilization_cst": {
            "description": "Four days ago utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "four_days_utilization_utc": {
            "description": "Four days ago utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "is_uptime_monitoring_enrolled": {
            "description": "Whether the rental asset is enrolled in uptime monitoring.", 
            "nullable": true, 
            "type": "boolean"
          }, 
          "lat_lon": {
            "description": "Latitude and longitude coordinates.", 
            "type": "string"
          }, 
          "previous_day_utilization_cst": {
            "description": "Previous day utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "previous_day_utilization_utc": {
            "description": "Previous day utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "public_health_status": {
            "description": "Public health status of the tracker on the rental.", 
            "type": "string"
          }, 
          "rental_id": {
            "description": "The rental ID.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_location": {
            "description": "Rental location name.", 
            "type": "string"
          }, 
          "seven_days_utilization_cst": {
            "description": "Seven days ago utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "seven_days_utilization_utc": {
            "description": "Seven days ago utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "six_days_utilization_cst": {
            "description": "Six days ago utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "six_days_utilization_utc": {
            "description": "Six days ago utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "sub_renter_company_id": {
            "description": "The sub-renter company ID, if applicable.", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "three_days_utilization_cst": {
            "description": "Three days ago utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "three_days_utilization_utc": {
            "description": "Three days ago utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "two_days_utilization_cst": {
            "description": "Two days ago utilization in CST.", 
            "format": "float", 
            "type": "number"
          }, 
          "two_days_utilization_utc": {
            "description": "Two days ago utilization in UTC.", 
            "format": "float", 
            "type": "number"
          }, 
          "utilization_30_day_class_benchmark": {
            "description": "Industry average benchmark for 30-day equipment class utilization.", 
            "format": "float", 
            "type": "number"
          }, 
          "utilization_30_day_class_benchmark_double_shift": {
            "description": "Industry average benchmark for 30-day equipment class utilization for double shift.", 
            "format": "float", 
            "type": "number"
          }, 
          "utilization_30_day_class_benchmark_triple_shift": {
            "description": "Industry average benchmark for 30-day equipment class utilization for triple shift.", 
            "format": "float", 
            "type": "number"
          }
        }, 
        "required": [
          "company_id", 
          "rental_id"
        ], 
        "type": "object"
      }, 
      "RentalFloaterStatus": {
        "properties": {
          "expired_on": {
            "description": "When the most recent rental floater expired (ISO format). Null if currently valid or no floater exists.", 
            "nullable": true, 
            "type": "string"
          }, 
          "is_valid": {
            "description": "Whether the company has a valid rental floater document.", 
            "type": "boolean"
          }, 
          "valid_until": {
            "description": "When the current valid rental floater expires (ISO format). Null if no expiry or no valid floater.", 
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "is_valid"
        ], 
        "type": "object"
      }, 
      "RentalItem": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "bulk_label": {
            "nullable": true, 
            "type": "string"
          }, 
          "drop_off_delivery_required": {
            "type": "boolean"
          }, 
          "end_date": {
            "type": "string"
          }, 
          "equipment_class_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "part_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "price_per_day": {
            "nullable": true, 
            "type": "number"
          }, 
          "price_per_hour": {
            "nullable": true, 
            "type": "number"
          }, 
          "price_per_month": {
            "nullable": true, 
            "type": "number"
          }, 
          "price_per_week": {
            "nullable": true, 
            "type": "number"
          }, 
          "purchase_price": {
            "nullable": true, 
            "type": "number"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rate_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "return_delivery_required": {
            "type": "boolean"
          }, 
          "start_date": {
            "type": "string"
          }
        }, 
        "required": [
          "drop_off_delivery_required", 
          "end_date", 
          "facilitator_type_id", 
          "location_id", 
          "rental_status_id", 
          "rental_type_id", 
          "return_delivery_required", 
          "start_date"
        ], 
        "type": "object"
      }, 
      "RentalKeypadHealthResponse": {
        "properties": {
          "asset_id": {
            "description": "The asset ID associated with the rental", 
            "format": "int32", 
            "type": "integer"
          }, 
          "keypad_health": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeypadHealthData"
              }
            ], 
            "description": "Keypad health data from Snowflake. Null if no data available.", 
            "nullable": true
          }, 
          "message": {
            "description": "Optional message (e.g., when no keypad health data is available)", 
            "nullable": true, 
            "type": "string"
          }, 
          "rental_id": {
            "description": "The rental ID", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "asset_id", 
          "rental_id"
        ], 
        "type": "object"
      }, 
      "RentalMoveResponse": {
        "properties": {
          "branch_email_sent": {
            "type": "boolean"
          }, 
          "customer_email_sent": {
            "type": "boolean"
          }, 
          "move_ticket_created": {
            "type": "boolean"
          }
        }, 
        "required": [
          "branch_email_sent", 
          "customer_email_sent", 
          "move_ticket_created"
        ], 
        "type": "object"
      }, 
      "RentalNote": {
        "properties": {
          "content": {
            "type": "string"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_modified": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "rental_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_note_type": {
            "$ref": "#/components/schemas/RentalNoteType"
          }
        }, 
        "required": [
          "content", 
          "date_created", 
          "rental_note_id"
        ], 
        "type": "object"
      }, 
      "RentalNote1": {
        "properties": {
          "content": {
            "nullable": true, 
            "type": "string"
          }, 
          "rental_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_note_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RentalNoteType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "rental_note_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "rental_note_type_id"
        ], 
        "type": "object"
      }, 
      "RentalPartAssignment": {
        "properties": {
          "drop_off_delivery_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "end_date": {
            "nullable": true
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "quantity_purchased": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "quantity_returned": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_part_assignment_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "return_delivery_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "start_date": {
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "RentalPricingStructure": {
        "properties": {
          "created_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "expiry_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "percent": {
            "type": "number"
          }, 
          "rental_pricing_structure_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_protection_plan_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "created_date", 
          "name", 
          "percent", 
          "rental_pricing_structure_id", 
          "rental_protection_plan_type_id"
        ], 
        "type": "object"
      }, 
      "RentalProtectionPlan": {
        "properties": {
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_deleted": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deleted": {
            "type": "boolean"
          }, 
          "description": {
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "rental_pricing_structure": {
            "$ref": "#/components/schemas/RentalPricingStructure"
          }, 
          "rental_protection_plan_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "date_created", 
          "date_updated", 
          "name", 
          "rental_protection_plan_id"
        ], 
        "type": "object"
      }, 
      "RentalPurchaseOption": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "rental_purchase_option_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "rental_purchase_option_id"
        ], 
        "type": "object"
      }, 
      "RentalShift": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "shift_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "shift_type_id"
        ], 
        "type": "object"
      }, 
      "RentalStatus": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "rental_status_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "rental_status_id"
        ], 
        "type": "object"
      }, 
      "RentalToReassign": {
        "properties": {
          "price_per_day": {
            "description": "New daily rate.", 
            "format": "float", 
            "type": "number"
          }, 
          "price_per_hour": {
            "description": "New hourly rate.", 
            "format": "float", 
            "type": "number"
          }, 
          "price_per_month": {
            "description": "New monthly rate.", 
            "format": "float", 
            "type": "number"
          }, 
          "price_per_week": {
            "description": "New weekly rate.", 
            "format": "float", 
            "type": "number"
          }, 
          "rental_id": {
            "description": "The rental ID to reassign.", 
            "format": "int32", 
            "type": "integer"
          }, 
          "shift_type_id": {
            "description": "New shift type ID for the reassigned rental.", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "price_per_day", 
          "price_per_hour", 
          "price_per_month", 
          "price_per_week", 
          "rental_id", 
          "shift_type_id"
        ], 
        "type": "object"
      }, 
      "RentalType": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "rental_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "name", 
          "rental_type_id"
        ], 
        "type": "object"
      }, 
      "ResourceMapDescendantsResponse": {
        "properties": {
          "resource_ids": {
            "items": {
              "type": "string"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "resource_ids"
        ], 
        "type": "object"
      }, 
      "ResourceMapHierarchy": {
        "properties": {
          "id": {
            "pattern": "^[a-f0-9]{24}$", 
            "type": "string"
          }, 
          "map_type": {
            "type": "string"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "id", 
          "map_type"
        ], 
        "type": "object"
      }, 
      "ResourceMapResource": {
        "properties": {
          "active": {
            "type": "boolean"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "deleted_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "hierarchy": {
            "$ref": "#/components/schemas/ResourceMapHierarchy"
          }, 
          "metadata": {
            "nullable": true, 
            "type": "object"
          }, 
          "parent_resource_id": {
            "nullable": true, 
            "pattern": "^[a-f0-9]{24}$", 
            "type": "string"
          }, 
          "path": {
            "items": {
              "type": "string"
            }, 
            "type": "array"
          }, 
          "resource_id": {
            "pattern": "^[a-f0-9]{24}$", 
            "type": "string"
          }, 
          "source_revision": {
            "format": "int32", 
            "type": "integer"
          }, 
          "type": {
            "type": "string"
          }, 
          "value": {
            "type": "string"
          }
        }, 
        "required": [
          "active", 
          "company_id", 
          "deleted_at", 
          "hierarchy", 
          "path", 
          "resource_id", 
          "source_revision", 
          "type", 
          "value"
        ], 
        "type": "object"
      }, 
      "ResourceMapResourcesBatch": {
        "properties": {
          "resources": {
            "items": {
              "$ref": "#/components/schemas/ResourceMapResource"
            }, 
            "maxItems": 200, 
            "minItems": 1, 
            "type": "array"
          }
        }, 
        "required": [
          "resources"
        ], 
        "type": "object"
      }, 
      "ResourceMappingEntry": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "hierarchy_id": {
            "minLength": 1, 
            "type": "string"
          }, 
          "hierarchy_map_type": {
            "enum": [
              "location", 
              "org-unit", 
              "custom"
            ], 
            "type": "string"
          }, 
          "relationship_type": {
            "enum": [
              "TSP", 
              "ISP", 
              "MSP", 
              "RSP", 
              "LOCATION", 
              "ORG_UNIT", 
              "CUSTOM"
            ], 
            "type": "string"
          }, 
          "resource_id": {
            "pattern": "^[a-f0-9]{24}$", 
            "type": "string"
          }
        }, 
        "required": [
          "company_id", 
          "hierarchy_id", 
          "hierarchy_map_type", 
          "relationship_type", 
          "resource_id"
        ], 
        "type": "object"
      }, 
      "ResourceMappings": {
        "properties": {
          "resources": {
            "items": {
              "$ref": "#/components/schemas/ResourceMappingEntry"
            }, 
            "type": "array"
          }, 
          "source_as_of": {
            "format": "date-time", 
            "type": "string"
          }
        }, 
        "required": [
          "resources", 
          "source_as_of"
        ], 
        "type": "object"
      }, 
      "RunPatchRequest": {
        "properties": {
          "driver_id": {
            "description": "Driver user ID (null to unassign)", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "end_at": {
            "description": "Actual end time (ISO datetime)", 
            "format": "date-time", 
            "type": "string"
          }, 
          "est_distance_miles": {
            "description": "Estimated distance in miles", 
            "format": "float", 
            "type": "number"
          }, 
          "run_name": {
            "description": "Human-readable name for the run", 
            "type": "string"
          }, 
          "run_number": {
            "description": "Unique run identifier (must be unique)", 
            "type": "string"
          }, 
          "run_planned_time": {
            "description": "Planned time (ISO datetime)", 
            "format": "date-time", 
            "type": "string"
          }, 
          "run_status_id": {
            "description": "Run status ID", 
            "format": "int32", 
            "type": "integer"
          }, 
          "start_at": {
            "description": "Actual start time (ISO datetime)", 
            "format": "date-time", 
            "type": "string"
          }, 
          "trailer_id": {
            "description": "Trailer asset ID (null to unassign)", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vehicle_id": {
            "description": "Vehicle asset ID (null to unassign)", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunResponse": {
        "properties": {
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "driver": {
            "allOf": [
              {
                "$ref": "#/components/schemas/User"
              }
            ], 
            "nullable": true
          }, 
          "driver_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "end_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "est_distance_miles": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "est_total_time": {
            "nullable": true, 
            "type": "string"
          }, 
          "run_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "run_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "run_planned_time": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "run_status": {
            "$ref": "#/components/schemas/RunStatus"
          }, 
          "run_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_stops": {
            "items": {
              "$ref": "#/components/schemas/RunStopResponse"
            }, 
            "type": "array"
          }, 
          "start_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "trailer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Asset"
              }
            ], 
            "nullable": true
          }, 
          "trailer_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vehicle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Asset"
              }
            ], 
            "nullable": true
          }, 
          "vehicle_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStatus": {
        "properties": {
          "is_terminal": {
            "type": "boolean"
          }, 
          "name": {
            "type": "string"
          }, 
          "run_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sort_order": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStopBulkPatchItem": {
        "properties": {
          "delivery_ids": {
            "description": "Delivery IDs in desired sequence order (reorders deliveries within the stop)", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "run_id": {
            "description": "Run ID to assign this stop to (null to unassign)", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "run_stop_id": {
            "description": "ID of the run stop to update", 
            "format": "int32", 
            "type": "integer"
          }, 
          "stop_sequence": {
            "description": "New sequence number for this stop within the run", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "run_stop_id"
        ], 
        "type": "object"
      }, 
      "RunStopBulkPatchRequest": {
        "properties": {
          "run_stops": {
            "description": "Array of run stop updates to apply atomically", 
            "items": {
              "$ref": "#/components/schemas/RunStopBulkPatchItem"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "run_stops"
        ], 
        "type": "object"
      }, 
      "RunStopDeliveriesXref": {
        "properties": {
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "delivery": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeliveryBase"
              }
            ], 
            "nullable": true
          }, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_stop_deliveries_xref_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_stop_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sequence": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStopLocation": {
        "properties": {
          "city": {
            "nullable": true, 
            "type": "string"
          }, 
          "latitude": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "longitude": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "nickname": {
            "nullable": true, 
            "type": "string"
          }, 
          "state_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "street_1": {
            "nullable": true, 
            "type": "string"
          }, 
          "street_2": {
            "nullable": true, 
            "type": "string"
          }, 
          "zip_code": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStopPatchRequest": {
        "properties": {
          "delivery_ids": {
            "description": "Delivery IDs in desired sequence order (reorders deliveries within the stop)", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "run_id": {
            "description": "Run ID to assign this stop to (null to unassign)", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "stop_sequence": {
            "description": "New sequence number for this stop within the run", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStopResponse": {
        "properties": {
          "completed_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "deliveries": {
            "items": {
              "$ref": "#/components/schemas/RunStopDeliveriesXref"
            }, 
            "type": "array"
          }, 
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RunStopLocation"
              }
            ], 
            "nullable": true
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "overdue_context": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OverdueContext"
              }
            ], 
            "nullable": true
          }, 
          "run_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "run_stop_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "run_stop_status": {
            "$ref": "#/components/schemas/RunStopStatus"
          }, 
          "run_stop_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "stop_sequence": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStopStatus": {
        "properties": {
          "is_terminal": {
            "type": "boolean"
          }, 
          "name": {
            "type": "string"
          }, 
          "run_stop_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sort_order": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunStopsListPostRequest": {
        "properties": {
          "branch_id": {
            "description": "Branch/Market ID for the stop", 
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_ids": {
            "description": "List of delivery IDs to assign to this stop", 
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }, 
          "location_id": {
            "description": "Location ID for the stop", 
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "description": "Quantity per delivery (default: 1)", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "branch_id", 
          "delivery_ids", 
          "location_id"
        ], 
        "type": "object"
      }, 
      "RunStopsListResponse": {
        "properties": {
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }, 
          "run_stops": {
            "items": {
              "$ref": "#/components/schemas/RunStopResponse"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "RunsListPostRequest": {
        "properties": {
          "driver_id": {
            "description": "Assigned driver user ID", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "run_name": {
            "description": "Human-readable name for the run", 
            "type": "string"
          }, 
          "run_number": {
            "description": "Unique run identifier (auto-generated if not provided)", 
            "type": "string"
          }, 
          "run_planned_time": {
            "description": "Planned departure time (ISO datetime)", 
            "format": "date-time", 
            "type": "string"
          }, 
          "run_status_id": {
            "description": "Initial status ID (default: Planned)", 
            "format": "int32", 
            "type": "integer"
          }, 
          "trailer_id": {
            "description": "Assigned trailer asset ID", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "vehicle_id": {
            "description": "Assigned vehicle asset ID", 
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "RunsListResponse": {
        "properties": {
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }, 
          "runs": {
            "items": {
              "$ref": "#/components/schemas/RunResponse"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "SaleItem": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/LineItemType"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order": {
            "$ref": "#/components/schemas/Order"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/SaleItemFulfillment"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_notes": {
            "items": {
              "$ref": "#/components/schemas/SaleItemNote"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "line_item_type", 
          "order"
        ], 
        "type": "object"
      }, 
      "SaleItem1": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/LineItemType"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/SaleItemFulfillment"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_notes": {
            "items": {
              "$ref": "#/components/schemas/SaleItemNote"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "line_item_type"
        ], 
        "type": "object"
      }, 
      "SaleItemAvailabilityByBranchRequest": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "part_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "branch_id", 
          "part_ids"
        ], 
        "type": "object"
      }, 
      "SaleItemAvailabilityByBranchResponse": {
        "properties": {
          "branch": {
            "$ref": "#/components/schemas/SaleItemBranchDto"
          }, 
          "manufacturer_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "manufacturer_part_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "part_description": {
            "nullable": true, 
            "type": "string"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "store_inventory": {
            "items": {
              "$ref": "#/components/schemas/SaleItemAvailabilityForStoreDto"
            }, 
            "type": "array"
          }, 
          "total_available_quantity": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "part_id"
        ], 
        "type": "object"
      }, 
      "SaleItemAvailabilityByDistanceResponse": {
        "properties": {
          "branch": {
            "$ref": "#/components/schemas/SaleItemBranchDto"
          }, 
          "distance": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "store_inventory": {
            "items": {
              "$ref": "#/components/schemas/SaleItemAvailabilityForStoreDto"
            }, 
            "type": "array"
          }, 
          "total_available_quantity": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "part_id"
        ], 
        "type": "object"
      }, 
      "SaleItemAvailabilityForStoreDto": {
        "properties": {
          "available_quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "bin_location": {
            "nullable": true, 
            "type": "string"
          }, 
          "default_location": {
            "nullable": true, 
            "type": "boolean"
          }, 
          "store_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "store_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "store_part_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "store_part_id"
        ], 
        "type": "object"
      }, 
      "SaleItemBranchDto": {
        "properties": {
          "id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }, 
          "phone_number": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemByPartNumberResponse": {
        "properties": {
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "item_id": {
            "format": "uuid", 
            "nullable": true, 
            "type": "string"
          }, 
          "msrp": {
            "nullable": true, 
            "type": "string"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "part_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "provider_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "standard_price": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Price"
              }
            ], 
            "nullable": true
          }, 
          "upc": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "part_id"
        ], 
        "type": "object"
      }, 
      "SaleItemCreateRequest": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_notes": {
            "description": "List of sale item notes to be created with the sale item", 
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SaleItemNoteCreateRequest"
                }
              ], 
              "description": "List of sale item notes to be created with the sale item"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }
        }, 
        "required": [
          "description", 
          "due_date", 
          "facilitator_type_id", 
          "line_item_type_id", 
          "line_number", 
          "location_id", 
          "ordered_quantity", 
          "unit_price"
        ], 
        "type": "object"
      }, 
      "SaleItemCreateResponse": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/LineItemType"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/SaleItemFulfillmentResponse"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_notes": {
            "items": {
              "$ref": "#/components/schemas/SaleItemNote"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "line_item_type"
        ], 
        "type": "object"
      }, 
      "SaleItemDeleteResponse": {
        "properties": {
          "message": {
            "type": "string"
          }, 
          "success": {
            "type": "boolean"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemDeliveryPatchRequest": {
        "properties": {
          "fulfillments": {
            "description": "Array of fulfillments with quantities to deliver. Supports partial quantities - will split fulfillment if quantity < fulfillment.quantity", 
            "items": {
              "$ref": "#/components/schemas/FulfillmentItem"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "fulfillments"
        ], 
        "type": "object"
      }, 
      "SaleItemDeliveryPatchResponse": {
        "properties": {
          "delivery_id": {
            "description": "The delivery ID that was updated", 
            "format": "int32", 
            "type": "integer"
          }, 
          "fulfillments_updated": {
            "description": "Number of fulfillments that were updated", 
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "delivery_id", 
          "fulfillments_updated"
        ], 
        "type": "object"
      }, 
      "SaleItemFulfillment": {
        "properties": {
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "delivery_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "reservation_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "reservation_version": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item": {
            "$ref": "#/components/schemas/SaleItem"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemFulfillmentResponse": {
        "properties": {
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "delivery_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "reservation_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "reservation_version": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemFulfillmentSearchItem": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "branch_id", 
          "order_id", 
          "quantity", 
          "sale_item_fulfillment_id", 
          "sale_item_id", 
          "sale_items_status_id"
        ], 
        "type": "object"
      }, 
      "SaleItemFulfillmentSearchResponse": {
        "properties": {
          "fulfillments": {
            "items": {
              "$ref": "#/components/schemas/SaleItemFulfillmentSearchItem"
            }, 
            "type": "array"
          }, 
          "page": {
            "format": "int32", 
            "type": "integer"
          }, 
          "size": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "fulfillments", 
          "page", 
          "size", 
          "total"
        ], 
        "type": "object"
      }, 
      "SaleItemGetResponse": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type": {
            "$ref": "#/components/schemas/LineItemType"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_fulfillments": {
            "items": {
              "$ref": "#/components/schemas/SaleItemFulfillmentResponse"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_notes": {
            "items": {
              "$ref": "#/components/schemas/SaleItemNote"
            }, 
            "nullable": true, 
            "type": "array"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "line_item_type"
        ], 
        "type": "object"
      }, 
      "SaleItemInAdminDelivery": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "fulfillment_quantity": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "line_number": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemInDelivery": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "fulfillment_quantity": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "line_number": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemInventoryDetailsRequest": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "part_ids": {
            "items": {
              "format": "int32", 
              "type": "integer"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "branch_id", 
          "part_ids"
        ], 
        "type": "object"
      }, 
      "SaleItemInventoryDetailsResponse": {
        "properties": {
          "branch": {
            "$ref": "#/components/schemas/SaleItemBranchDto"
          }, 
          "open_reservations": {
            "items": {
              "$ref": "#/components/schemas/SaleItemOpenReservationDto"
            }, 
            "type": "array"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "parts_ordered_details": {
            "items": {
              "$ref": "#/components/schemas/SaleItemPartsOrderedDetailDto"
            }, 
            "type": "array"
          }, 
          "store_inventory": {
            "items": {
              "$ref": "#/components/schemas/SaleItemAvailabilityForStoreDto"
            }, 
            "type": "array"
          }, 
          "total_allocated": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total_available": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total_on_order": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total_on_rent": {
            "format": "int32", 
            "type": "integer"
          }, 
          "total_owned": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "part_id"
        ], 
        "type": "object"
      }, 
      "SaleItemNote": {
        "properties": {
          "content": {
            "type": "string"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User2"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by_user": {
            "$ref": "#/components/schemas/User2"
          }
        }, 
        "required": [
          "content", 
          "created_by", 
          "created_by_user", 
          "date_created", 
          "date_updated", 
          "sale_item_id", 
          "sale_item_note_id", 
          "updated_by", 
          "updated_by_user"
        ], 
        "type": "object"
      }, 
      "SaleItemNoteCreateRequest": {
        "properties": {
          "content": {
            "description": "Content of the sale item note", 
            "type": "string"
          }
        }, 
        "required": [
          "content"
        ], 
        "type": "object"
      }, 
      "SaleItemNoteResponse": {
        "properties": {
          "content": {
            "type": "string"
          }, 
          "created_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User2"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_item_note_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by_user": {
            "$ref": "#/components/schemas/User2"
          }
        }, 
        "required": [
          "content", 
          "created_by", 
          "created_by_user", 
          "date_created", 
          "date_updated", 
          "sale_item_id", 
          "sale_item_note_id", 
          "updated_by", 
          "updated_by_user"
        ], 
        "type": "object"
      }, 
      "SaleItemOpenReservationDto": {
        "properties": {
          "quantity": {
            "format": "int32", 
            "type": "integer"
          }, 
          "reservation_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "store_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "target_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "target_type": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemPartsOrderedDetailDto": {
        "properties": {
          "purchase_order_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "quantity_ordered": {
            "format": "int32", 
            "type": "integer"
          }, 
          "target_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "target_type": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemUpdateRequest": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }
        }, 
        "type": "object"
      }, 
      "SaleItemsByPartNumberRequest": {
        "properties": {
          "part_numbers": {
            "description": "Part number(s) to search for sale items", 
            "items": {
              "type": "string"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "part_numbers"
        ], 
        "type": "object"
      }, 
      "SaleItemsUpdateRequest": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "billing_method_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "description": {
            "type": "string"
          }, 
          "due_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_item_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "line_number": {
            "format": "int32", 
            "type": "integer"
          }, 
          "location_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "ordered_quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "part_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "sale_item_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sale_items_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "unit_price": {
            "format": "float", 
            "type": "number"
          }
        }, 
        "required": [
          "sale_item_id"
        ], 
        "type": "object"
      }, 
      "ScheduleDelivery": {
        "properties": {
          "asset": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Asset1"
              }
            ], 
            "nullable": true
          }, 
          "asset_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "charge": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "completed_by_user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Driver"
              }
            ], 
            "nullable": true
          }, 
          "completed_by_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "completed_date": {
            "nullable": true
          }, 
          "contact_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "contact_phone_number": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "delivery_confirmation_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "delivery_details": {
            "nullable": true, 
            "type": "object"
          }, 
          "delivery_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_photos": {
            "items": {
              "$ref": "#/components/schemas/DeliveryPhoto1"
            }, 
            "type": "array"
          }, 
          "delivery_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeliveryStatus1"
              }
            ], 
            "nullable": true
          }, 
          "delivery_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "delivery_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DeliveryType1"
              }
            ], 
            "nullable": true
          }, 
          "delivery_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "destination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Location3"
              }
            ], 
            "nullable": true
          }, 
          "driver": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Driver"
              }
            ], 
            "nullable": true
          }, 
          "driver_user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "facilitator_type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FacilitatorType"
              }
            ], 
            "nullable": true
          }, 
          "facilitator_type_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Location3"
              }
            ], 
            "nullable": true
          }, 
          "note": {
            "nullable": true, 
            "type": "string"
          }, 
          "order": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Order1"
              }
            ], 
            "nullable": true
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "origin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Location3"
              }
            ], 
            "nullable": true
          }, 
          "origin_location_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "part_display": {
            "nullable": true, 
            "type": "string"
          }, 
          "part_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "purchase_order_id": {
            "nullable": true, 
            "type": "string"
          }, 
          "purchase_order_number": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "quantity": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "rental": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Rental3"
              }
            ], 
            "nullable": true
          }, 
          "rental_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "run_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "scheduled_date": {
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "SetAssetPimProductLinkRequest": {
        "properties": {
          "pim_product_id": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "required": [
          "pim_product_id"
        ], 
        "type": "object"
      }, 
      "SlopeTelemetry": {
        "properties": {
          "pitch_angle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "roll_angle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "Spn": {
        "properties": {
          "code": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "label": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "StaleGpsHealth": {
        "properties": {
          "description": {
            "nullable": true, 
            "type": "string"
          }, 
          "gps_accuracy": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "gps_location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GpsLocation"
              }
            ], 
            "nullable": true
          }, 
          "gps_timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "satellite_timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "satellites": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "status": {
            "nullable": true, 
            "type": "string"
          }, 
          "timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "value": {
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "State": {
        "properties": {
          "abbreviation": {
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "state_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "abbreviation", 
          "name", 
          "state_id"
        ], 
        "type": "object"
      }, 
      "State1": {
        "properties": {
          "abbreviation": {
            "nullable": true, 
            "type": "string"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }, 
          "state_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "SubRenter": {
        "properties": {
          "company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "created_by": {
            "$ref": "#/components/schemas/User"
          }, 
          "date_created": {
            "format": "date-time", 
            "type": "string"
          }, 
          "date_updated": {
            "format": "date-time", 
            "type": "string"
          }, 
          "orders": {
            "items": {
              "$ref": "#/components/schemas/Order"
            }, 
            "type": "array"
          }, 
          "sub_renter_company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_ordered_by_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "sub_renter_purchase_order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "updated_by": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "company_id", 
          "date_created", 
          "sub_renter_company_id", 
          "sub_renter_id", 
          "sub_renter_ordered_by_id"
        ], 
        "type": "object"
      }, 
      "SupervisorResponse": {
        "properties": {
          "email_address": {
            "format": "email", 
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "TaxCode": {
        "properties": {
          "label": {
            "type": "string"
          }, 
          "tax_code": {
            "type": "string"
          }, 
          "tax_code_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "label", 
          "tax_code", 
          "tax_code_id"
        ], 
        "type": "object"
      }, 
      "TaxRate": {
        "properties": {
          "branch": {
            "$ref": "#/components/schemas/Branch1"
          }, 
          "created_by_user": {
            "$ref": "#/components/schemas/User"
          }, 
          "end_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "name": {
            "type": "string"
          }, 
          "rate": {
            "type": "number"
          }, 
          "start_date": {
            "format": "date-time", 
            "type": "string"
          }, 
          "tax_rate_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "created_by_user", 
          "name", 
          "rate", 
          "start_date", 
          "tax_rate_id"
        ], 
        "type": "object"
      }, 
      "TelemetryValue": {
        "properties": {
          "event_timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "updated_at": {
            "nullable": true, 
            "type": "string"
          }, 
          "value": {
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "TelemetryValueUnit": {
        "properties": {
          "event_timestamp": {
            "nullable": true, 
            "type": "string"
          }, 
          "unit": {
            "nullable": true, 
            "type": "string"
          }, 
          "updated_at": {
            "nullable": true, 
            "type": "string"
          }, 
          "value": {
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "TrackerHealthResponse": {
        "properties": {
          "asset_battery": {
            "$ref": "#/components/schemas/HealthStatus"
          }, 
          "cellular_connection": {
            "$ref": "#/components/schemas/HealthStatus"
          }, 
          "stale_gps": {
            "$ref": "#/components/schemas/StaleGpsHealth"
          }, 
          "time_since_last_message": {
            "$ref": "#/components/schemas/HealthStatus"
          }, 
          "tracker_battery": {
            "$ref": "#/components/schemas/HealthStatus"
          }, 
          "tracker_installation_date": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "UninstallDevice": {
        "properties": {
          "device_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "device_id"
        ], 
        "type": "object"
      }, 
      "UniversalContact": {
        "properties": {
          "crm_contact_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "orders": {
            "items": {
              "$ref": "#/components/schemas/Order"
            }, 
            "type": "array"
          }, 
          "universal_contact_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "universal_contact_id"
        ], 
        "type": "object"
      }, 
      "UniversalContact1": {
        "properties": {
          "crm_contact_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "orders": {
            "items": {
              "$ref": "#/components/schemas/Order"
            }, 
            "type": "array"
          }, 
          "universal_contact_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "universal_entity": {
            "$ref": "#/components/schemas/UniversalEntity2"
          }, 
          "user": {
            "$ref": "#/components/schemas/User"
          }
        }, 
        "required": [
          "universal_contact_id", 
          "universal_entity"
        ], 
        "type": "object"
      }, 
      "UniversalEntity": {
        "properties": {
          "universal_entity_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "universal_entity_id"
        ], 
        "type": "object"
      }, 
      "UniversalEntity1": {
        "properties": {
          "contacts": {
            "items": {
              "$ref": "#/components/schemas/UniversalContact"
            }, 
            "type": "array"
          }, 
          "crm_entity_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "locations": {
            "items": {
              "$ref": "#/components/schemas/Location1"
            }, 
            "type": "array"
          }, 
          "t3_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "universal_entity_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "universal_entity_id"
        ], 
        "type": "object"
      }, 
      "UniversalEntity2": {
        "properties": {
          "crm_entity_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "locations": {
            "items": {
              "$ref": "#/components/schemas/Location1"
            }, 
            "type": "array"
          }, 
          "purchase_orders": {
            "items": {
              "$ref": "#/components/schemas/PurchaseOrder2"
            }, 
            "type": "array"
          }, 
          "t3_company": {
            "$ref": "#/components/schemas/Company"
          }, 
          "universal_entity_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "universal_entity_id"
        ], 
        "type": "object"
      }, 
      "UpdateDevice": {
        "properties": {
          "device_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "is_legacy_primary": {
            "type": "boolean"
          }, 
          "label": {
            "nullable": true, 
            "type": "string"
          }, 
          "roles": {
            "items": {
              "$ref": "#/components/schemas/DeviceRoleRequest"
            }, 
            "type": "array"
          }
        }, 
        "required": [
          "device_id"
        ], 
        "type": "object"
      }, 
      "UpdateDeviceMappingsRequest": {
        "properties": {
          "install": {
            "items": {
              "$ref": "#/components/schemas/InstallDevice"
            }, 
            "type": "array"
          }, 
          "uninstall": {
            "items": {
              "$ref": "#/components/schemas/UninstallDevice"
            }, 
            "type": "array"
          }, 
          "update": {
            "items": {
              "$ref": "#/components/schemas/UpdateDevice"
            }, 
            "type": "array"
          }
        }, 
        "type": "object"
      }, 
      "UpdateDeviceMappingsResponse": {
        "properties": {
          "asset_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "device_mappings": {
            "$ref": "#/components/schemas/DeviceMappingsResponse"
          }
        }, 
        "type": "object"
      }, 
      "UsageTelemetry": {
        "properties": {
          "engine_runtime_idle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "engine_runtime_total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "odometer_calculated": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "odometer_reading": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "UsedFleetPhoto": {
        "properties": {
          "file_problem": {
            "type": "boolean"
          }, 
          "filename": {
            "type": "string"
          }, 
          "large": {
            "type": "boolean"
          }, 
          "medium": {
            "type": "boolean"
          }, 
          "photo_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "primary_asset_photo": {
            "type": "boolean"
          }, 
          "small": {
            "type": "boolean"
          }, 
          "source": {
            "type": "string"
          }, 
          "thumbnail": {
            "type": "boolean"
          }, 
          "timestamp": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "User": {
        "properties": {
          "email_address": {
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "phone_number": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "email_address", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "User1": {
        "properties": {
          "email_address": {
            "type": "string"
          }, 
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "email_address", 
          "user_id"
        ], 
        "type": "object"
      }, 
      "User2": {
        "properties": {
          "first_name": {
            "type": "string"
          }, 
          "last_name": {
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "required": [
          "user_id"
        ], 
        "type": "object"
      }, 
      "UserNote": {
        "properties": {
          "email": {
            "nullable": true, 
            "type": "string"
          }, 
          "first_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "last_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "UserShiftTypeResponse": {
        "properties": {
          "name": {
            "type": "string"
          }, 
          "user_shift_type_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "UtilityAverageTelemetry": {
        "properties": {
          "ac_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_line_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_neutral_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "UtilityPhaseTelemetry": {
        "properties": {
          "ac_frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_line_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }, 
          "line_neutral_rms_voltage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValueUnit"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "UtilityTelemetry": {
        "properties": {
          "average": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UtilityAverageTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "breaker_status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TelemetryValue"
              }
            ], 
            "nullable": true
          }, 
          "phase_a": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UtilityPhaseTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "phase_b": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UtilityPhaseTelemetry"
              }
            ], 
            "nullable": true
          }, 
          "phase_c": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UtilityPhaseTelemetry"
              }
            ], 
            "nullable": true
          }
        }, 
        "type": "object"
      }, 
      "_Company": {
        "properties": {
          "company_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "_DeliverySignature": {
        "properties": {
          "delivery_signature_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "latitude": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "longitude": {
            "format": "float", 
            "nullable": true, 
            "type": "number"
          }, 
          "signature_type": {
            "nullable": true, 
            "type": "string"
          }, 
          "signature_url": {
            "nullable": true, 
            "type": "string"
          }, 
          "signed_at": {
            "format": "date-time", 
            "nullable": true, 
            "type": "string"
          }, 
          "signer_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "status": {
            "nullable": true, 
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "_DeliveryStatus": {
        "properties": {
          "delivery_status_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "_DeliveryType": {
        "properties": {
          "delivery_type_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "name": {
            "type": "string"
          }
        }, 
        "type": "object"
      }, 
      "_Order": {
        "properties": {
          "branch_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "market_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "order_id": {
            "format": "int32", 
            "type": "integer"
          }, 
          "order_status_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "reference": {
            "nullable": true, 
            "type": "string"
          }, 
          "user": {
            "allOf": [
              {
                "$ref": "#/components/schemas/_UserInOrder"
              }
            ], 
            "nullable": true
          }, 
          "user_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "_SaleItemFulfillment": {
        "properties": {
          "quantity": {
            "format": "float", 
            "type": "number"
          }, 
          "sale_item_fulfillment_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }, 
      "_UserInOrder": {
        "properties": {
          "company": {
            "allOf": [
              {
                "$ref": "#/components/schemas/_Company"
              }
            ], 
            "nullable": true
          }, 
          "company_id": {
            "format": "int32", 
            "nullable": true, 
            "type": "integer"
          }, 
          "email_address": {
            "nullable": true, 
            "type": "string"
          }, 
          "first_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "last_name": {
            "nullable": true, 
            "type": "string"
          }, 
          "user_id": {
            "format": "int32", 
            "type": "integer"
          }
        }, 
        "type": "object"
      }
    }, 
    "securitySchemes": {
      "Bearer": {
        "bearerFormat": "JWT", 
        "description": "Paste your JWT token here with 'Bearer ' prefix.", 
        "scheme": "bearer", 
        "type": "http"
      }
    }
  }, 
  "info": {
    "title": "ES API", 
    "version": "v1"
  }, 
  "openapi": "3.0.3", 
  "paths": {
    "/admin/assets/enrichment": {
      "post": {
        "description": "Get last known location for a list of tracker_ids from Snowflake telematics data.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetEnrichmentRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetEnrichmentResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }, 
          "422": {
            "description": "Validation failed - tracker_ids missing or empty."
          }, 
          "500": {
            "description": "Internal server error - Snowflake connection or query failed."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST asset enrichment (tracker location)", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/assets/{asset_id}/keypad-health": {
      "get": {
        "description": "Get keypad health and tracker statistics for an asset", 
        "parameters": [
          {
            "description": "The ID of the asset to get keypad health for", 
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetKeypadHealthResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "500": {
            "description": "Error retrieving data from Snowflake"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET asset keypad health", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/companies/company-note-types": {
      "get": {
        "description": "Retrieves all available company note types.", 
        "responses": {
          "200": {
            "description": "Successfully retrieved note types"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CompanyNoteType"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get all company note types", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/admin/companies/notes": {
      "delete": {
        "description": "Permanently removes the specified note from the system.", 
        "responses": {
          "204": {
            "description": "Note deleted successfully (no content returned)"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete a company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "get": {
        "description": "Get company notes by company_id, company_note_id, user_id, or company_note_type_id. At least one query parameter must be provided.", 
        "responses": {
          "200": {
            "description": "Success"
          }, 
          "400": {
            "description": "Missing required query parameters"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found (when querying by company_note_id)"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CompanyNote"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get company notes", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "patch": {
        "description": "Update an existing company note. All fields are optional - only provided fields will be updated.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Note updated successfully"
          }, 
          "400": {
            "description": "Invalid request body"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }, 
          "409": {
            "description": "Integrity constraint violation"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update an existing company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "post": {
        "description": "Create a new company note with optional pinning support.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Invalid request body, missing required fields, or a machine token without X-M2M-USER-ID"
          }, 
          "401": {
            "description": "Unauthorized"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create a new company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/admin/companies/notes/{company_note_id}": {
      "delete": {
        "description": "Permanently removes the specified note from the system.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Note deleted successfully (no content returned)"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete a company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "get": {
        "description": "Get company notes by company_id, company_note_id, user_id, or company_note_type_id. At least one query parameter must be provided.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success"
          }, 
          "400": {
            "description": "Missing required query parameters"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found (when querying by company_note_id)"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CompanyNote"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get company notes", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "patch": {
        "description": "Update an existing company note. All fields are optional - only provided fields will be updated.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Note updated successfully"
          }, 
          "400": {
            "description": "Invalid request body"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }, 
          "409": {
            "description": "Integrity constraint violation"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update an existing company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "post": {
        "description": "Create a new company note with optional pinning support.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Invalid request body, missing required fields, or a machine token without X-M2M-USER-ID"
          }, 
          "401": {
            "description": "Unauthorized"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create a new company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/admin/companies/{company_id}/notes": {
      "delete": {
        "description": "Permanently removes the specified note from the system.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Note deleted successfully (no content returned)"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete a company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "get": {
        "description": "Get company notes by company_id, company_note_id, user_id, or company_note_type_id. At least one query parameter must be provided.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success"
          }, 
          "400": {
            "description": "Missing required query parameters"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found (when querying by company_note_id)"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CompanyNote"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get company notes", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "patch": {
        "description": "Update an existing company note. All fields are optional - only provided fields will be updated.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Note updated successfully"
          }, 
          "400": {
            "description": "Invalid request body"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }, 
          "409": {
            "description": "Integrity constraint violation"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update an existing company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "post": {
        "description": "Create a new company note with optional pinning support.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Invalid request body, missing required fields, or a machine token without X-M2M-USER-ID"
          }, 
          "401": {
            "description": "Unauthorized"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create a new company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/admin/companies/{company_id}/notes/{company_note_id}": {
      "delete": {
        "description": "Permanently removes the specified note from the system.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Note deleted successfully (no content returned)"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete a company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "get": {
        "description": "Get company notes by company_id, company_note_id, user_id, or company_note_type_id. At least one query parameter must be provided.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success"
          }, 
          "400": {
            "description": "Missing required query parameters"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found (when querying by company_note_id)"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CompanyNote"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get company notes", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "patch": {
        "description": "Update an existing company note. All fields are optional - only provided fields will be updated.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Note updated successfully"
          }, 
          "400": {
            "description": "Invalid request body"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Note not found"
          }, 
          "409": {
            "description": "Integrity constraint violation"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update an existing company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }, 
      "post": {
        "description": "Create a new company note with optional pinning support.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyNoteCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyNote"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Invalid request body, missing required fields, or a machine token without X-M2M-USER-ID"
          }, 
          "401": {
            "description": "Unauthorized"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create a new company note", 
        "tags": [
          "Admin", 
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/admin/deliveries/schedule": {
      "get": {
        "description": "Returns deliveries for a rental with only the fields needed to render schedule cards. Significantly faster than GET /admin/deliveries because it omits the heavy Order.rentals tree, asset equipment sub-relationships, and asset condition snapshots.", 
        "parameters": [
          {
            "in": "query", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ScheduleDelivery"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized."
          }, 
          "422": {
            "description": "rental_id is required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "List schedule deliveries for a rental", 
        "tags": [
          "Deliveries"
        ]
      }
    }, 
    "/admin/keycodes/keypad-codes": {
      "get": {
        "description": "Get all keypad codes for a given company. Admin only.", 
        "parameters": [
          {
            "description": "The company ID to retrieve keypad codes for", 
            "in": "query", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success - Returns list of company keypad codes"
          }, 
          "400": {
            "description": "Missing required company_id parameter"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET company keypad codes (admin)", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/rentals/ancillary-search": {
      "get": {
        "description": "Full-text, relevance-ranked, paginated search across bulk parts and equipment classes in the products-v2 index. Bulk-part hits are enriched with the requested branch's availability and equipment-class hits with the branch Ready-to-Rent asset count. Omitting `q` returns browse mode (all items, filtered).", 
        "parameters": [
          {
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "minimum": 1, 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "q", 
            "required": false, 
            "schema": {
              "nullable": true, 
              "type": "string"
            }
          }, 
          {
            "in": "query", 
            "name": "inventory_type", 
            "required": false, 
            "schema": {
              "enum": [
                "part", 
                "equipment_class", 
                "both"
              ], 
              "type": "string"
            }
          }, 
          {
            "in": "query", 
            "name": "branch_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "minimum": 1, 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "per_page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "maximum": 200, 
              "minimum": 1, 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AncillarySearchResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request - missing branch_id or malformed page/per_page/inventory_type."
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }, 
          "422": {
            "description": "Unprocessable - requested page is beyond the maximum result window."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET ancillary inventory search", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/admin/rentals/batch-cancel": {
      "post": {
        "description": "\n        Cancel multiple rentals in one request. Accepts a flat list of rentals\n        (which may span several orders); the backend groups them by order.\n\n        TRANSACTION BEHAVIOR:\n        - Each rental is cancelled in its own transaction, so one rental failing\n          does not roll back the others (and never rolls back other orders).\n        - Cancel is only valid for pre-on-rent rentals (Needs Approval, Draft,\n          Pending, Scheduled). A rental past that point is reported \"failed\" with\n          the invariant message, not aborted for the whole batch.\n        - An already-cancelled rental is reported \"skipped\".\n\n        RESPONSE:\n        - Returns a per-rental result ([{rental_id, status, message}]) so the\n          caller can retry only the rentals that failed.\n\n        EMAIL:\n        - Sends the existing per-rental cancellation email to the order's TAMs\n          (skipping mobile-tool-trailer rentals), preserving current behaviour.\n          Consolidating to one email per order is handled separately (sc-551452),\n          which this endpoint enables by grouping cancelled rentals per order.\n        ", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/BatchCancel"
                }, 
                "type": "array"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminRentalsBatchCancelResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions."
          }, 
          "404": {
            "description": "Some or all rentals not found."
          }, 
          "422": {
            "description": "Request body failed validation."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Batch cancel rentals", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/rentals/frequently-ordered-together": {
      "get": {
        "description": "Fetches ancillary items (parts and equipment classes) that are frequently ordered together with a specific asset or equipment class based on global historical rental data. The frequency analysis is performed across all branches. Returns both frequently ordered parts with inventory availability at the specified branch and frequently ordered equipment classes with their Ready-to-Rent asset counts at the specified branch.", 
        "parameters": [
          {
            "description": "Branch ID to check inventory availability", 
            "in": "query", 
            "name": "branch_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Equipment class ID to find recommendations for", 
            "in": "query", 
            "name": "equipment_class_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Maximum number of recommendations (1-50, default: 10)", 
            "in": "query", 
            "name": "limit", 
            "required": false, 
            "schema": {
              "default": 10, 
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Asset ID to find recommendations for", 
            "in": "query", 
            "name": "asset_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FrequentlyOrderedTogetherResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 missing or invalid parameters"
          }, 
          "404": {
            "description": "Asset or equipment class not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get frequently ordered together recommendations", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/admin/rentals/overdue": {
      "get": {
        "description": "Get overdue rental tasks for a market. Delivery-backed tasks can optionally include dispatch context for loading overdue deliveries into Dispatch Mode.", 
        "parameters": [
          {
            "description": "When true, attach unified dispatch context to each task. Delivery-backed tasks populate delivery, run_stop, and run. Rental-only tasks populate rental.", 
            "in": "query", 
            "name": "include_dispatch_context", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Optional number of days back from now to include overdue rental tasks for.", 
            "in": "query", 
            "name": "overdue_days_limit", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "minimum": 1, 
              "type": "integer"
            }
          }, 
          {
            "description": "Market/branch ID to return overdue rental tasks for.", 
            "in": "query", 
            "name": "market_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AdminRentalOverdueTaskGroupResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request - query params missing or malformed."
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET admin rental overdue tasks", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/rentals/reassign-rentals": {
      "post": {
        "description": "\n        Reassign rentals to a different order with optional rate adjustments.\n\n        TRANSACTION BEHAVIOR:\n        - All rentals are reassigned in a single database transaction\n        - If ANY rental fails to reassign, ALL changes are rolled back (all-or-nothing)\n        - No partial success - either all rentals are reassigned or none are\n\n        VALIDATION:\n        - All rentals must be from the same source order\n        - Target order must be from same company and branch as source rentals\n        - Rentals must have started on or before now\n        - Rentals must not have ended before now\n        - Rentals must be in DRAFT, PENDING, or ON_RENT status\n\n        RATE ADJUSTMENTS:\n        - Use rentals_to_reassign to specify new rates and shift types during reassignment\n        - Rates are not calculated by the backend - provide complete rate structures\n        - If rate fields are omitted, the original rental's rates are preserved\n        - Use rental_ids (deprecated) for backwards compatibility without rate adjustments\n        ", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdminRentalsReassignRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminRentalsReassignResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 specified company or market does not exist."
          }, 
          "409": {
            "description": "Conflict \u2013 rental already reassigned or invalid state."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST admin rentals reassign", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/rentals/{rental_id}/keypad-health": {
      "get": {
        "description": "Get keypad health and tracker statistics for a rental's asset", 
        "parameters": [
          {
            "description": "The ID of the rental to get keypad health for", 
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RentalKeypadHealthResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "404": {
            "description": "Rental not found or no asset assigned"
          }, 
          "500": {
            "description": "Error retrieving data from Snowflake"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET rental keypad health", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/admin/sale-item-deliveries": {
      "get": {
        "description": "Retrieve all deliveries linked to a sale_item_id, each including their nested sale items.", 
        "parameters": [
          {
            "in": "query", 
            "name": "sale_item_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AdminSaleItemDelivery"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET sale item deliveries", 
        "tags": [
          "Sale Item Deliveries"
        ]
      }
    }, 
    "/admin/users/google-groups": {
      "post": {
        "description": "Returns, for each email, whether Auth0 has a user for it, their last login, and the Google Groups they belong to that gate a permission. Other groups are never returned. Emails are lowercased, trimmed and de-duplicated; results keep input order. Emails outside @equipmentshare.com are reported as not found without an Auth0 lookup. Group membership is refreshed by Auth0 at login, so it can be as stale as last_login.", 
        "responses": {
          "200": {
            "description": "One result per normalised email."
          }, 
          "400": {
            "description": "emails missing, empty, blank or more than 100."
          }, 
          "401": {
            "description": "Not an admin user token (M2M tokens are rejected)."
          }, 
          "500": {
            "description": "Auth0 lookup failed."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST look up users' permission-gating Google Groups", 
        "tags": [
          "Admin"
        ]
      }
    }, 
    "/asset-use-types": {
      "get": {
        "description": "Returns all available asset use types (e.g. Rental, Operational).", 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET asset use types", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/assets/{asset_id}/tracker-health": {
      "get": {
        "description": "Returns health status for a tracker's battery, cellular connection, GPS, and last message. When called via /assets/:id/tracker-health, use ?tracker_id to get health for a specific device instead of the legacy primary. The tracker must be an active device on the asset.", 
        "parameters": [
          {
            "in": "query", 
            "name": "tracker_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "device_serial", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackerHealthResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get tracker health status", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/assets/{asset_id}/used-fleet-photos": {
      "get": {
        "description": "Returns all delivery and asset photos associated with a given asset, ordered by S3 upload date (newest first). Photos not found in S3 are excluded. Requires an M2M token or an authenticated user token.", 
        "parameters": [
          {
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/UsedFleetPhoto"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get used-fleet photos for an asset", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/companies/{company_id}/credit-applications": {
      "get": {
        "description": "Endpoints for creating, updating and getting credit applications for a company.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "CompanyCreditApplication"
        ]
      }, 
      "put": {
        "description": "Endpoints for creating, updating and getting credit applications for a company.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "CompanyCreditApplication"
        ]
      }
    }, 
    "/companies/{company_id}/delivery-confirmations": {
      "get": {
        "description": "Fetches all delivery confirmation PDFs for a given company.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/DeliveryConfirmationResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET company delivery confirmations", 
        "tags": [
          "Company Delivery Confirmations"
        ]
      }
    }, 
    "/companies/{company_id}/order-confirmations": {
      "get": {
        "description": "Fetches all rental order confirmations (contracts) for a given company. Rapid rent contracts are excluded.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ContractResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET company order confirmations (contracts)", 
        "tags": [
          "Company Order Confirmations"
        ]
      }
    }, 
    "/companies/{company_id}/rentals/kpis": {
      "get": {
        "description": "Get KPIs for company rentals", 
        "parameters": [
          {
            "description": "Number of days to look ahead for dispatching deliveries. Default is 7 days.", 
            "in": "query", 
            "name": "dispatch_days_look_ahead", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the company to get rental KPIs for.", 
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyRentalsKpisResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET company rentals KPIs", 
        "tags": [
          "CompanyRentalsKPIs"
        ]
      }
    }, 
    "/companies/{company_id}/rentals/search/extended_data": {
      "post": {
        "description": "Get extended rental data from Snowflake for specified rental IDs via POST body", 
        "parameters": [
          {
            "description": "The ID of the company to get extended rental data for.", 
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRentalsSearchExtendedDataRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyRentalsSearchExtendedDataResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "500": {
            "description": "Internal server error \u2013 Snowflake connection or query failed."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST company rentals extended data", 
        "tags": [
          "CompanyRentalsSearchExtendedData"
        ]
      }
    }, 
    "/company-notes": {
      "delete": {
        "description": "Deletes a company note with authorization checks.", 
        "responses": {
          "204": {
            "description": "Successfully deleted"
          }, 
          "403": {
            "description": "Not authorized"
          }, 
          "404": {
            "description": "Company note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete a company note", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }, 
      "get": {
        "description": "Retrieves company notes by ID or query parameters.", 
        "responses": {
          "200": {
            "description": "Successfully retrieved company notes"
          }, 
          "403": {
            "description": "Not authorized"
          }, 
          "404": {
            "description": "Company note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get company notes", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }, 
      "patch": {
        "description": "Updates a company note with authorization checks.", 
        "responses": {
          "200": {
            "description": "Successfully updated"
          }, 
          "403": {
            "description": "Not authorized"
          }, 
          "404": {
            "description": "Company note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update a company note", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }, 
      "post": {
        "description": "Creates a new company note with authorization checks.", 
        "responses": {
          "201": {
            "description": "Successfully created"
          }, 
          "403": {
            "description": "Not authorized"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create a new company note", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/company-notes/{company_note_id}": {
      "delete": {
        "description": "Deletes a company note with authorization checks.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Successfully deleted"
          }, 
          "403": {
            "description": "Not authorized"
          }, 
          "404": {
            "description": "Company note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete a company note", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }, 
      "get": {
        "description": "Retrieves company notes by ID or query parameters.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Successfully retrieved company notes"
          }, 
          "403": {
            "description": "Not authorized"
          }, 
          "404": {
            "description": "Company note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get company notes", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }, 
      "patch": {
        "description": "Updates a company note with authorization checks.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Successfully updated"
          }, 
          "403": {
            "description": "Not authorized"
          }, 
          "404": {
            "description": "Company note not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update a company note", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }, 
      "post": {
        "description": "Creates a new company note with authorization checks.", 
        "parameters": [
          {
            "in": "path", 
            "name": "company_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "201": {
            "description": "Successfully created"
          }, 
          "403": {
            "description": "Not authorized"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create a new company note", 
        "tags": [
          "Notes", 
          "Companies"
        ]
      }
    }, 
    "/configs": {
      "get": {
        "description": "Returns the effective merged config for the given ref_type/ref_id. Merge hierarchy: global \u2192 branch \u2192 user. Pass deep_merge=true for recursive dict merging.", 
        "parameters": [
          {
            "description": "Scope: 'global', 'branch', or 'user'", 
            "in": "query", 
            "name": "ref_type", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "description": "ID for the ref_type. Ignored for global (always 0).", 
            "in": "query", 
            "name": "ref_id", 
            "required": false, 
            "schema": {
              "default": 0, 
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Use recursive dict merge instead of shallow.", 
            "in": "query", 
            "name": "deep_merge", 
            "required": false, 
            "schema": {
              "default": false, 
              "type": "boolean"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigMergedResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized."
          }, 
          "403": {
            "description": "Forbidden."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET merged config", 
        "tags": [
          "Configs"
        ]
      }, 
      "post": {
        "description": "Create a new config row. Only store override keys \u2014 never the full merged blob.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigPost"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigRowResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized."
          }, 
          "403": {
            "description": "Forbidden."
          }, 
          "409": {
            "description": "Config already exists for this ref_type/ref_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST config", 
        "tags": [
          "Configs"
        ]
      }
    }, 
    "/configs/{config_id}": {
      "delete": {
        "description": "Delete a config row or remove a single key from it. Pass ?key=<key_name> to remove only that key from the stored config. Omit key to delete the entire row.", 
        "parameters": [
          {
            "description": "If provided, removes only this key from the stored config.", 
            "in": "query", 
            "name": "key", 
            "required": false, 
            "schema": {
              "default": null, 
              "nullable": true, 
              "type": "string"
            }
          }, 
          {
            "in": "path", 
            "name": "config_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Key removed from stored config."
          }, 
          "204": {
            "description": "Row deleted."
          }, 
          "401": {
            "description": "Unauthorized."
          }, 
          "403": {
            "description": "Forbidden."
          }, 
          "404": {
            "description": "Config not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE config", 
        "tags": [
          "Configs"
        ]
      }, 
      "patch": {
        "description": "Merge provided keys into the existing stored config. Pass only the keys you want to change.", 
        "parameters": [
          {
            "in": "path", 
            "name": "config_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigPatch"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigRowResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized."
          }, 
          "403": {
            "description": "Forbidden."
          }, 
          "404": {
            "description": "Config not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH config", 
        "tags": [
          "Configs"
        ]
      }
    }, 
    "/credit-application": {
      "post": {
        "description": "Unauthenticated endpoint for creating credit applications.", 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "CreditApplication"
        ]
      }
    }, 
    "/credit-applications/signature/upload-url": {
      "post": {
        "description": "Create a presigned upload URL for a customer signature.", 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "CustomerSignature"
        ]
      }
    }, 
    "/credit-applications/{credit_application_id}/signature/upload-url": {
      "post": {
        "description": "Create a presigned upload URL for a customer signature.", 
        "parameters": [
          {
            "in": "path", 
            "name": "credit_application_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "CustomerSignature"
        ]
      }
    }, 
    "/delivery-confirmations/{delivery_confirmation_id}.pdf": {
      "get": {
        "description": "Endpoints for delivery confirmation PDFs", 
        "parameters": [
          {
            "in": "path", 
            "name": "delivery_confirmation_id", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "Delivery Confirmations"
        ]
      }
    }, 
    "/dispatch/driver-profiles": {
      "get": {
        "description": "Returns driver profiles linked to the requested branch, including all branch configs per profile. Idempotently bootstraps profiles for branch drivers missing a branch link.", 
        "parameters": [
          {
            "in": "query", 
            "name": "branch_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success"
          }, 
          "400": {
            "description": "Missing branch_id"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverProfilesListResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "List driver profiles for a branch", 
        "tags": [
          "Dispatch", 
          "Driver Profiles"
        ]
      }, 
      "post": {
        "description": "Creates a user in the configured outside-hauler company, provisions Auth0 SMS login (no welcome email), and creates a driver profile with vendor_id and branch links. email_address is optional; when omitted or blank, a placeholder {digits}@noemail.com is generated from the cell phone number.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriverProfileCreateOutsideHauler"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "description": "Profile created"
          }, 
          "400": {
            "description": "Invalid request"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "409": {
            "description": "Duplicate email, cell, or Auth0 SMS user"
          }, 
          "500": {
            "description": "outside_hauler_company_id missing or invalid"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverProfile"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create an outside-hauler driver profile", 
        "tags": [
          "Dispatch", 
          "Driver Profiles"
        ]
      }, 
      "put": {
        "description": "Create or update a driver profile and upsert supplied branch configuration rows.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DriverProfileUpsert"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Profile upserted successfully"
          }, 
          "400": {
            "description": "Invalid request"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Profile not found"
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriverProfile"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Upsert a driver profile", 
        "tags": [
          "Dispatch", 
          "Driver Profiles"
        ]
      }
    }, 
    "/dispatch/driver-profiles/{driver_profile_id}/branches/{branch_id}": {
      "delete": {
        "description": "Deletes the profile-to-branch association. Idempotent when the link is already absent. Returns 403 when the profile belongs to a canonical branch driver for the requested branch.", 
        "parameters": [
          {
            "in": "path", 
            "name": "branch_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "path", 
            "name": "driver_profile_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Branch link removed or already absent"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "403": {
            "description": "Cannot remove branch driver profile from branch"
          }, 
          "404": {
            "description": "Driver profile not found"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Remove driver profile from branch", 
        "tags": [
          "Dispatch", 
          "Driver Profiles"
        ]
      }
    }, 
    "/dispatch/driver-profiles/{driver_profile_id}/deliver-login-link": {
      "post": {
        "description": "Sends an SMS with an ES Deliver login URL that prefills the driver phone via Auth0 login_hint. Phone is taken from the stored user; the body is empty.", 
        "parameters": [
          {
            "in": "path", 
            "name": "driver_profile_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeliverLoginLinkResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Not an outside hauler, missing phone, or invalid phone"
          }, 
          "401": {
            "description": "Unauthorized"
          }, 
          "404": {
            "description": "Driver profile not found"
          }, 
          "500": {
            "description": "SMS send failed"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Send ES Deliver login SMS", 
        "tags": [
          "Dispatch", 
          "Driver Profiles"
        ]
      }
    }, 
    "/es-admin/user/permissions": {
      "get": {
        "description": "Returns whether the calling user has each requested Q2P permission. Permissions are resolved from the user's JWT groups claim \u2014 no Auth0 round-trip. Unknown permission names always return false. This is a temporary shim; it will be replaced by AuthZed once Q2P permissions are in the SpiceDB schema.", 
        "parameters": [
          {
            "description": "Comma-separated list of Q2P permission names to check", 
            "example": "rental_edit,order_create", 
            "in": "query", 
            "name": "names", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Map of permission names to boolean."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET current user's Q2P permissions", 
        "tags": [
          "ES Admin"
        ]
      }
    }, 
    "/machine-to-machine/assets/backfill-device-mappings": {
      "post": {
        "description": "Populates device_mappings from tracker_id and asset_tracker_assignments history. M2M authentication required. By default, skips assets that already have device_mappings populated. Use force=true to regenerate from history (preserves supplemental entries). Use dry_run=true to preview changes without writing.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BackfillDeviceMappingsRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackfillDeviceMappingsResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Backfill device_mappings for a batch of assets", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/machine-to-machine/assets/resource-mappings/batch": {
      "put": {
        "description": "Each item replaces that asset's whole resource_mappings. An item whose source_as_of is older than the stored value's is skipped. When an asset appears more than once, the newest source_as_of wins. Writes only the resource_mappings column: no asset event is published and fleet-configuration-api is not called.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetResourceMappingsBatch"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetResourceMappingsBatchResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Valid machine Bearer token required."
          }, 
          "403": {
            "description": "Machine token missing asset-resource-mappings:write scope."
          }, 
          "422": {
            "description": "Request body is invalid or has more items than the batch limit."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Bulk replace assets' resource_mappings", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/machine-to-machine/assets/{asset_id}/inventory-branch": {
      "put": {
        "description": "Reassigns the asset's inventory (ISP) branch. Set skipResourceSync=true to suppress the branch-to-resource sync, so a caller that owns the asset-resource record write (e.g. fleet-configuration-api's designation-driven branch reassignment) is not echoed back into its in-flight write; defaults to false (the sync runs). Idempotent: when the asset's inventory branch already is the requested branch nothing is written and the response carries changed=false. M2M authentication required. Currently scoped to the inventory branch only; extendable to service/rental/telematics providers later.", 
        "parameters": [
          {
            "description": "The ID of the asset whose inventory branch is being reassigned.", 
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignInventoryBranchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssignInventoryBranchResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "404": {
            "description": "Asset or branch not found"
          }, 
          "409": {
            "description": "Invariant violated (e.g. cross-company assignment)"
          }, 
          "422": {
            "description": "Asset is owned by EquipmentShare (1854), company mismatch, or inactive branch"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Reassign an asset's inventory branch", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/machine-to-machine/assets/{asset_id}/keypad-health": {
      "get": {
        "description": "Get keypad health and tracker statistics for an asset", 
        "parameters": [
          {
            "description": "The ID of the asset to get keypad health for", 
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetKeypadHealthResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "500": {
            "description": "Error retrieving data from Snowflake"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET asset keypad health", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/billing-status-update": {
      "post": {
        "description": "Applies rental status changes (SetRentalStatus) and sale item fulfillment status changes in one unit of work. Requires header `X-M2M-USER-ID`. Include `rentals` and/or `sale_item_fulfillments`; either key may be omitted when empty. At least one of the two lists must be non-empty.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingStatusUpdateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "description": "Updates committed successfully; empty body."
          }, 
          "400": {
            "description": "Missing X-M2M-USER-ID, schema validation error, unknown fulfillment ids, or invalid fulfillment status transitions."
          }, 
          "401": {
            "description": "Unauthorized \u2014 valid machine Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST billing status update (M2M)", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/inventory-reservation-events": {
      "post": {
        "description": "Processes an inventory reservation notification for an order line (part). Requires `X-M2M-USER-ID`. Uses `reserved_by_id` from the body as the acting user for fulfillment updates and inventory adjustment.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventoryReservationEvent"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "description": "Processed or intentionally ignored (e.g. non-ORDER target)."
          }, 
          "400": {
            "description": "Validation error or invalid target_id."
          }, 
          "401": {
            "description": "Unauthorized \u2014 valid machine Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST inventory reservation event (M2M)", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/rentals/pending-off-rent": {
      "get": {
        "description": "Returns the rentals that are on_rent and have an off_rent_date_requested at or before the current time, as a bare list of rental_id, order_id and off_rent_date_requested. The result is capped at 1000 rentals and is not paginated; the newest requested off-rent dates come first (off_rent_date_requested descending, then rental_id descending). The list is read from a read replica, so it can briefly lag the primary database.", 
        "responses": {
          "200": {
            "description": "List of rentals pending off-rent, or an empty list if there are none."
          }, 
          "401": {
            "description": "Unauthorized - valid machine Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET rentals pending off-rent (M2M)", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/rentals/pending-on-rent": {
      "get": {
        "description": "Returns the rentals that should be moved to on_rent now, as a bare list of rental_id and asset_id (asset_id is null for part rentals). A rental is included when it has an asset or a part type, its drop-off delivery is confirmed or completed, its status is needs_approval, draft, pending or scheduled, the current time is between its start_date and end_date (exclusive), and, for a part rental, it has an active part assignment. The result is capped at 1000 rentals and is not paginated; the newest start dates come first (start_date descending, then rental_id descending). The list is read from a read replica, so it can briefly lag the primary database; that is harmless because putting an already on-rent rental on rent is a no-op.", 
        "responses": {
          "200": {
            "description": "List of rentals pending on-rent, or an empty list if there are none."
          }, 
          "401": {
            "description": "Unauthorized - valid machine Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET rentals pending on-rent (M2M)", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/rentals/{rental_id}/off-rent": {
      "post": {
        "description": "Ends a rental whose scheduled off-rent time (off_rent_date_requested) has passed, with off_rent_date as its end date: EndPartRental for parts rentals, EndRental for every other type, plus completing the return delivery of a rapid rent. The rental is re-read under a row lock first, and nothing changes unless it is still on_rent with an off_rent_date_requested that has passed and still equals off_rent_date, so a stale or repeated call returns `skipped`. The off-rent-now email is sent after commit; a failure to send it is logged and does not fail the request. Callers must send X-M2M-USER-ID: commands are attributed to that user (the rentals-off-renter lambda sends the invoicing job user, 9204).", 
        "parameters": [
          {
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/M2MRentalOffRentRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "`{\"result\": \"off_rented\", \"rental_id\", \"rental_status_id\"}` when the rental was off-rented (rental_status_id is as stored, so completed for a rapid rent whose return delivery completion closed it), or `{\"result\": \"skipped\", \"rental_id\", \"rental_status_id\", \"reason\"}` when nothing changed because it was not on_rent (`not_on_rent`), its off_rent_date_requested is unset or in the future (`not_due`), or its off_rent_date_requested no longer equals off_rent_date (`off_rent_date_changed`)."
          }, 
          "400": {
            "description": "X-M2M-USER-ID header missing, or invalid body: off_rent_date missing, unparseable, without a UTC offset or in the future, or an unknown field."
          }, 
          "401": {
            "description": "Unauthorized - valid machine Bearer token required, and X-M2M-USER-ID must name an existing user."
          }, 
          "404": {
            "description": "Rental not found. Body: {\"type\": \"EntityNotFound\", \"message\": ...}."
          }, 
          "409": {
            "description": "Domain rule violated, e.g. off_rent_date would drop a scheduled equipment swap or the parts rental has open deliveries. Body: {\"type\": \"InvariantViolated\", \"message\": ...}. Nothing was changed."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST off-rent a rental (M2M)", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/rentals/{rental_id}/on-rent": {
      "post": {
        "description": "Transitions the given rental to on_rent by calling the current SetRentalStatus command inside a UnitOfWork, so the Rental Service Provider (RSP) guard and order_audit_history write both apply. Idempotent: calling this on a rental already on_rent is a no-op that still returns 200.", 
        "parameters": [
          {
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Rental is on_rent (freshly transitioned or already there); empty body other than rental_id/rental_status_id confirmation."
          }, 
          "401": {
            "description": "Unauthorized \u2014 valid machine Bearer token required."
          }, 
          "404": {
            "description": "`type: EntityNotFound` means the rental does not exist. `type: PartNotFound` means the part rental's part has no store-inventory record at the order's branch - a distinct, non-transient rejection, not a missing rental."
          }, 
          "409": {
            "description": "Domain rule violated. `type: RSPNotAssigned` means the asset has no Rental Service Provider assigned \u2014 this must be treated as a distinct, non-transient rejection rather than a generic error. Any other `type` (e.g. `InvariantViolated`) is a different domain rule violation."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST set rental on-rent (M2M)", 
        "tags": [
          "Machine to Machine"
        ]
      }
    }, 
    "/machine-to-machine/resource-map/resources/batch": {
      "put": {
        "description": "Ingests ResourceMap source rows and rebuilds hierarchy closure relationships.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResourceMapResourcesBatch"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "description": "Every hierarchy was stored and its live closure rebuilt."
          }, 
          "401": {
            "description": "Valid machine Bearer token required."
          }, 
          "403": {
            "description": "Machine token missing resource-map:write scope."
          }, 
          "409": {
            "description": "A resource conflicts with its stored hierarchy membership."
          }, 
          "422": {
            "description": "Request body does not match the ResourceMap schema, contains an invalid hierarchy, or exceeds the closure row change limit."
          }, 
          "503": {
            "description": "A hierarchy is being updated; retry the request."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Bulk ingest ResourceMap resources", 
        "tags": [
          "ResourceMap"
        ]
      }
    }, 
    "/machine-to-machine/resource-map/resources/{resource_id}/descendants": {
      "get": {
        "description": "Reads closure-derived ResourceMap descendants for one resource.", 
        "parameters": [
          {
            "in": "path", 
            "name": "resource_id", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Descendant resource IDs from resource_closure, including the requested resource's self row, ordered by resource ID. An unknown, inactive, or soft-deleted resource has no closure rows and returns an empty list."
          }, 
          "401": {
            "description": "Valid machine Bearer token required."
          }, 
          "403": {
            "description": "Machine token missing resource-map:read scope."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceMapDescendantsResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "List ResourceMap descendants", 
        "tags": [
          "ResourceMap"
        ]
      }
    }, 
    "/machine-to-machine/sale-item-fulfillments/search": {
      "get": {
        "description": "Search sale item fulfillments by branch_id (market_id) and sale_item_status_id", 
        "parameters": [
          {
            "in": "query", 
            "name": "branch_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "size", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "sale_item_status_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Successful - returns a list of sale item fulfillments."
          }, 
          "400": {
            "description": "Bad request - validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden - insufficient permissions to perform this action."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaleItemFulfillmentSearchResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET sale item fulfillments by branch and status", 
        "tags": [
          "SaleItemFulfillments"
        ]
      }
    }, 
    "/machine-to-machine/sale-item-fulfillments/{action}": {
      "post": {
        "description": "Perform action on sale item fulfillments based on the action parameter (machine-to-machine)", 
        "parameters": [
          {
            "in": "path", 
            "name": "action", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Action completed successfully."
          }, 
          "400": {
            "description": "Bad request - validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized - valid M2M token required."
          }, 
          "403": {
            "description": "Forbidden - insufficient permissions to perform this action."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemFulfillmentResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST sale item fulfillment action (M2M)", 
        "tags": [
          "SaleItemFulfillmentActions"
        ]
      }
    }, 
    "/mtt/checkout": {
      "post": {
        "description": "Atomically creates an MTT order, creates rentals for rental items (with backend rate lookup), reserves inventory for consumable items, transitions fulfillments to BILLING_PENDING, and creates an unapproved invoice for consumables.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTCheckoutRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTCheckoutResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions."
          }, 
          "409": {
            "description": "Conflict \u2013 insufficient inventory for one or more items."
          }, 
          "422": {
            "description": "Unprocessable \u2013 sub_renter fields failed validation (e.g. missing required field)."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST MTT checkout", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-batch-workers": {
      "post": {
        "description": "Create batch workers and associate with a market", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTBatchWorkersRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTBatchWorkersResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 specified company or market does not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST batch workers", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-company-settings": {
      "get": {
        "description": "List company trailer settings or fetch a single setting by ID.", 
        "parameters": [
          {
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "active", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MTTCompanySettingResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET MTT company settings", 
        "tags": [
          "MTT"
        ]
      }, 
      "patch": {
        "description": "Update company trailer settings.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTCompanySettingUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTCompanySettingResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH MTT company setting", 
        "tags": [
          "MTT"
        ]
      }, 
      "post": {
        "description": "Create company trailer settings for a market.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTCompanySettingCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTCompanySettingResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST MTT company setting", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-company-settings/{mtt_company_setting_id}": {
      "get": {
        "description": "List company trailer settings or fetch a single setting by ID.", 
        "parameters": [
          {
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "active", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Company setting ID (path param on item route)", 
            "in": "path", 
            "name": "mtt_company_setting_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MTTCompanySettingResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET MTT company settings", 
        "tags": [
          "MTT"
        ]
      }, 
      "patch": {
        "description": "Update company trailer settings.", 
        "parameters": [
          {
            "description": "Company setting ID", 
            "in": "path", 
            "name": "mtt_company_setting_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTCompanySettingUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTCompanySettingResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH MTT company setting", 
        "tags": [
          "MTT"
        ]
      }, 
      "post": {
        "description": "Create company trailer settings for a market.", 
        "parameters": [
          {
            "in": "path", 
            "name": "mtt_company_setting_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTCompanySettingCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTCompanySettingResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST MTT company setting", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-price-uploads": {
      "post": {
        "description": "Upload a CSV of MTT prices for asynchronous processing. Creates a queued upload_jobs row and pushes the raw file to S3; a separate consumer (rentals-upload-handler) processes it later. This endpoint only validates the file's header/shape -- nothing is persisted to mtt_prices here.", 
        "responses": {
          "201": {
            "description": "Upload job created successfully."
          }, 
          "400": {
            "description": "Missing file, or the file failed CSV header/shape validation."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "409": {
            "description": "CSV failed row-level validation."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Upload MTT prices CSV", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-prices": {
      "delete": {
        "description": "Delete a single MTT price row by mtt_price_id. There is no list/bulk mode.", 
        "responses": {
          "204": {
            "description": "Deleted."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "No MTT price row with that mtt_price_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete an MTT price", 
        "tags": [
          "MTT"
        ]
      }, 
      "get": {
        "description": "GET /mtt/mtt-prices/<mtt_price_id> returns a single row by primary key. GET /mtt/mtt-prices (no mtt_price_id) returns a paginated, filtered list for a market_id.", 
        "parameters": [
          {
            "description": "Case-insensitive substring match over part_id (as text), part_description, and manufacturer_name.", 
            "in": "query", 
            "name": "search", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "description": "Be exact about company scope, don't fall back. With company_id set: false (default) returns that company's row OR the trailer-level (NULL company) row; true returns only the exact company match. With company_id omitted: false (default) returns every company's rows plus trailer-level rows; true returns ONLY trailer-level (NULL company) rows.", 
            "in": "query", 
            "name": "strict_filtering", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Optional single part filter (list mode).", 
            "in": "query", 
            "name": "part_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "1-indexed page number (default 1); list mode only.", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Optional company filter (list mode); see strict_filtering.", 
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Page size (default 50, max 500); list mode only.", 
            "in": "query", 
            "name": "per_page", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Branch/market to scope the list. Required in list mode.", 
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success."
          }, 
          "400": {
            "description": "Bad request -- invalid query param (e.g. non-int filter, page/per_page out of range)."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "No MTT price row with that mtt_price_id (single-item mode)."
          }, 
          "422": {
            "description": "market_id missing in list mode."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET MTT prices", 
        "tags": [
          "MTT"
        ]
      }, 
      "patch": {
        "description": "Update the purchase_price of an existing MTT price row, identified by mtt_price_id. No other field is editable via this endpoint.", 
        "responses": {
          "200": {
            "description": "Updated."
          }, 
          "400": {
            "description": "Bad request -- invalid purchase_price (non-numeric, negative, or more than 2 decimal places)."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "No MTT price row with that mtt_price_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update an MTT price", 
        "tags": [
          "MTT"
        ]
      }, 
      "post": {
        "description": "Create a single MTT price row for a (market_id, company_id, part_id) combination. This endpoint only creates -- it never updates an existing row.", 
        "responses": {
          "201": {
            "description": "Successfully created."
          }, 
          "400": {
            "description": "Validation error."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "409": {
            "description": "An MTT price already exists for this market_id/company_id/part_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create MTT price", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-prices/{mtt_price_id}": {
      "delete": {
        "description": "Delete a single MTT price row by mtt_price_id. There is no list/bulk mode.", 
        "parameters": [
          {
            "description": "Primary key of the MTT price row to delete.", 
            "in": "path", 
            "name": "mtt_price_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Deleted."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "No MTT price row with that mtt_price_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Delete an MTT price", 
        "tags": [
          "MTT"
        ]
      }, 
      "get": {
        "description": "GET /mtt/mtt-prices/<mtt_price_id> returns a single row by primary key. GET /mtt/mtt-prices (no mtt_price_id) returns a paginated, filtered list for a market_id.", 
        "parameters": [
          {
            "description": "Primary key of a single MTT price row (path param; omit for list mode).", 
            "in": "path", 
            "name": "mtt_price_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Case-insensitive substring match over part_id (as text), part_description, and manufacturer_name.", 
            "in": "query", 
            "name": "search", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "description": "Be exact about company scope, don't fall back. With company_id set: false (default) returns that company's row OR the trailer-level (NULL company) row; true returns only the exact company match. With company_id omitted: false (default) returns every company's rows plus trailer-level rows; true returns ONLY trailer-level (NULL company) rows.", 
            "in": "query", 
            "name": "strict_filtering", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Optional single part filter (list mode).", 
            "in": "query", 
            "name": "part_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "1-indexed page number (default 1); list mode only.", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Optional company filter (list mode); see strict_filtering.", 
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Page size (default 50, max 500); list mode only.", 
            "in": "query", 
            "name": "per_page", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Branch/market to scope the list. Required in list mode.", 
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Success."
          }, 
          "400": {
            "description": "Bad request -- invalid query param (e.g. non-int filter, page/per_page out of range)."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "No MTT price row with that mtt_price_id (single-item mode)."
          }, 
          "422": {
            "description": "market_id missing in list mode."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET MTT prices", 
        "tags": [
          "MTT"
        ]
      }, 
      "patch": {
        "description": "Update the purchase_price of an existing MTT price row, identified by mtt_price_id. No other field is editable via this endpoint.", 
        "parameters": [
          {
            "description": "Primary key of the MTT price row to update.", 
            "in": "path", 
            "name": "mtt_price_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Updated."
          }, 
          "400": {
            "description": "Bad request -- invalid purchase_price (non-numeric, negative, or more than 2 decimal places)."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "No MTT price row with that mtt_price_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update an MTT price", 
        "tags": [
          "MTT"
        ]
      }, 
      "post": {
        "description": "Create a single MTT price row for a (market_id, company_id, part_id) combination. This endpoint only creates -- it never updates an existing row.", 
        "parameters": [
          {
            "in": "path", 
            "name": "mtt_price_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "201": {
            "description": "Successfully created."
          }, 
          "400": {
            "description": "Validation error."
          }, 
          "401": {
            "description": "Unauthorized -- valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden -- insufficient permissions to perform this action."
          }, 
          "409": {
            "description": "An MTT price already exists for this market_id/company_id/part_id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create MTT price", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-trailer-workers": {
      "get": {
        "description": "List trailer workers or fetch a single worker by ID.", 
        "parameters": [
          {
            "in": "query", 
            "name": "user_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "allowed_to_rent", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "in": "query", 
            "name": "active", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MTTTrailerWorkerResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET MTT trailer workers", 
        "tags": [
          "MTT"
        ]
      }, 
      "patch": {
        "description": "Update a trailer worker.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTTrailerWorkerUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTTrailerWorkerResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH MTT trailer worker", 
        "tags": [
          "MTT"
        ]
      }, 
      "post": {
        "description": "Create a trailer worker for a user and market.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTTrailerWorkerCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTTrailerWorkerResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST MTT trailer worker", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-trailer-workers/bulk-assign": {
      "post": {
        "description": "Endpoints for MTT", 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-trailer-workers/{mtt_trailer_worker_id}": {
      "get": {
        "description": "List trailer workers or fetch a single worker by ID.", 
        "parameters": [
          {
            "in": "query", 
            "name": "user_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "allowed_to_rent", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "in": "query", 
            "name": "active", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Trailer worker ID (path param on item route)", 
            "in": "path", 
            "name": "mtt_trailer_worker_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/MTTTrailerWorkerResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET MTT trailer workers", 
        "tags": [
          "MTT"
        ]
      }, 
      "patch": {
        "description": "Update a trailer worker.", 
        "parameters": [
          {
            "description": "Trailer worker ID", 
            "in": "path", 
            "name": "mtt_trailer_worker_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTTrailerWorkerUpdate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTTrailerWorkerResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH MTT trailer worker", 
        "tags": [
          "MTT"
        ]
      }, 
      "post": {
        "description": "Create a trailer worker for a user and market.", 
        "parameters": [
          {
            "in": "path", 
            "name": "mtt_trailer_worker_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTTrailerWorkerCreate"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTTrailerWorkerResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST MTT trailer worker", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-transaction-slips/checkout": {
      "post": {
        "description": "Create checkout transaction slip for rentals", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTCheckoutTransactionSlipRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTCheckoutTransactionSlipResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 specified company or market does not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST checkout transaction slip", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/mtt-transaction-slips/return": {
      "post": {
        "description": "Create return transaction slip for rentals. Accepts an array of rental_ids as rentals can be returned from multiple orders in a single return transaction.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MTTReturnTransactionSlipRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MTTReturnTransactionSlipResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 specified rentals do not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST return transaction slip", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/mtt/user/permissions": {
      "get": {
        "description": "Returns the subset of the requested permission names that the calling user has been granted. Permission names correspond to SpiceDB company-level permissions (e.g. mtt_hub_on_rent_view). Unknown names are silently excluded (returned as absent). Scoped to the calling user's JWT and company.", 
        "parameters": [
          {
            "description": "Comma-separated list of SpiceDB permission names to check", 
            "example": "mtt_hub_on_rent_view,mtt_hub_workers_view", 
            "in": "query", 
            "name": "names", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Map of granted permission names to true."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET current user's permissions", 
        "tags": [
          "Users"
        ]
      }
    }, 
    "/mtt/{mtt_market_id}/rental-metrics": {
      "get": {
        "description": "Retrieve rental metrics for a specific trailer.", 
        "parameters": [
          {
            "description": "Filter by customer user ID", 
            "in": "query", 
            "name": "customer_user_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "ID of the market to retrieve rental metrics for", 
            "in": "path", 
            "name": "mtt_market_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Rental metrics retrieved successfully."
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET rental metrics", 
        "tags": [
          "MTT"
        ]
      }
    }, 
    "/nfc-read-records": {
      "get": {
        "description": "Retrieve NFC read records for multiple assets and/or companies with optional filtering", 
        "parameters": [
          {
            "description": "Company IDs to fetch records for (can be repeated multiple times)", 
            "example": [
              1, 
              2
            ], 
            "in": "query", 
            "name": "company_ids", 
            "required": false, 
            "schema": {
              "items": {
                "type": "integer"
              }, 
              "type": "array"
            }
          }, 
          {
            "description": "ISO 8601 date/datetime to filter records after this date (defaults to 00:00:00 UTC of current day if not provided)", 
            "example": "2025-10-20", 
            "in": "query", 
            "name": "start_date", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "ISO 8601 date/datetime to filter records before this date", 
            "example": "2025-10-21", 
            "in": "query", 
            "name": "end_date", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "Asset IDs to fetch records for (can be repeated multiple times)", 
            "example": [
              123, 
              456, 
              789
            ], 
            "in": "query", 
            "name": "asset_ids", 
            "required": false, 
            "schema": {
              "items": {
                "type": "integer"
              }, 
              "type": "array"
            }
          }, 
          {
            "description": "Maximum number of records to return (min: 1, max: 1000)", 
            "example": 50, 
            "in": "query", 
            "name": "limit", 
            "required": false, 
            "schema": {
              "default": 500, 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Records returned successfully"
          }, 
          "400": {
            "description": "Invalid parameters - at least one of asset_ids or company_ids must be provided"
          }, 
          "401": {
            "description": "Unauthorized - valid authentication required"
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get NFC read records", 
        "tags": [
          "Access"
        ]
      }
    }, 
    "/orders": {
      "post": {
        "description": "Create order", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderCreateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderCreateResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "409": {
            "description": "Invariant \u2013 the request cannot be successfully performed with the current set of data provided. An order with the same application source ID and reference ID may already exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST orders", 
        "tags": [
          "Orders"
        ]
      }
    }, 
    "/orders/audit-event-types": {
      "get": {
        "description": "Retrieve all order audit event types.", 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrderAuditHistoryEventType"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 admin role required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET order audit event types", 
        "tags": [
          "Order Audit"
        ]
      }
    }, 
    "/orders/audit-ref-types": {
      "get": {
        "description": "Retrieve all order audit ref types.", 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrderAuditHistoryRefType"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 admin role required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET order audit ref types", 
        "tags": [
          "Order Audit"
        ]
      }
    }, 
    "/orders/equipment-availability": {
      "get": {
        "description": "Fetch equipment availability for the specified equipment class within the specified branches", 
        "parameters": [
          {
            "description": "Equipment class ID to check for availability", 
            "in": "query", 
            "name": "equipment_class_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "List of branch IDs to check for availability", 
            "explode": true, 
            "in": "query", 
            "name": "branch_ids", 
            "required": false, 
            "schema": {
              "items": {
                "format": "int32", 
                "type": "integer"
              }, 
              "type": "array"
            }, 
            "style": "form"
          }, 
          {
            "description": "Whether to include availability for similar assets (those of the same equipment category)", 
            "in": "query", 
            "name": "search_similar_assets", 
            "required": false, 
            "schema": {
              "nullable": true, 
              "type": "boolean"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/EquipmentAvailabilityResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "tags": [
          "Orders"
        ]
      }
    }, 
    "/orders/links/counts": {
      "post": {
        "description": "Link counts for many orders in one call, so the Orders table can render its linked-record columns without a request per row. Each order is returned whether or not it has links, and the linked records are included alongside the counts so the breakdown does not need a second call. A symmetric sales-order link is counted once for each of its two orders.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderLinkCountsRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderLinkCountsResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request - validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden - admin role required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST order link counts for a batch of orders", 
        "tags": [
          "Orders"
        ]
      }
    }, 
    "/orders/notifications/{audience}": {
      "get": {
        "description": "Returns the authenticated user's notifications for the given audience, sorted by created_at desc.", 
        "parameters": [
          {
            "description": "The audience", 
            "in": "path", 
            "name": "audience", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "description": "Page size", 
            "in": "query", 
            "name": "page_size", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "Page number (1-indexed)", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }, 
          {
            "description": "ISO timestamp to filter items created after this time", 
            "in": "query", 
            "name": "created_by_after", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Notifications listed."
          }, 
          "400": {
            "description": "Bad request \u2013 invalid audience."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderNotificationListResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "List order notifications", 
        "tags": [
          "OrderNotificationsList"
        ]
      }, 
      "post": {
        "description": "Create a new order notification. Machine token required.", 
        "parameters": [
          {
            "description": "The audience", 
            "in": "path", 
            "name": "audience", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create order notification", 
        "tags": [
          "CreateOrderNotification"
        ]
      }
    }, 
    "/orders/notifications/{audience}/read": {
      "put": {
        "description": "Marks all notifications as read for the authenticated user and audience; idempotent.", 
        "parameters": [
          {
            "description": "The audience", 
            "in": "path", 
            "name": "audience", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Notifications marked as read."
          }, 
          "400": {
            "description": "Bad request \u2013 invalid audience."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderNotificationBulkReadResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Mark all order notifications as read", 
        "tags": [
          "MarkAllOrderNotificationsAsRead"
        ]
      }
    }, 
    "/orders/notifications/{audience}/unread": {
      "get": {
        "description": "Get a count of the number of unread notifications for a given audience for the current user", 
        "parameters": [
          {
            "description": "The audience to get the count for", 
            "in": "path", 
            "name": "audience", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Order notification count retrieved successfully."
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderNotificationCountResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get order notification count", 
        "tags": [
          "OrderNotificationCount"
        ]
      }
    }, 
    "/orders/notifications/{audience}/{order_notification_history_id}/delivered": {
      "put": {
        "description": "Marks a notification as delivered. Machine token required.", 
        "parameters": [
          {
            "description": "Notification ID", 
            "in": "path", 
            "name": "order_notification_history_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The audience", 
            "in": "path", 
            "name": "audience", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Mark order notification as delivered", 
        "tags": [
          "MarkOrderNotificationDelivered"
        ]
      }
    }, 
    "/orders/notifications/{audience}/{order_notification_history_id}/read": {
      "put": {
        "description": "Marks a single notification as read for the authenticated user; idempotent.", 
        "parameters": [
          {
            "description": "Notification ID", 
            "in": "path", 
            "name": "order_notification_history_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The audience", 
            "in": "path", 
            "name": "audience", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Notification marked as read."
          }, 
          "400": {
            "description": "Bad request \u2013 invalid audience."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Mark a single order notification as read", 
        "tags": [
          "MarkOrderNotificationAsRead"
        ]
      }
    }, 
    "/orders/sale-item-fulfillments/create-purchase-order": {
      "post": {
        "description": "Create a product list in inventory from a list of fulfillments, returning a UUID that can be used to open a PO in CostCapture.", 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePurchaseOrderResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request - validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }, 
          "404": {
            "description": "Not Found - user not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST create purchase order from fulfillments", 
        "tags": [
          "SaleItemFulfillmentActions"
        ]
      }
    }, 
    "/orders/sale-item-fulfillments/{action}": {
      "post": {
        "description": "Perform action on sale item fulfillments based on the action parameter", 
        "parameters": [
          {
            "in": "path", 
            "name": "action", 
            "required": true, 
            "schema": {
              "type": "string"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Action completed successfully."
          }, 
          "400": {
            "description": "Bad request - validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden - insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found - user not found."
          }, 
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemFulfillmentResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST sale item fulfillment action", 
        "tags": [
          "SaleItemFulfillmentActions"
        ]
      }
    }, 
    "/orders/sale-items/branch": {
      "post": {
        "description": "Get availability for sale item(s) for a given branch.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaleItemAvailabilityByBranchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemAvailabilityByBranchResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 branch not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get sale item(s) availability for a given branch", 
        "tags": [
          "Order Sale Item Availability"
        ]
      }
    }, 
    "/orders/sale-items/distance": {
      "get": {
        "description": "Get availability for sale item across nearby branches based on distance from a given branch.", 
        "parameters": [
          {
            "in": "query", 
            "name": "branch_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "distance", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "part_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemAvailabilityByDistanceResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 sale items not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET sale item availability across nearby branches", 
        "tags": [
          "Order Sale Item Availability"
        ]
      }
    }, 
    "/orders/sale-items/inventory-details": {
      "post": {
        "description": "Get the owned, allocated and available quantities for sale item(s) at a given branch's default inventory location - the only location sale items reserve from - along with the open reservations holding the allocation and any incoming purchase orders there. Reservations are returned for every holder - orders, work orders and invoices - so the caller can identify its own. `store_inventory` lists every store at the branch.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaleItemInventoryDetailsRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemInventoryDetailsResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 branch not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get detailed inventory availability for sale item(s) at a given branch", 
        "tags": [
          "Order Sale Item Availability"
        ]
      }
    }, 
    "/orders/sale-items/part-number": {
      "post": {
        "description": "Given a list of part numbers, returning retail parts which match any of the part numbers exactly.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaleItemsByPartNumberRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemByPartNumberResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Match sale items by part number", 
        "tags": [
          "Order Sale Item Availability"
        ]
      }
    }, 
    "/orders/search": {
      "get": {
        "description": "Search for orders", 
        "parameters": [
          {
            "description": "Type of order to filter by.", 
            "in": "query", 
            "name": "type", 
            "required": false, 
            "schema": {
              "nullable": true, 
              "type": "string"
            }
          }, 
          {
            "in": "query", 
            "name": "rental_status_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "sale_items_status_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Page number for pagination.", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Number of items per page for pagination.", 
            "in": "query", 
            "name": "size", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "order_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "company_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "branch_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "salesperson_user_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrdersSearchResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET orders search", 
        "tags": [
          "OrdersSearch"
        ]
      }
    }, 
    "/orders/{order_id}": {
      "get": {
        "description": "Get order", 
        "parameters": [
          {
            "description": "The ID of the order to get.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderGetResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 order not found with the given order id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET orders", 
        "tags": [
          "Order"
        ]
      }, 
      "patch": {
        "description": "Update a single order", 
        "parameters": [
          {
            "description": "The ID of the order to patch.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderUpdateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderUpdateResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 order not found with the given order id."
          }, 
          "409": {
            "description": "Invariant \u2013 the request cannot be successfully performed with the current set of data provided."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH orders", 
        "tags": [
          "Order"
        ]
      }
    }, 
    "/orders/{order_id}/audit-history": {
      "get": {
        "description": "Retrieve audit history records for a single order by ID.", 
        "parameters": [
          {
            "description": "Page number for pagination.", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Number of items per page for pagination.", 
            "in": "query", 
            "name": "size", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by order audit ref type ID.", 
            "in": "query", 
            "name": "order_audit_ref_type_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by order audit event type ID.", 
            "in": "query", 
            "name": "order_audit_event_type_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the order to get audit history for.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderAuditHistoryResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 order not found with the given order id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET order audit history", 
        "tags": [
          "Order Audit History"
        ]
      }
    }, 
    "/orders/{order_id}/links": {
      "get": {
        "description": "Related records linked to an order, grouped by type. Sales orders and work orders are hydrated from ESDB; purchase orders are returned as ids for the client to resolve against CostCapture.", 
        "parameters": [
          {
            "description": "The ID of the order.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderLinksResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 admin role required."
          }, 
          "404": {
            "description": "Order not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET order links", 
        "tags": [
          "Orders"
        ]
      }, 
      "post": {
        "description": "Link one or more records of a single type to an order. The batch is all-or-nothing: a rejected id rolls back the rest.", 
        "parameters": [
          {
            "description": "The ID of the order.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrderLinkCreateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderLinksResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Order not found."
          }, 
          "409": {
            "description": "Conflict \u2013 self-link, duplicate link, or unknown linked record."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST order links", 
        "tags": [
          "Orders"
        ]
      }
    }, 
    "/orders/{order_id}/links/{order_link_id}": {
      "delete": {
        "description": "Remove a link from an order. This is a hard delete of the relationship only; the linked record itself is untouched. A symmetric sales-order link can be removed from either side.", 
        "parameters": [
          {
            "description": "The ID of the order.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the order link to remove.", 
            "in": "path", 
            "name": "order_link_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Order link removed successfully."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Order link not found on this order."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE an order link", 
        "tags": [
          "Orders"
        ]
      }
    }, 
    "/orders/{order_id}/rentals/batch-off-rent": {
      "post": {
        "description": "Sets multiple rentals to Off Rent immediately or schedules them for off-rent. All rentals must be of the same type (all now or all scheduled).", 
        "parameters": [
          {
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/BatchOffRent"
                }, 
                "type": "array"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "description": "All rentals updated successfully."
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Some or all rentals not found."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Batch off-rent rentals", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/orders/{order_id}/sale-items": {
      "get": {
        "description": "Retrieve all sale items for an order", 
        "parameters": [
          {
            "description": "Line item product type ID to filter sales items by", 
            "in": "query", 
            "name": "line_item_product_type_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the order associated with the sale items.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemGetResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 sale item not found on the order with the given order id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET sale items", 
        "tags": [
          "SaleItems"
        ]
      }, 
      "patch": {
        "description": "Update sale items associated with an order.", 
        "parameters": [
          {
            "description": "The ID of the order associated with the sale items.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/SaleItemsUpdateRequest"
                }, 
                "type": "array"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Sale items updated successfully."
          }, 
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemGetResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 sale items not found on the order with the given order id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH sale items", 
        "tags": [
          "SaleItems"
        ]
      }, 
      "post": {
        "description": "Create sale items and associate with an order", 
        "parameters": [
          {
            "description": "The ID of the order to associate the sale items with.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "items": {
                  "$ref": "#/components/schemas/SaleItemCreateRequest"
                }, 
                "type": "array"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Sale items created successfully."
          }, 
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemCreateResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST sale items", 
        "tags": [
          "SaleItems"
        ]
      }
    }, 
    "/orders/{order_id}/sale-items/{sale_item_id}": {
      "delete": {
        "description": "Deletes a single sale item with a given sale_item_id from an order", 
        "parameters": [
          {
            "description": "The ID of the order associated with the sale item.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the sale item to delete", 
            "in": "path", 
            "name": "sale_item_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaleItemDeleteResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 sale item not found on the order with the given order id."
          }, 
          "500": {
            "description": "Internal Server Error \u2013 unable to delete sale item."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE single sale item", 
        "tags": [
          "SaleItem"
        ]
      }, 
      "get": {
        "description": "Retrieve a single sale item with a given sale_item_id off an order", 
        "parameters": [
          {
            "description": "The ID of the order associated with the sale item.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the sale item to get from sale items from the order", 
            "in": "path", 
            "name": "sale_item_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemGetResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 sale items not found on the order with the given order id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET single sale item", 
        "tags": [
          "SaleItem"
        ]
      }, 
      "patch": {
        "description": "Update sale item associated with an order.", 
        "parameters": [
          {
            "description": "The ID of the order associated with the sale item.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the sale item to update.", 
            "in": "path", 
            "name": "sale_item_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaleItemUpdateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Sale item updated successfully."
          }, 
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaleItemGetResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }, 
          "404": {
            "description": "Not Found \u2013 sale item not found on the order with the given order id."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH sale item", 
        "tags": [
          "SaleItem"
        ]
      }
    }, 
    "/orders/{order_id}/sale-items/{sale_item_id}/notes": {
      "post": {
        "description": "Create note for a sale items", 
        "parameters": [
          {
            "description": "The ID of the order that the associated sale item belongs to.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the sale item to associate the note with.", 
            "in": "path", 
            "name": "sale_item_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaleItemNoteCreateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "description": "Sale item note created successfully."
          }, 
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaleItemNoteResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST sale item notes", 
        "tags": [
          "SaleItems"
        ]
      }
    }, 
    "/orders/{order_id}/sale-items/{sale_item_id}/notes/{sale_item_note_id}": {
      "delete": {
        "description": "Delete note for a sale item", 
        "parameters": [
          {
            "description": "The ID of the order that the associated sale item belongs to.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the sale item that the note is associated with.", 
            "in": "path", 
            "name": "sale_item_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the sale item note to delete.", 
            "in": "path", 
            "name": "sale_item_note_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "204": {
            "description": "Sale item note deleted successfully."
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE sale item notes", 
        "tags": [
          "SaleItems"
        ]
      }
    }, 
    "/orders/{order_id}/sync-fulfillment-reservations": {
      "post": {
        "description": "Loads open inventory reservations for all part IDs on the order at the order branch. Reduces inventory reservations when they exceed non-excluded fulfillment totals; demotes RESERVED fulfillment quantity to UNRESERVED when inventory ORDER reservations are lower than RESERVED rows (no inventory mutation for that case).", 
        "parameters": [
          {
            "description": "Order ID.", 
            "in": "path", 
            "name": "order_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "description": "Sync completed; body includes parts_checked, adjustments, demotions."
          }, 
          "401": {
            "description": "Unauthorized \u2014 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2014 admin access required."
          }, 
          "404": {
            "description": "Order not found."
          }, 
          "409": {
            "description": "Domain invariant \u2014 e.g. order has no branch."
          }, 
          "500": {
            "description": "Inventory adjustment failed unexpectedly."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST sync fulfillment reservations for order", 
        "tags": [
          "Orders"
        ]
      }
    }, 
    "/rental-below-accounting-floor-reasons": {
      "get": {
        "description": "Returns all below-accounting-floor pricing reasons (id + name) used to populate the reason dropdown when a rental is priced below the accounting floor.", 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RentalBelowAccountingFloorReason"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized - valid Bearer token required."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "List below-accounting-floor pricing reasons", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/rentals/{rental_id}/activities": {
      "get": {
        "description": "Get a list of activities for a rental. The activities include most major things         in a rentals life cycle - both confirmed things that have already happened, as well as anticipated         future activities.", 
        "parameters": [
          {
            "description": "Only return activities of this type.", 
            "explode": true, 
            "in": "query", 
            "name": "type", 
            "required": false, 
            "schema": {
              "items": {
                "type": "string"
              }, 
              "type": "array"
            }, 
            "style": "form"
          }, 
          {
            "description": "Only return activities in this state.", 
            "explode": true, 
            "in": "query", 
            "name": "state", 
            "required": false, 
            "schema": {
              "items": {
                "type": "string"
              }, 
              "type": "array"
            }, 
            "style": "form"
          }, 
          {
            "description": "Only return activities happening in this market/branch (or list of markets/branches, several are allowed).", 
            "explode": true, 
            "in": "query", 
            "name": "market_id", 
            "required": false, 
            "schema": {
              "items": {
                "format": "int32", 
                "type": "integer"
              }, 
              "type": "array"
            }, 
            "style": "form"
          }, 
          {
            "description": "Only return activities happening before this timestamp.", 
            "in": "query", 
            "name": "end", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Only return activities happening after this timestamp.", 
            "in": "query", 
            "name": "start", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "The ID of the rental to get activities for.", 
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RentalActivityResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed data."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "403": {
            "description": "Forbidden \u2013 insufficient permissions to perform this action."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET rental activities", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/rentals/{rental_id}/request-move": {
      "patch": {
        "description": "Creates a move ticket when the asset is confirmed at its current location and a known destination is provided. Sends notification emails to the branch and customer.", 
        "parameters": [
          {
            "description": "The ID of the rental to move", 
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RentalMoveResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "summary": "Request a move for an on-rent rental", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/rentals/{rental_id}/sale-items": {
      "get": {
        "description": "Retrieve sale items associated with a rental, optionally filtered by billing method", 
        "parameters": [
          {
            "description": "The ID of the rental to retrieve sale items for", 
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Optional billing method ID to filter results", 
            "in": "query", 
            "name": "billing_method_id", 
            "required": false, 
            "schema": {
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/SaleItemGetResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "summary": "GET sale items by rental ID", 
        "tags": [
          "Rentals"
        ]
      }
    }, 
    "/rentals/{rental_id}/tracker-health": {
      "get": {
        "description": "Returns health status for a tracker's battery, cellular connection, GPS, and last message. When called via /assets/:id/tracker-health, use ?tracker_id to get health for a specific device instead of the legacy primary. The tracker must be an active device on the asset.", 
        "parameters": [
          {
            "in": "query", 
            "name": "tracker_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "device_serial", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "in": "path", 
            "name": "rental_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackerHealthResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get tracker health status", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/rsp/deliveries/{delivery_id}/sale-items": {
      "patch": {
        "description": "Complete a sale item delivery with explicit fulfillment quantities. Supports partial deliveries: the remainder keeps its status and moves to another ticket, and a Billing Pending fulfillment's invoice line item is split between the two. A Billing Approved fulfillment can only be delivered in full (409).", 
        "parameters": [
          {
            "in": "path", 
            "name": "delivery_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaleItemDeliveryPatchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaleItemDeliveryPatchResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH sale item delivery", 
        "tags": [
          "Deliveries"
        ]
      }
    }, 
    "/run-stops": {
      "get": {
        "description": "Get a paginated list of run stops with optional filters.", 
        "parameters": [
          {
            "description": "Filter by run ID", 
            "in": "query", 
            "name": "run_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by location ID", 
            "in": "query", 
            "name": "location_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by run stop status ID", 
            "in": "query", 
            "name": "run_stop_status_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by branch ID (via delivery order)", 
            "in": "query", 
            "name": "branch_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by scheduled date (ISO date string)", 
            "in": "query", 
            "name": "schedule_date", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "Inclusive start of scheduled date range (ISO datetime). With include_overdue=true, optional inclusive lower bound on overdue deliveries. When omitted, server defaults to scheduled_date_to minus 180 days (clamped to the platform cutoff).", 
            "in": "query", 
            "name": "scheduled_date_from", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "Inclusive end of scheduled date range (ISO datetime). With include_overdue=true, required exclusive upper bound: deliveries scheduled before this instant are overdue (pass the board day start in branch local time as UTC).", 
            "in": "query", 
            "name": "scheduled_date_to", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "When true, return branch-scoped delivery-backed overdue run stops. Requires branch_id and scheduled_date_to.", 
            "in": "query", 
            "name": "include_overdue", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "When true, return only run stops with no run_id. Intended for dispatch upcoming window calls.", 
            "in": "query", 
            "name": "unassigned_only", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Include associated deliveries (default: false)", 
            "in": "query", 
            "name": "include_deliveries", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "When include_deliveries=true, return the narrow dispatch-board delivery payload (see RunStopsListDispatchResponseSchema) instead of the standard delivery shape.", 
            "in": "query", 
            "name": "include_dispatch_delivery_details", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "When branch_id is provided, also include stops for pending return deliveries (final_return, partial_return, swap_return) with requested or confirmed status for that branch. final_return/swap_return require a post_on_rent rental; partial_return is included even when the rental is still On Rent (bulk partial off-rent). Default: false; has no effect without branch_id.", 
            "in": "query", 
            "name": "include_returns", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Page number for pagination (default: 1)", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Page size (default: 50, max: 200)", 
            "in": "query", 
            "name": "size", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunStopsListResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET run stops", 
        "tags": [
          "Run Stops"
        ]
      }, 
      "post": {
        "description": "Create a new run stop and assign deliveries to it.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunStopsListPostRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunStopResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST run stop", 
        "tags": [
          "Run Stops"
        ]
      }
    }, 
    "/run-stops/batch": {
      "patch": {
        "description": "Atomically update stop_sequence, run_id, and/or delivery order for multiple run stops in a single transaction.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunStopBulkPatchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH run stops (bulk)", 
        "tags": [
          "Run Stops"
        ]
      }
    }, 
    "/run-stops/recalculate": {
      "post": {
        "description": "Queries deliveries in requested status and ensures each one has a correct stop assignment. Creates missing stops and fixes incorrect ones. Note: delivery_ids narrows which deliveries are examined but does not bypass the requested-status filter.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecalculateRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Recalculate run stop assignments", 
        "tags": [
          "Run Stops"
        ]
      }
    }, 
    "/run-stops/{run_stop_id}": {
      "delete": {
        "description": "Delete a run stop. Only planned stops with no associated deliveries can be deleted.", 
        "parameters": [
          {
            "in": "path", 
            "name": "run_stop_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE run stop", 
        "tags": [
          "Run Stops"
        ]
      }, 
      "get": {
        "description": "Retrieve a single run stop by ID including nested location info and associated deliveries.", 
        "parameters": [
          {
            "description": "Include associated deliveries (default: true)", 
            "in": "query", 
            "name": "include_deliveries", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "When include_deliveries=true, return the narrow dispatch-board delivery payload (default: true). Set false for the legacy standard delivery shape with sale_items.", 
            "in": "query", 
            "name": "include_dispatch_delivery_details", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "in": "path", 
            "name": "run_stop_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunStopResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET run stop", 
        "tags": [
          "Run Stops"
        ]
      }, 
      "patch": {
        "description": "Update a run stop's sequence, run assignment, or delivery order.", 
        "parameters": [
          {
            "in": "path", 
            "name": "run_stop_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunStopPatchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH run stop", 
        "tags": [
          "Run Stops"
        ]
      }
    }, 
    "/run-stops/{run_stop_id}/deliveries": {
      "post": {
        "description": "Append specified deliveries to an existing run stop, detaching them from their current stops.", 
        "parameters": [
          {
            "in": "path", 
            "name": "run_stop_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunStopPatchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunStopResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST append deliveries to run stop", 
        "tags": [
          "Run Stops"
        ]
      }
    }, 
    "/runs": {
      "get": {
        "description": "Get a paginated list of runs with optional filters.", 
        "parameters": [
          {
            "description": "Filter by run status ID", 
            "in": "query", 
            "name": "run_status_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by assigned driver", 
            "in": "query", 
            "name": "driver_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by assigned vehicle", 
            "in": "query", 
            "name": "vehicle_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter by assigned trailer", 
            "in": "query", 
            "name": "trailer_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Filter runs with run_planned_time >= start_date (ISO date string)", 
            "in": "query", 
            "name": "start_date", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "Filter runs with run_planned_time <= end_date (ISO date string)", 
            "in": "query", 
            "name": "end_date", 
            "required": false, 
            "schema": {
              "format": "date-time", 
              "type": "string"
            }
          }, 
          {
            "description": "Filter by branch ID (via run stops and deliveries)", 
            "in": "query", 
            "name": "branch_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Include nested run stops (default: true)", 
            "in": "query", 
            "name": "include_stops", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Include deliveries within stops (default: false)", 
            "in": "query", 
            "name": "include_deliveries", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Page number for pagination (default: 1)", 
            "in": "query", 
            "name": "page", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "description": "Page size (default: 50, max: 200)", 
            "in": "query", 
            "name": "size", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunsListResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET runs", 
        "tags": [
          "Runs"
        ]
      }, 
      "post": {
        "description": "Create a new run. Auto-generates a unique run_number if not provided.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunsListPostRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST run", 
        "tags": [
          "Runs"
        ]
      }
    }, 
    "/runs/{run_id}": {
      "delete": {
        "description": "Delete a run. Only planned runs can be deleted.", 
        "parameters": [
          {
            "in": "path", 
            "name": "run_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE run", 
        "tags": [
          "Runs"
        ]
      }, 
      "get": {
        "description": "Retrieve a single run by ID including nested stops, driver info, vehicle, and trailer.", 
        "parameters": [
          {
            "description": "Include nested run stops (default: true)", 
            "in": "query", 
            "name": "include_stops", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "description": "Include deliveries within stops (default: false)", 
            "in": "query", 
            "name": "include_deliveries", 
            "required": false, 
            "schema": {
              "type": "boolean"
            }
          }, 
          {
            "in": "path", 
            "name": "run_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RunResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET run", 
        "tags": [
          "Runs"
        ]
      }, 
      "patch": {
        "description": "Update a run's details including driver, vehicle, trailer, and status.", 
        "parameters": [
          {
            "in": "path", 
            "name": "run_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunPatchRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH run", 
        "tags": [
          "Runs"
        ]
      }
    }, 
    "/trackers/{tracker_id}/tracker-health": {
      "get": {
        "description": "Returns health status for a tracker's battery, cellular connection, GPS, and last message. When called via /assets/:id/tracker-health, use ?tracker_id to get health for a specific device instead of the legacy primary. The tracker must be an active device on the asset.", 
        "parameters": [
          {
            "in": "query", 
            "name": "tracker_id", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "device_serial", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "in": "path", 
            "name": "tracker_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackerHealthResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get tracker health status", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/users/fulfillment-notification-preferences": {
      "get": {
        "description": "Fetches a user's fulfillment notification preference. If the user has no preference row yet, all notification types are returned as not-subscribed (false).", 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FulfillmentNotificationPreferenceResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "404": {
            "description": "Not Found \u2013 user does not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET fulfillment notification preferences", 
        "tags": [
          "Notifications"
        ]
      }, 
      "patch": {
        "description": "Upserts a user's fulfillment notification preference. Only the notification types provided in the payload are updated.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FulfillmentNotificationPreferences"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FulfillmentNotificationPreferenceResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed payload."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "404": {
            "description": "Not Found \u2013 user does not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH fulfillment notification preferences", 
        "tags": [
          "Notifications"
        ]
      }
    }, 
    "/users/{user_id}/fulfillment-notification-preferences": {
      "get": {
        "description": "Fetches a user's fulfillment notification preference. If the user has no preference row yet, all notification types are returned as not-subscribed (false).", 
        "parameters": [
          {
            "description": "Optional user id. Defaults to the requesting user's id.", 
            "in": "path", 
            "name": "user_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FulfillmentNotificationPreferenceResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "404": {
            "description": "Not Found \u2013 user does not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "GET fulfillment notification preferences", 
        "tags": [
          "Notifications"
        ]
      }, 
      "patch": {
        "description": "Upserts a user's fulfillment notification preference. Only the notification types provided in the payload are updated.", 
        "parameters": [
          {
            "description": "Optional user id. Defaults to the requesting user's id.", 
            "in": "path", 
            "name": "user_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FulfillmentNotificationPreferences"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FulfillmentNotificationPreferenceResponse"
                }
              }
            }, 
            "description": ""
          }, 
          "400": {
            "description": "Bad request \u2013 validation failed or malformed payload."
          }, 
          "401": {
            "description": "Unauthorized \u2013 valid Bearer token required."
          }, 
          "404": {
            "description": "Not Found \u2013 user does not exist."
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH fulfillment notification preferences", 
        "tags": [
          "Notifications"
        ]
      }
    }, 
    "/v1/assets/bulk": {
      "patch": {
        "description": "This method updates multiple assets in a single request.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkUpdateRequestAssets"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "content": {
              "application/json": {
                "schema": {}
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "PATCH assets in bulk", 
        "tags": [
          "Assets"
        ]
      }, 
      "post": {
        "description": "This method creates multiple assets in a single request.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkCreateAssetRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CreateAssetResponse"
                  }, 
                  "type": "array"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Create assets in bulk", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/v1/assets/{asset_id}/archive": {
      "post": {
        "description": "This method archives a single asset in a request.", 
        "parameters": [
          {
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveAssetRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "content": {
              "application/json": {
                "schema": {}
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "POST archive an asset", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/v1/assets/{asset_id}/device-mappings": {
      "patch": {
        "description": "Install, uninstall, and update device entries on an asset in a single atomic request. Processing order: uninstalls, then updates, then installs. Maintains audit history (uninstalled devices are kept with date_uninstalled set). Supports USER, USER_LEGACY, and M2M authentication.", 
        "parameters": [
          {
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDeviceMappingsRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDeviceMappingsResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Update device mappings on an asset", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/v1/assets/{asset_id}/pim-product-link": {
      "patch": {
        "description": "Sets or clears pim_product_id on an asset without modifying equipment_model_id or equipment_make_id. Pass a UUID to soft-link the asset to that product. Pass null to clear the existing link. The field itself is required so callers must be explicit about intent \u2014 omitting it is rejected as a malformed request. When a UUID is supplied, the product must exist and belong to the asset's company or the global PIM tenant. The unlink path performs no PIM lookup. Bypasses the standard PIM make/model derivation and enrollment checks; intended for the read-only PIM matching workflow.", 
        "parameters": [
          {
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetAssetPimProductLinkRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "204": {
            "content": {
              "application/json": {
                "schema": {}
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Soft-link or unlink a PIM product to an asset", 
        "tags": [
          "Assets"
        ]
      }
    }, 
    "/v1/pim/sync-makes": {
      "post": {
        "description": "This endpoint performs an idempotent CRUD operations on PIM makes to make sure they are properly reflected as equipment_makes in ESDB.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PimMakeSyncRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Perform sync of provided PIM makes to equipment_makes", 
        "tags": [
          "PIM"
        ]
      }
    }, 
    "/v1/pim/sync-products": {
      "post": {
        "description": "This endpoint performs an idempotent CRUD operations on PIM products to make sure they are properly reflected as equipment_models in ESDB.", 
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PimModelSyncRequest"
              }
            }
          }, 
          "required": true
        }, 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Perform sync of provided PIM products to equipment_models", 
        "tags": [
          "PIM"
        ]
      }
    }, 
    "/v1/pim/{company_id}/makes": {
      "delete": {
        "description": "This endpoint deletes all of the PIM synchronised makes for a given company.", 
        "parameters": [
          {
            "in": "query", 
            "name": "batch_size", 
            "required": false, 
            "schema": {
              "default": 1000, 
              "format": "int32", 
              "maximum": 10000, 
              "minimum": 1, 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "dry_run", 
            "required": false, 
            "schema": {
              "default": false, 
              "type": "boolean"
            }
          }, 
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PimResetMakesResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE all synced equipment makes for a company", 
        "tags": [
          "PIM"
        ]
      }
    }, 
    "/v1/pim/{company_id}/models": {
      "delete": {
        "description": "This endpoint deletes all of the PIM synchronised models for a given company.", 
        "parameters": [
          {
            "in": "query", 
            "name": "batch_size", 
            "required": false, 
            "schema": {
              "default": 1000, 
              "format": "int32", 
              "maximum": 10000, 
              "minimum": 1, 
              "type": "integer"
            }
          }, 
          {
            "in": "query", 
            "name": "dry_run", 
            "required": false, 
            "schema": {
              "default": false, 
              "type": "boolean"
            }
          }, 
          {
            "in": "path", 
            "name": "company_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PimResetModelsResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "DELETE all synced equipment models for a company", 
        "tags": [
          "PIM"
        ]
      }
    }, 
    "/v1/slap-n-track-events": {
      "get": {
        "description": "Retrieves the latest Slap-N-Track events for the last specified number of hours.", 
        "parameters": [
          {
            "in": "query", 
            "name": "last_n_hours", 
            "required": false, 
            "schema": {
              "format": "int32", 
              "maximum": 4, 
              "minimum": 1, 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "default": {
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get Slap-N-Track events", 
        "tags": [
          "Slap-N-Track Events"
        ]
      }
    }, 
    "/v2/assets/{asset_id}/status": {
      "get": {
        "description": "Returns telemetry data for each active device on the asset. Devices are sourced from device_mappings, ordered by logical_order (legacy_primary first). Telemetry is sourced from assets-data-service. If assets-data-service is unavailable, devices are returned with null telemetry and telemetry_available=false. Null telemetry values are omitted from the response.", 
        "parameters": [
          {
            "in": "query", 
            "name": "device_serial", 
            "required": false, 
            "schema": {
              "type": "string"
            }
          }, 
          {
            "in": "path", 
            "name": "asset_id", 
            "required": true, 
            "schema": {
              "format": "int32", 
              "type": "integer"
            }
          }
        ], 
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetDeviceStatusResponse"
                }
              }
            }, 
            "description": ""
          }
        }, 
        "security": [
          {
            "Bearer": []
          }
        ], 
        "summary": "Get per-device status for an asset", 
        "tags": [
          "Assets"
        ]
      }
    }
  }
}
