Discussion

Given only a facility id, the default behavior of this endpoint will return relevent rate history details (for ALL units) with an effective_datetime falling on or between the beginning-of-day and end-of-day on which the request was made.
Optional: A unit_id may be supplied with the request, limiting the response results to rate history details associated with the given unit.
Optional: A start_date and end_date may be supplied with the request, which can provide rate history details over a span of time vs. the default behavior which is a 1 day timespan. The start_date and end_date may be no more than 31 days from one another.

Examples

GET /v1/e5e6236c-050f-4f28-b5c4-b57ce5ddfadb/units/rate_history?start_date=2020-02-25&end_date=2020-03-25
200
{
  "units_rate_history": [
    {
      "unit_name": "477",
      "unit_id": "c5e08455-962b-438b-8ca1-2f539fcf9ba0",
      "rate_type": "standard",
      "rate": 39.0,
      "effective_datetime": "2020-03-11T16:15:52.851-04:00",
      "event_id": "a019c89c-603e-40c9-93c0-2fbb506e5716"
    },
    {
      "unit_name": "588",
      "unit_id": "a2a08455-962b-438b-8ca1-2f539fcf9ba0",
      "rate_type": "managed",
      "rate": 39.0,
      "effective_datetime": "2020-02-25T12:21:44.536-05:00",
      "event_id": "a489c18f-57ec-4126-a2f1-2b22a4783cf0"
    },
    {
      "unit_name": "A140",
      "unit_id": "d9d08455-962b-438b-8ca1-2f539fcf9ba0",
      "rate_type": "Web",
      "rate": 49.0,
      "effective_datetime": "2020-02-25T12:21:44.512-05:00",
      "event_id": "37ebf846-3c71-4384-a9cd-c2187d2fcc2e"
    }
  ],
  "meta": {
    "status_code": 200,
    "status_message": "OK",
    "status_cat": "https://http.cat/200",
    "request_method": "GET",
    "request_id": null,
    "parameters": {
      "facility_id": "e5e6236c-050f-4f28-b5c4-b57ce5ddfadb",
      "start_date": "2020-02-25",
      "end_date": "2020-03-25"
    }
  }
}