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

#### URL Expired

The URL for this request expired after 30 days.

### Parameters

- **dealership_id**  
  integer  
  required  
  The id of the dealership

- **pickup_on**  
  date  
  required  
  Pickup Date

- **dropoff_on**  
  date  
  required  
  Dropoff Date

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

### Responses

# ``200      Success

object

- **pickups**  
  array of objects
  - **pickups**  
    object
    - **available**  
      boolean
    - **start_at**  
      string
    - **end_at**  
      string

- **dropoffs**  
  array of objects
  - **dropoffs**  
    object
    - **available**  
      boolean
    - **start_at**  
      string
    - **end_at**  
      string

# ``400      Bad Request

# ``404      Not found

# ``406      Not Acceptable

# ``422      Unprocessable Content

### Updated 3 months ago

* * *

### Example Request

```bash
curl --request GET \
     --url https://api.dealerware.com/dealerships/dealership_id/availability \
     --header 'accept: application/json'
```

### Example Response

```json
{
  "pickups": [
    {
      "available": true,
      "start_at": "2017-09-06T10:00:00Z",
      "end_at": "2017-09-06T13:00:00Z"
    }
  ],

"dropoffs": [
    {
      "available": true,
      "start_at": "2017-09-06T10:00:00Z",
      "end_at": "2017-09-06T13:00:00Z"
    }
  ]
}
```
