Website logo

Get a list of Shipping Carriers

Retrieves a list of valid Carriers to be used when creating a Shipping Template.

URL: https://api.trademe.co.nz/v1/Shipping/Carriers.{file_format}
HTTP Method: GET
Requires Authentication? Yes
Permission Required: None
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

file_format Enumeration (required) The format of the response.
xml Serialize responses into XML.
json Serialize responses into JSON.

Returns

Collection of <Carrier>

CarrierId Integer

Unique identifier of the Carrier

Name String or null

The name of the Carrier

Example XML Response (switch to JSON)

<CarrierCollection xmlns="http://api.trademe.co.nz/v1">
  <Carrier>
    <CarrierId>123</CarrierId>
    <Name>ABC</Name>
  </Carrier>
  <Carrier>
    <CarrierId>123</CarrierId>
    <Name>ABC</Name>
  </Carrier>
</CarrierCollection>

Example JSON Response (switch to XML)

[
  {
    "CarrierId": 123,
    "Name": "ABC"
  },
  {
    "CarrierId": 123,
    "Name": "ABC"
  }
]