Sends an email to a friend about a listing
Sends a message to a friend via an email.
URL: | https://api.trademe.co.nz/v1/Listings/{listingId}/EmailFriend.{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 the email is about. |
||||
---|---|---|---|---|---|---|
file_format | Enumeration (required) | The format of the response. | ||||
|
POST Data
<EmailFriendRequest>
Message | String (required) |
The message to send to the seller. |
|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CopyToSelf | Boolean (optional) |
Indicates whether the message is copied to the sender. |
|||||||||||||||||||||||||||||||||
PhoneNumber | String (optional) |
Phone number of enquirer; this is only available for Motors DealerBase listings and Property listings |
|||||||||||||||||||||||||||||||||
EmailAddress | String (optional) |
Email of enquirer; this is only available for Motors DealerBase listings and Property listings |
|||||||||||||||||||||||||||||||||
FirstName | String (optional) |
Fist name of enquirer; this is only available for Motors DealerBase listings and Property listings |
|||||||||||||||||||||||||||||||||
LastName | String (optional) |
Last name of enquirer; this is only available for Property listings |
|||||||||||||||||||||||||||||||||
EnquiryType | Enumeration (optional) |
The type of the enquiry. This is only available for Motors DealerBase listings, otherwise the field is ignored. |
|||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
ReferringSearchId | String (optional) |
The ID of the search event that led to the listing. This is only used for internal event tracking. |
|||||||||||||||||||||||||||||||||
EmailTo | String (optional) |
The email address of the recipient. |
Returns
<EmailResponse>
Success | Boolean |
Indicates whether the operation was successful. |
---|