Home
Find the answer to your question
How can I test Ask Seller a Question Notifications?
Summary
An AskSellerQuestion notification is sent when an eBay buyer uses the Ask Seller a Question form on the eBay site. In order to test AskSellerQuestion notifications, you need to first set up notifications at the application and user level. You with then need to create test scenarios in the sandbox. This article walks through the steps needed to test AskSellerQuestion notifications.
Example:
<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<Version>1149</Version>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<Item>
<ListingType>FixedPriceItem</ListingType>
<Country>US</Country>
<Currency>USD</Currency>
<Description>Test AskSellerQuestion Item</Description>
<ListingDuration>Days_5</ListingDuration>
<Location>San Jose, CA</Location>
<PaymentMethods>PaymentSeeDescription</PaymentMethods>
<PrimaryCategory>
<CategoryID>14111</CategoryID>
</PrimaryCategory>
<Quantity>1</Quantity>
<StartPrice>100.0</StartPrice>
<ShippingTermsInDescription>True</ShippingTermsInDescription>
<Title>Test AskSellerQuestion Itme</Title>
</Item>
<RequesterCredentials>
<eBayAuthToken>x</eBayAuthToken>
</RequesterCredentials>
</AddItemRequest>
6. Log into the sandbox as testbuyer1 and submit a question via the Ask Seller a Question link on the View Item page.
7. The Ask Seller a Question notification you receive will look something like the example below:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ebl:RequesterCredentials soapenv:mustUnderstand="0" xmlns:ns="urn:ebay:apis:eBLBaseComponents" xmlns:ebl="urn:ebay:apis:eBLBaseComponents">
<ebl:NotificationSignaturexmlns:ebl="urn:ebay:apis:eBLBaseComponents">pHqMz7SdSVlt49Nt+VbC5A==</ebl:NotificationSignature>
</ebl:RequesterCredentials>
</soapenv:Header>
<soapenv:Body>
<GetMemberMessagesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2019-11-04T21:58:44.514Z</Timestamp>
<Ack>Success</Ack>
<CorrelationID>95889860</CorrelationID>
<Version>1149</Version>
<Build>E1127_CORE_APIMSG_19083139_R1</Build>
<NotificationEventName>AskSellerQuestion</NotificationEventName>
<RecipientUserID>mg_sandbox1</RecipientUserID>
<MemberMessage>
<MemberMessageExchange>
<Item>
<ItemID>1**********2</ItemID>
<ListingDetails>
<StartTime>2019-09-16T18:52:41.000Z</StartTime>
<EndTime>2019-09-23T18:52:41.000Z</EndTime>
<ViewItemURL>http://cgi.sandbox.ebay.com/ws/eBayISAPI.dll?ViewItem&item=1**********2&category=3*7</ViewItemURL>
</ListingDetails>
<Seller>
<UserID>mg_sandbox1</UserID>
</Seller>
<SellingStatus>
<CurrentPrice currencyID="USD">100.0</CurrentPrice>
</SellingStatus>
<TimeLeft>P4DT23H58M21S</TimeLeft>
<Title>Test AskSellerQuestion Itme</Title>
</Item>
<Question>
<MessageType>AskSellerQuestion</MessageType>
<QuestionType>General</QuestionType>
<DisplayToPublic>false</DisplayToPublic>
<SenderID>mg_sandbox2</SenderID>
<SenderEmail>mg_sandbox2@yahoo.com</SenderEmail>
<RecipientID>428271</RecipientID>
<Subject>Question for item #110005795324 - Test AskSellerQuestion Itme</Subject>
<Body>Hello this is a test question for testing Notifications</Body>
<MessageID>188558</MessageID>
</Question>
<MessageStatus>Unanswered</MessageStatus>
<CreationDate>2019-09-16T19:22:26.000Z</CreationDate>
<LastModifiedDate>2019-09-16T19:22:26.000Z</LastModifiedDate>
</MemberMessageExchange>
</MemberMessage>
<PaginationResult>
<TotalNumberOfPages>1</TotalNumberOfPages>
<TotalNumberOfEntries>1</TotalNumberOfEntries>
</PaginationResult>
<HasMoreItems>false</HasMoreItems>
</GetMemberMessagesResponse>
</soapenv:Body>
</soapenv:Envelope>
8. At this point, the seller will receive this notification on their notification listener. The seller can respond to the question via the AddMemberMessageRTQ API Example:
<?xml version="1.0" encoding="utf-8"?>
<AddMemberMessageRTQRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<ItemID>110005795324</ItemID>
<MemberMessage>
<Body>This is the answer to your question. Thanks for asking!</Body>
<ParentMessageID>188558</ParentMessageID>
<RecipientID>mg_sandbox2</RecipientID>
</MemberMessage>
<RequesterCredentials>
<eBayAuthToken>x</eBayAuthToken>
</RequesterCredentials>
</AddMemberMessageRTQRequest>
Additional Resources