Buy an auction using Buy Now
Buys an item using Buy Now.
URL: | https://api.trademe.co.nz/v1/Bidding/BuyNow.{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
<BuyNowRequest>
ListingId | Long Integer (required) |
The ID of the listing the Buy Now request is for. |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ShippingOption | Long Integer (required) |
The ID of the preferred shipping option which will be used if the Buy Now request succeeds. This ID can be retrieved from the ShippingId field in the listing detail. |
||||||||||
Quantity | Integer (optional) |
The quantity to buy. Defaults to 1. Only applicable to Buy Now Only auctions. |
||||||||||
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 response. |
||||||||||
ReferringSearchQueryId | String (optional) |
The search query ID for the search which referred the user to the listing. |
Returns
<BuyNowResponse>
The details of the Buy Now request.
Success | Boolean |
Indicates whether the operation was successful. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | String or null |
The description of the error, if the operation failed. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
StatusCode | Enumeration |
The status of the Buy Now request. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PurchaseId | Long Integer |
The ID of the purchase that was just made. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Listing | <ListedItemDetail> or null |
The state of the listing, after the Buy Now has successfully completed. This field is only present if the ReturnListingDetails parameter is true and the Buy Now 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) |