GET api/Carrier/{id}
Get a specific carrier by id.
Request Information
Parameters
Name | Description | Additional 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": "b23fb426-f8d5-4115-83bf-8b16e33ea25e", "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>b23fb426-f8d5-4115-83bf-8b16e33ea25e</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>