question

ksbaytech avatar image
0 Likes"
ksbaytech asked ·

api for contact seller

i want contact seller for product information via api, which api should i use? thanks.
api call
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
spood_phone avatar image
0 Likes"
spood_phone answered ·
Hello, You should use the Trading API : https://developer.ebay.com/devzone/xml/docs/Reference/eBay/index.html#CallIndex If you had bought/sold something to a ebay member, use **AddMemberMessageAAQToPartnerCall**. If you want to ask a question about an active item use **AddMemberMessageRTQCall**. If you want to send messages to bidders use **AddMemberMessagesAAQToBidder**. Example : `public void sendParterMessage(ItemType item, OrderType order, ApiContext apiContext) {` `AddMemberMessageAAQToPartnerCall msg = new AddMemberMessageAAQToPartnerCall(apiContext);` `msg.setItemID(item.getItemID());` `MemberMessageType memberMsg = new MemberMessageType();` `memberMsg.setSubject("Your customize subject");` `memberMsg.setBody("Your customize body message");` `memberMsg.setMessageType(MessageTypeCodeType.CUSTOM_CODE);` `memberMsg.setQuestionType(QuestionTypeCodeType.CUSTOMIZED_SUBJECT);` `memberMsg.setRecipientID(new String[] {order.getBuyerUserID()});` `msg.setMemberMessage(memberMsg);` // this method send the mail `msg.addMemberMessageAAQToPartner();` `}`
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.