| Time | Status | User Agent |  |
| :-- | :-- | :-- | :-- |
| Make a request to see history. |

#### URL Expired

The URL for this request expired after 30 days.

### API Specifications

**Parameters**

- **id**  
  integer (required)  
  The id of the dealership

- **start_at**  
  date-time (required)  
  The timestamp for the start of the range to fetch contracts for (inclusive)

- **end_at**  
  date-time (required)  
  The timestamp for the end of the range to fetch contracts for (inclusive)

- **api-version**  
  integer (required)  
  Target API version

### Responses

#### Success (200)

```json
{
  "vehicle_groups": [
    {
      "id": 1,
      "contracts": [
        {
          "id": 1,
          "status": "pending",
          "vehicle_id": 1,
          "customer": {
            "id": 1,
            "full_name": "Frodo Baggins"
          },
          "scheduled_pickup_at": "2022-05-19T16:22:26Z",
          "scheduled_dropoff_at": "2022-08-10T14:15:30Z",
          "actual_pickup_at": "2022-05-19T16:22:26Z",
          "actual_dropoff_at": "2022-08-10T14:15:30Z"
        }
      ],
      "vehicles": [
        {
          "id": 1,
          "trim": {
            "make": "Toyota",
            "model": "Corolla",
            "power_train": "mechanical",
            "year": 1999
          }
        }
      ]
    }
  ]
}
```

#### Error Responses

- **Unauthorized (401)**
- **Forbidden (403)**
- **Not Found (404)**

### Example Request

```bash
curl --request GET \
     --url https://api.dealerware.com/admin/dealerships/id/fleets/contracts_vehicles \
     --header 'accept: application/json'
```
