Tradera.com logotype

Tradera Developer Program

PublicService

Documentation Version 2 > PublicService

Services that can be called without any specific authorization (except for a Developer account).

The following operations are supported. For a formal definition, please review the Service Description.

  • FetchToken

    Returns a previously created authorization token for the specified user.

    Parameters
    1. userId, The Id of the user
    2. secretKey, The secret key used when the token was created
    Returns

    The authorization Token object

  • GetAcceptedBidderTypes

    Returns the available accepted bidder types.

    Returns

    Array of IdDescriptionPair objects

  • GetBuyerPaysShippingTypes

    Returns the available types of shipping when the buyer pays freight.

    Returns

    Array of IdDescriptionPair objects

  • GetCategories

    Returns a hierarchy of Category objects.

    Returns

    Hierarchy of Category objects

  • GetCounties

    Returns a list of counties that can be used in the search query
    in the method GetSearchResultAdvanced .

    Returns

    Array of IdDescriptionPair objects

  • GetExpoItemTypes

    Returns the available expo item types. Includes the price in SEK as Value,
    for possible total fee calculation in the client application.

    Returns

    Array of IdDescriptionPair objects

  • GetInternetPaymentTypes

    Returns the available Internet payment types.

    Returns

    Array of IdDescriptionPair objects

  • GetItem

    Gets an Item.

    Parameters
    1. itemId, The Id of the Item (auction)
    Returns

    Item (auction) object

  • GetItemTypes

    Returns the available item types.

    Returns

    Array of IdDescriptionPair objects

  • GetOfficalTime

    Returns the offical Tradera.com local time (for use with auction endings).

    Returns

    Offical Tradera.com local time

  • GetPaymentTypes

    Returns the available payment types.

    Returns

    Array of IdDescriptionPair objects

  • GetSearchResult

    Search for items.

    Parameters
    1. query, The search query
    2. categoryId, The Id of the category to search in (0 for all categories)
    3. pageNumber, The page to return, starting with 1 for the first page.
    4. orderBy, How the results should be ordered
    Returns

    Filled SearchResult object

  • GetSearchResultAdvanced

    Search for items with advanced parameters.

    Parameters
    1. query, The Query with search parameters.
    Returns

    Filled SearchResult object

  • GetSearchResultAdvancedXml

    Search for items with advanced parameters, using an XML string.
    SOAP clients are encouraged to use the GetSearchResultAdvanced method instead.

    Parameters
    1. queryXml, XML data containing parameters for the query. XML format:

      <Query>
      <SearchWords>string</SearchWords>
      <CategoryId>int</CategoryId>
      <SearchInDescription>bool</SearchInDescription>
      <Mode>int or string</Mode>
      <PriceMinimum>int</PriceMinimum>
      <PriceMaximum>int</PriceMaximum>
      <BidsMinimum>int</BidsMinimum>
      <BidsMaximum>int</BidsMaximum>
      <ZipCode>string</ZipCode>
      <CountyId>int</CountyId>
      <Alias>string</Alias>
      <OrderBy>int or string</OrderBy>
      <ItemStatus>int or string</ItemStatus>
      <ItemType>int or string</ItemType>
      <OnlyAuctionsWithBuyNow>bool</OnlyAuctionsWithBuyNow>
      <OnlyItemsWithThumbnail>bool</OnlyItemsWithThumbnail>
      <ItemsPerPage>int</ItemsPerPage>
      <PageNumber>int</PageNumber>

      </Query>
      See the Query class for a description of the parameters.
    Returns

    Filled SearchResult object

  • GetSellerItems

    Gets items for a seller.

    Parameters
    1. userId, The user Id of the seller
    2. categoryId, The Id of the category to look for items in (use 0 for all categories)
    3. filterType, The filter to use:
      0 = All (max 60 days old items),
      1 = Only active items (EndDate > NOW),
      2 = Only inactive items (EndDate < NOW)

      Can be overridden with either the minEndDate or maxEndate parameters.
    4. minEndDate, Will return items with EndDate > than this parameter.
      Either send NULL or a DateTime <= DateTime.MinValue (0001-01-01 00:00:00) if not used.
      Note that no auctions older than 60 days will be returned regardless of minEndDate sent.
    5. maxEndDate, Will return items with EndDate < than this parameter.
      Either send NULL or a DateTime >= DateTime.MaxValue (9999-12-31 00:00:00) if not used.
    Returns

    Array of items (auctions)

  • GetShippingPaymentTypes

    Returns the available shipping payment types.

    Returns

    Array of IdDescriptionPair objects

XHTML CSS