Services that require authorization from the Tradera user being impersonated.
The following operations are supported. For a formal definition, please review the Service Description.
-
AddItem
Adds an ItemRequest to the queue.
If uploading images, set the property AutoCommit to false, call AddItemImage for every image, and then
call AddItemCommit after the last image.
Parameters- itemRequest, Object containing the values for the new Item
ReturnsThe reserved Id of the Item request
-
AddItemCommit
Commits the Item-request so that it can be processed into the Tradera system.
Call this method after uploading all images.
Parameters- itemId, The reserved Id of an Item request, created with a call to AddItem or AddItemXml
-
AddItemImage
Uploads an image, and attaches it to a previously created ItemRequest .
Please note that the ItemRequest must be set to AutoCommit == false.
Parameters- itemId, The reserved Id of an Item request, created with a call to AddItem or AddItemXml
- imageData, The image data, including file headers and so on
- imageFormat, The type/format of image being uploaded
- hasMega, If the image should have a Mega-image (extra large)
-
AddItemXml
Adds an ItemRequest to the queue, using an XML string. SOAP clients are encouraged to use the AddItem method instead.
If uploading images, set the element AutoCommit to false, call AddItemImage for every image, and then
call AddItemCommit after the last image. For more information about the different elements in the Request XML,
see the ItemRequest class.
Parameters- createItemRequestXml, XML data containing the values for the new Item. XML format:
<CreateItemRequest>
<Title>string</Title>
<OwnRef>string</OwnRef>
<CategoryId>int</CategoryId>
<Duration>int</Duration>
<Restarts>int</Restarts>
<StartPrice>int</StartPrice>
<ReservePrice>int</ReservePrice>
<BuyItNowPrice>int</BuyItNowPrice>
<Description>string</Description>
<PaymentOptionId>int</PaymentOptionId>
<ShippingOptionId>int</ShippingOptionId>
<AcceptedBidderId>int</AcceptedBidderId>
<AutoCommit>bool</AutoCommit>
<ExpoItemIds>
<ExpoItemId>int</ExpoItemId>
<ExpoItemId>int</ExpoItemId>
</ExpoItemIds>
<InternetPaymentIds>
<InternetPaymentId>int</InternetPaymentId>
<InternetPaymentId>int</InternetPaymentId>
</InternetPaymentIds>
<BuyerPaysShippingType>int</BuyerPaysShippingType>
<BuyerPaysShippingCost>int</BuyerPaysShippingCost>
<ItemType>int</ItemType>
<StartQuantity>int</StartQuantity>
</CreateItemRequest>
See the ItemRequest class for a description of the parameters.
ReturnsThe reserved Id of the Item request
-
EndItem
Ends an Item immediately if no bids, or if the type is Direct.
Parameters- itemId, The Id of the Item to end
ReturnsTrue if the Item was ended, otherwise false
-
GetItem
Gets an Item for the current seller.
Parameters- itemId, The Id of the Item (auction)
Returns Item (auction) object
-
GetItemFees
Gets the fees for an Item.
Parameters- itemId, The Id of the item
ReturnsArray of Fee objects
-
GetSellerItems
Gets items for the current seller.
Parameters- categoryId, The Id of the category to look for items in (use 0 for all categories)
- 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. - 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 items older than 60 days will be returned regardless of minEndDate sent. - 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.
-
GetSellerTransactions
Returns all transactions that have taken place within the specified constraints.
Parameters- minTransactionDate, Will return items with transaction date > than this parameter.
Either send NULL or a DateTime <= DateTime.MinValue (0001-01-01 00:00:00) if not used.
Note that no transactions older than 60 days will be returned regardless of minEndDate sent. - maxTransactionDate, Will return items with maxTransactionDate < than this parameter.
Either send NULL or a DateTime >= DateTime.MaxValue (9999-12-31 00:00:00) if not used.
-
LeaveFeedback
Leaves feedback for a transaction. If impersonated user is seller,
leaves feedback for the buyer, otherwise leaves feedback for the seller.
Parameters- transactionId, The transaction to leave feedback for
- comment, A freetext comment (80 characters)
- type, Positive or negative feedback
ReturnsTrue if feedback was inserted, false if auction
has not ended or feedback already left
-
MarkTransactionPaid
Marks a transaction as paid.
Parameters- transactionId, The Id of the transaction
-
MarkTransactionSent
Marks a transaction as sent.
Parameters- transactionId, The Id of the transaction