GET v1/delayTypes/{companyCode}?apiToken={apiToken}

Returns a list of all delay types associated with a specific company

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyCode

The company code you are retreiving information for

string

Required

apiToken

Your API Token

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 2",
    "isVesselStopped": true,
    "reasons": [
      {
        "id": 1,
        "name": "sample string 2",
        "subReasons": [
          {
            "id": 1,
            "name": "sample string 2"
          },
          {
            "id": 1,
            "name": "sample string 2"
          }
        ]
      },
      {
        "id": 1,
        "name": "sample string 2",
        "subReasons": [
          {
            "id": 1,
            "name": "sample string 2"
          },
          {
            "id": 1,
            "name": "sample string 2"
          }
        ]
      }
    ],
    "code": "sample string 4"
  },
  {
    "id": 1,
    "name": "sample string 2",
    "isVesselStopped": true,
    "reasons": [
      {
        "id": 1,
        "name": "sample string 2",
        "subReasons": [
          {
            "id": 1,
            "name": "sample string 2"
          },
          {
            "id": 1,
            "name": "sample string 2"
          }
        ]
      },
      {
        "id": 1,
        "name": "sample string 2",
        "subReasons": [
          {
            "id": 1,
            "name": "sample string 2"
          },
          {
            "id": 1,
            "name": "sample string 2"
          }
        ]
      }
    ],
    "code": "sample string 4"
  }
]

application/xml, text/xml

Sample:
<DelayTypes xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DelayType>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <IsVesselStopped>true</IsVesselStopped>
    <Reasons>
      <Reason>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <SubReasons>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
        </SubReasons>
      </Reason>
      <Reason>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <SubReasons>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
        </SubReasons>
      </Reason>
    </Reasons>
    <Code>sample string 4</Code>
  </DelayType>
  <DelayType>
    <ID>1</ID>
    <Name>sample string 2</Name>
    <IsVesselStopped>true</IsVesselStopped>
    <Reasons>
      <Reason>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <SubReasons>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
        </SubReasons>
      </Reason>
      <Reason>
        <ID>1</ID>
        <Name>sample string 2</Name>
        <SubReasons>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
          <SubReason>
            <ID>1</ID>
            <Name>sample string 2</Name>
          </SubReason>
        </SubReasons>
      </Reason>
    </Reasons>
    <Code>sample string 4</Code>
  </DelayType>
</DelayTypes>