Post a question or comment on a listing
Adds a question (or a comment) to a listing. The seller will be notified.
| URL: | https://api.trademe.co.nz/v1/listings/{listingId}/addcomment.{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
| listingId | Integer (required) |
The ID of the listing to add the comment to. |
||||
|---|---|---|---|---|---|---|
| file_format | Enumeration (required) | The format of the response. | ||||
|
||||||
POST Data
<ListingAddComment>
| comment | String (required) |
The comment text (500 characters max). |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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. |
||||||||||
Returns
<Question>
A ListingQuestion that contains the added comment.
| ListingId | Integer |
The ID of the listing this question belongs to. |
||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ListingQuestionId | Integer |
The question ID. |
||||||||||||||||||||||||||||||||||
| Comment | String or null |
The text of the question. |
||||||||||||||||||||||||||||||||||
| CommentDate | DateTime |
The date and time the question was asked. |
||||||||||||||||||||||||||||||||||
| Answer | String or null |
The answer given to the question by the owner of the listing. |
||||||||||||||||||||||||||||||||||
| AnswerDate | DateTime |
The date the question was answered. |
||||||||||||||||||||||||||||||||||
| IsSellerComment | Boolean |
Indicates whether this is a comment from the seller rather than a question. |
||||||||||||||||||||||||||||||||||
| AskingMember | <Member> or null |
The member details for the member asking the question. |
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||