Place a bid
Place a bid (normal or auto-bid) on a listing.
URL: | https://api.trademe.co.nz/v1/Bidding/Bid.{file_format} |
---|---|
HTTP Method: | POST |
Requires Authentication? | Yes |
Permission Required: | BiddingAndBuying: Place bids, and complete purchases using Buy Now & Fixed Price Offers. |
Supported Formats: | XML, JSON |
Rate Limited? | Yes |
URL parameters
file_format | Enumeration (required) | The format of the response. | ||||
---|---|---|---|---|---|---|
|
POST Data
<BidRequest>
ListingId | Long Integer (required) |
The listing ID of the item the bid is for. |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Amount | Number (required) |
The bid amount, in New Zealand dollars. |
||||||||||
AutoBid | Boolean (required) |
Indicates whether the bid is an auto-bid. |
||||||||||
ShippingOption | Long Integer (required) |
The ID of the preferred shipping option which will be used when this request happens to be the winning bid. This ID can be retrieved from the ShippingId field in the listing detail. |
||||||||||
EmailOutBid | Boolean (optional) |
Indicates whether the bidder should be emailed if they are outbid. |
||||||||||
FirearmsLicence | String (optional) |
The user's firearms licence number. This is required for firearms purchases. |
||||||||||
FirearmsLicenceHolder | <FirearmsLicenceHolderDetails> (optional) |
The user Enters First, Middle, and Last Names associated to the firearms licence. |
||||||||||
|
||||||||||||
IsBuyerOlderThan18 | Boolean (optional) |
The user agrees they are older than 18. This is required for wine purchases. |
||||||||||
ReturnListingDetails | Boolean (optional) |
Indicates whether full listing details should be returned in the Listing field. |
||||||||||
ReferringSearchQueryId | String (optional) |
The search query ID for the search which referred the user to the listing. |
Returns
<AuctionBidResponse>
The details of the bid.
Success | Boolean |
Indicates whether the operation was successful. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | String or null |
The description of the error, if the operation failed. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IsTooHigh | Boolean |
Indicates whether the bid is too high. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IsTooLow | Boolean |
Indicates whether the bid is too low. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IsReserveMet | Boolean |
Indicates whether the reserve has been met. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MinimumNextBid | Number |
The minimum next bid price. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
StatusCode | Enumeration |
The state of the bid. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Listing | <ListedItemDetail> or null |
The state of the listing, after the bid has been successfully placed. This field is only present if the ReturnListingDetails parameter is true and the bid operation was successful. This field will also be missing if there was an error retrieving the listing details. For more information on this field, see the documentation for the listing details API. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(This type is defined elsewhere) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CurrentAutoBid | Number or null |
If you are the bidder then the highest AutoBid value is returned |