Set In Trade Status
Set whether the member is a professional trader. If they are a professional trader then their listings are protected by the Consumer Guarantees Act. See also get in trade reasons API.
URL: |
https://api.trademe.co.nz/v1/mytrademe/InTrade.{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
<InTradeRequest>
IsInTrade |
Boolean (required) |
IsInTrade
|
ReasonId |
Integer (required) |
ReasonId
|
Comment |
String (optional) |
Comment
|
Returns
<InTradeResponse>
Success |
Boolean |
Success
|
Description |
String or null |
Description
|
<InTradeRequest xmlns="http://api.trademe.co.nz/v1">
<IsInTrade>false</IsInTrade>
<ReasonId>123</ReasonId>
<Comment>ABC</Comment>
</InTradeRequest>
{
"IsInTrade": false,
"ReasonId": 123,
"Comment": "ABC"
}
<InTradeResponse xmlns="http://api.trademe.co.nz/v1">
<Success>false</Success>
<Description>ABC</Description>
</InTradeResponse>
{
"Success": false,
"Description": "ABC"
}