Website logo

Get a draft listing

Get a single saved draft listing for member

URL: https://api.trademe.co.nz/v1/Selling/Drafts/{draftId}.{file_format}
HTTP Method: GET
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

<DraftListing>

DraftId Integer

The ID of the draft listing.

Name String or null

The name of the draft listing.

Note String or null

An additional note for the draft listing.

Listing <ListingRequest> or null

The draft listing data.

Example XML Response (switch to JSON)

<DraftListing xmlns="http://api.trademe.co.nz/v1">
  <DraftId>123</DraftId>
  <Name>ABC</Name>
  <Note>ABC</Note>
  <Listing />
</DraftListing>

Example JSON Response (switch to XML)

{
  "DraftId": 123,
  "Name": "ABC",
  "Note": "ABC",
  "Listing": {
  }
}