Website logo

Delete a draft listing

Delete an existing saved draft listing

URL: https://api.trademe.co.nz/v1/Selling/Drafts/{draftId}.{file_format}
HTTP Method: DELETE
Requires Authentication? Yes
Permission Required: MyTradeMeWrite: Maintain your watchlist, answer questions and post comments.
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

draftId Integer (required)

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

Returns

<DraftListingResponse>

Success Boolean

Indicates whether the operation was successful.

Description String or null

The description of the error, if the operation failed.

StatusCode Enumeration

The draft listing request status.

Success 0

The operation was successful.

MaxLimitExceeded 1

Max draft limit exceeded failure.

Example XML Response (switch to JSON)

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

Example JSON Response (switch to XML)

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