Website logo

Update member selling preferences

Updates the selling preferences of the authenticated member

URL: https://api.trademe.co.nz/v1/Selling/Preferences.{file_format}
HTTP Method: POST
Requires Authentication? Yes
Permission Required: MyTradeMeWrite: Maintain your watchlist, answer questions and post comments.
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.

POST Data

<SellingPreferencesRequest>

OnlyAuthenticatedMembersCanBid Boolean (optional) OnlyAuthenticatedMembersCanBid
DonationRecipient Integer (optional) DonationRecipient
ShowPickUpLocation Boolean (optional) ShowPickUpLocation
PickUpSuburbId Integer (optional) PickUpSuburbId

Returns

<SellingPreferencesResponse>

Indicates whether or not the operation succeeded.

Success Boolean Success
Description String or null Description

Example XML Request (switch to JSON)

<SellingPreferencesRequest xmlns="http://api.trademe.co.nz/v1">
  <OnlyAuthenticatedMembersCanBid>false</OnlyAuthenticatedMembersCanBid>
  <DonationRecipient>123</DonationRecipient>
  <ShowPickUpLocation>false</ShowPickUpLocation>
  <PickUpSuburbId>123</PickUpSuburbId>
</SellingPreferencesRequest>

Example JSON Request (switch to XML)

{
  "OnlyAuthenticatedMembersCanBid": false,
  "DonationRecipient": 123,
  "ShowPickUpLocation": false,
  "PickUpSuburbId": 123
}

Example XML Response (switch to JSON)

<SellingPreferencesResponse xmlns="http://api.trademe.co.nz/v1">
  <Success>false</Success>
  <Description>ABC</Description>
</SellingPreferencesResponse>

Example JSON Response (switch to XML)

{
  "Success": false,
  "Description": "ABC"
}