GET route/{routes}/exceptions/{booking}

Retrieve a list with all service exceptions for the given route(s).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
routes

Comma separated list of routes for which route exceptions should be retrieved or 'ALL' to select of the routes

string

Required

booking

Unique id that represents a specific schedule for the peiod of time associated with the data to be retrieved Use 'Current' or leave empty to return exceptions for the current schedule. Use 'Next' to return exceptions for the next schedule once it's available. Use BookingId to return exceptions for a specific schedule.

string

None.

Body Parameters

None.

Response Information

Resource Description

RouteExceptions
NameDescriptionTypeAdditional information
BookingId

Unique id that represents a specific schedule name for the period of time associated with the data requested

string

None.

DateExceptions

Collection of date exceptions

Collection of DateException

None.

Response Formats

application/json, text/json

Sample:
{
  "BookingId": "sample string 1",
  "DateExceptions": [
    {
      "RouteId": "sample string 1",
      "ServiceExceptions": [
        {
          "ExceptionCode": "sample string 1",
          "PatternId": "sample string 2",
          "TripId": [
            "sample string 1",
            "sample string 2"
          ],
          "OperatingDays": "sample string 3",
          "ExceptionDates": [
            "sample string 1",
            "sample string 2"
          ],
          "ExceptionNotices": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "ExceptionCode": "sample string 1",
          "PatternId": "sample string 2",
          "TripId": [
            "sample string 1",
            "sample string 2"
          ],
          "OperatingDays": "sample string 3",
          "ExceptionDates": [
            "sample string 1",
            "sample string 2"
          ],
          "ExceptionNotices": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ]
    },
    {
      "RouteId": "sample string 1",
      "ServiceExceptions": [
        {
          "ExceptionCode": "sample string 1",
          "PatternId": "sample string 2",
          "TripId": [
            "sample string 1",
            "sample string 2"
          ],
          "OperatingDays": "sample string 3",
          "ExceptionDates": [
            "sample string 1",
            "sample string 2"
          ],
          "ExceptionNotices": [
            "sample string 1",
            "sample string 2"
          ]
        },
        {
          "ExceptionCode": "sample string 1",
          "PatternId": "sample string 2",
          "TripId": [
            "sample string 1",
            "sample string 2"
          ],
          "OperatingDays": "sample string 3",
          "ExceptionDates": [
            "sample string 1",
            "sample string 2"
          ],
          "ExceptionNotices": [
            "sample string 1",
            "sample string 2"
          ]
        }
      ]
    }
  ]
}

text/html

Sample:
{"BookingId":"sample string 1","DateExceptions":[{"RouteId":"sample string 1","ServiceExceptions":[{"ExceptionCode":"sample string 1","PatternId":"sample string 2","TripId":["sample string 1","sample string 2"],"OperatingDays":"sample string 3","ExceptionDates":["sample string 1","sample string 2"],"ExceptionNotices":["sample string 1","sample string 2"]},{"ExceptionCode":"sample string 1","PatternId":"sample string 2","TripId":["sample string 1","sample string 2"],"OperatingDays":"sample string 3","ExceptionDates":["sample string 1","sample string 2"],"ExceptionNotices":["sample string 1","sample string 2"]}]},{"RouteId":"sample string 1","ServiceExceptions":[{"ExceptionCode":"sample string 1","PatternId":"sample string 2","TripId":["sample string 1","sample string 2"],"OperatingDays":"sample string 3","ExceptionDates":["sample string 1","sample string 2"],"ExceptionNotices":["sample string 1","sample string 2"]},{"ExceptionCode":"sample string 1","PatternId":"sample string 2","TripId":["sample string 1","sample string 2"],"OperatingDays":"sample string 3","ExceptionDates":["sample string 1","sample string 2"],"ExceptionNotices":["sample string 1","sample string 2"]}]}]}

application/xml, text/xml

Sample:
<RouteExceptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <BookingId>sample string 1</BookingId>
  <DateExceptions>
    <DateException>
      <RouteId>sample string 1</RouteId>
      <ServiceExceptions>
        <ServiceException>
          <ExceptionCode>sample string 1</ExceptionCode>
          <ExceptionDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionDates>
          <ExceptionNotices xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionNotices>
          <OperatingDays>sample string 3</OperatingDays>
          <PatternId>sample string 2</PatternId>
          <TripId xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </TripId>
        </ServiceException>
        <ServiceException>
          <ExceptionCode>sample string 1</ExceptionCode>
          <ExceptionDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionDates>
          <ExceptionNotices xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionNotices>
          <OperatingDays>sample string 3</OperatingDays>
          <PatternId>sample string 2</PatternId>
          <TripId xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </TripId>
        </ServiceException>
      </ServiceExceptions>
    </DateException>
    <DateException>
      <RouteId>sample string 1</RouteId>
      <ServiceExceptions>
        <ServiceException>
          <ExceptionCode>sample string 1</ExceptionCode>
          <ExceptionDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionDates>
          <ExceptionNotices xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionNotices>
          <OperatingDays>sample string 3</OperatingDays>
          <PatternId>sample string 2</PatternId>
          <TripId xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </TripId>
        </ServiceException>
        <ServiceException>
          <ExceptionCode>sample string 1</ExceptionCode>
          <ExceptionDates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionDates>
          <ExceptionNotices xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </ExceptionNotices>
          <OperatingDays>sample string 3</OperatingDays>
          <PatternId>sample string 2</PatternId>
          <TripId xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>sample string 1</d6p1:string>
            <d6p1:string>sample string 2</d6p1:string>
          </TripId>
        </ServiceException>
      </ServiceExceptions>
    </DateException>
  </DateExceptions>
</RouteExceptions>