GET api/Carrier/{id}

Get a specific carrier by id.

Request Information

Parameters

NameDescriptionAdditional information
id
The id of the carrier to retrieve

Define this parameter in the request URI.

Response Information

The name and id of the carrier requested.

Response body formats

application/json, text/json

Sample:
{
  "Id": "3170578d-0492-4b74-b7cb-205c3c49a3ab",
  "Name": "sample string 2",
  "ShippingOptions": [
    {
      "Id": 1,
      "Description": "sample string 2",
      "Rate": 1.0,
      "TransitTimeInDays": 1
    },
    {
      "Id": 1,
      "Description": "sample string 2",
      "Rate": 1.0,
      "TransitTimeInDays": 1
    },
    {
      "Id": 1,
      "Description": "sample string 2",
      "Rate": 1.0,
      "TransitTimeInDays": 1
    }
  ]
}

application/xml, text/xml

Sample:
<Carrier xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Id>3170578d-0492-4b74-b7cb-205c3c49a3ab</Id>
  <Name>sample string 2</Name>
  <ShippingOptions>
    <ShippingOptionsDTO>
      <Id>1</Id>
      <Description>sample string 2</Description>
      <Rate>1</Rate>
      <TransitTimeInDays>1</TransitTimeInDays>
    </ShippingOptionsDTO>
    <ShippingOptionsDTO>
      <Id>1</Id>
      <Description>sample string 2</Description>
      <Rate>1</Rate>
      <TransitTimeInDays>1</TransitTimeInDays>
    </ShippingOptionsDTO>
    <ShippingOptionsDTO>
      <Id>1</Id>
      <Description>sample string 2</Description>
      <Rate>1</Rate>
      <TransitTimeInDays>1</TransitTimeInDays>
    </ShippingOptionsDTO>
  </ShippingOptions>
</Carrier>