Skip to main content
Published: March 31 2007, 5:14:00 PMUpdated: August 01 2022, 1:40:46 AM

How can I test Feedback Notification ?

Summary

 A Feedback notification is triggered when a seller successfully left a feedback to a buyer or a buyer leaves a feedback to a seller.


Detailed Description

You need to have two sandbox test accounts, say testseller and testbuyer for testing Feedback Notification.

1.  Make SetNotificationPreferences API request to subscribe to Feedback notification event for  the user testseller  as below:

<?xml version="1.0" encoding="utf-8" ?>
 <SetNotificationPreferencesRequestxmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>1173</Version>
 <RequesterCredentials>
 <eBayAuthToken>TOKEN</eBayAuthToken>
  </RequesterCredentials>
 <UserDeliveryPreferenceArray>
 
  <NotificationEnable>
  <EventType>Feedback</EventType>
  <EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
   <ApplicationDeliveryPreferences>
  <ApplicationURL>https://yourapplication/notificationListener</ApplicationURL>
  <ApplicationEnable>Enable</ApplicationEnable>
</ApplicationDeliveryPreferences>
</SetNotificationPreferencesRequest>

 2. List a Chinsee item with BuyItNowPrice as Sandbox user  testseller

 3. Log into the Sandbox site and purchase the item by click the item's Buy It Now button as the user testbuyer

 4. The user testbuyer pays the item puchased in step 3.

 5. The user testseller  makes CompleteSale to update the items payment status/shipping status and leaves feedback as follows:

<?xml version="1.0" encoding="utf-8" ?>

  <CompleteSaleRequestxmlns="urn:ebay:apis:eBLBaseComponents">
  <ErrorLanguage>en_US</ErrorLanguage>
  <Version>1263</Version>
  <ItemID>110018143722</ItemID>
  <TransactionID>0</TransactionID>
   <FeedbackInfo>
  <CommentText>Seller to buyer (item 110018143722) Great transaction, great buyer!</CommentText>
  <CommentType>Positive</CommentType>
  <TargetUser>buyer1</TargetUser>
  </FeedbackInfo>
  <Shipped>true</Shipped>
  <Paid>true</Paid>
  <ErrorHandling>BestEffort</ErrorHandling>
  <RequesterCredentials>
  <eBayAuthToken>TOKEN</eBayAuthToken>
  </RequesterCredentials>
  </CompleteSaleRequest>

 6.  testseller checks if the Feedback notfication is sent to the notfication listener that specified in the SetNoticationPreference API request. The sample Feedback notification that triggered by Seller's leaving feedback action is as below. Please note that the seller's uerID appears in both RecipientUserID and CommentingID tags.

<?xml version="1.0" encoding="UTF-8"?>
<SetNotificationPreferencesResponse 
  xmlns="urn:ebay:apis:eBLBaseComponents">
   <Timestamp>2022-08-01T07:31:12.275Z</Timestamp>
   <Ack>Success</Ack>
   <CorrelationID>173643580</CorrelationID>
   <Version>1173</Version>
   <Build>E1173_CORE_APINOTIFY_19146596_R1</Build>
   <NotificationEventName>Feedback</NotificationEventName>
   <RecipientUserID>testseller</RecipientUserID>
   <FeedbackDetailArray>
    <FeedbackDetail>
    <CommentingUser>testseller</CommentingUser>
     <CommentingUserScore>3</CommentingUserScore>
     <CommentText>Seller to buyer (item 110018143722) Great transaction, great buyer!</CommentText>
     <CommentTime>2007-04-01T00:07:16.000Z</CommentTime>
     <CommentType>Positive</CommentType>
     <ItemID>110018143722</ItemID>
     <Role>Buyer</Role>
     <FeedbackID>100065278010</FeedbackID>
     <ItemTitle>Feedback 5 item title</ItemTitle>
     <ItemPrice currencyID="USD">10.0</ItemPrice>
    </FeedbackDetail>
   </FeedbackDetailArray>
   <FeedbackDetailItemTotal>509</FeedbackDetailItemTotal>
   <FeedbackScore>505</FeedbackScore>
  </GetFeedbackResponse>
 </soapenv:Body>
</soapenv:Envelope>

7.  When the user testbuyer  leaves Feedback for the seller of the item, the seller receives another Feedback notification  with the buyer's userID shows in CommentingUser tag .

<?xml version="1.0" encoding="UTF-8"?>
<SetNotificationPreferencesResponse 
  xmlns="urn:ebay:apis:eBLBaseComponents">
   <Timestamp>2022-08-01T07:33:12.275Z</Timestamp>
   <Ack>Success</Ack>
   <CorrelationID>173621680</CorrelationID>
   <Version>1263</Version>
   <Build>>E1263_CORE_APIXO_19220561_R1</Build>
   <NotificationEventName>Feedback</NotificationEventName>
   <RecipientUserID>testseller</RecipientUserID>
   <FeedbackDetailArray>
    <FeedbackDetail>
     <CommentingUser>testbuyer</CommentingUser>
     <CommentingUserScore>505</CommentingUserScore>
     <CommentText>Great +++++++ !</CommentText>
     <CommentTime>2022-08-01T05:31:12.275Z</CommentTime>
     <CommentType>Positive</CommentType>
     <ItemID>110018141372</ItemID>
     <Role>Seller</Role>
     <FeedbackID>100064963010</FeedbackID>
     <ItemTitle>Feedback item title</ItemTitle>
     <ItemPrice currencyID="USD">10.0</ItemPrice>
    </FeedbackDetail>
   </FeedbackDetailArray>
   <FeedbackDetailItemTotal>7</FeedbackDetailItemTotal>
   <FeedbackScore>3</FeedbackScore>
  </GetFeedbackResponse>
 </soapenv:Body>
</soapenv:Envelope>


 Additional Resource

 

How well did this answer your question?
Answers others found helpful

Got thoughts? Click the feedback button – your insights help us improve!