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": "131d6fa0-8619-4a15-89c9-e750b1165248", "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>131d6fa0-8619-4a15-89c9-e750b1165248</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>