cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trading API Notifications in Sandbox Environment

Hello,

im trying to use the Notifications to sent messages to my email and an azure function.

I managed to use the SetNotificationPreferences call to set up Events and my email/azure function url.

When calling GetNotificationPreferences I can see the values there. This is how the response looks with my events:

<?xml version="1.0" encoding="UTF-8"?>
<GetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2024-07-11T13:24:14.511Z</Timestamp>
    <Ack>Success</Ack>
    <Version>1173</Version>
    <Build>E1173_CORE_APINOTIFY_19146596_R1</Build>
    <UserDeliveryPreferenceArray>
        <NotificationEnable>
            <EventType>EndOfAuction</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>Feedback</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>FixedPriceTransaction</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>AskSellerQuestion</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>ItemListed</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>MyMessageseBayMessage</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>BidPlaced</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
        <NotificationEnable>
            <EventType>BidReceived</EventType>
            <EventEnable>Enable</EventEnable>
        </NotificationEnable>
    </UserDeliveryPreferenceArray>
</GetNotificationPreferencesResponse>

And this with my Application data:

<?xml version="1.0" encoding="UTF-8"?>
<GetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2024-07-11T13:25:43.036Z</Timestamp>
    <Ack>Success</Ack>
    <Version>1173</Version>
    <Build>E1173_CORE_APINOTIFY_19146596_R1</Build>
    <ApplicationDeliveryPreferences>
        <ApplicationURL>myazurefunctionurl</ApplicationURL>
        <ApplicationEnable>Enable</ApplicationEnable>
        <AlertEmail>mailto://myemail</AlertEmail>
        <AlertEnable>Enable</AlertEnable>
        <NotificationPayloadType>eBLSchemaSOAP</NotificationPayloadType>
        <DeviceType>Platform</DeviceType>
        <PayloadEncodingType>SOAP</PayloadEncodingType>
        <PayloadVersion>1173</PayloadVersion>
    </ApplicationDeliveryPreferences>
</GetNotificationPreferencesResponse>

But when I buy something in the Sandbox, im not receiving anything.

Also I cant make the GetNotificationUsage call work. Im using the standard call from the Sandbox Api and receiving this

<?xml version="1.0" encoding="UTF-8"?>
<GetNotificationsUsageResponse xmlns="urn:ebay:apis:eBLBaseComponents">
    <Timestamp>2024-07-11T13:40:36.929Z</Timestamp>
    <Ack>Failure</Ack>
    <Errors>
        <ShortMessage>Sorry, something went wrong. Please wait a moment and try again.</ShortMessage>
        <LongMessage>Sorry, something went wrong. Please wait a moment and try again.</LongMessage>
        <ErrorCode>10007</ErrorCode>
        <SeverityCode>Error</SeverityCode>
        <ErrorParameters ParamID="0">
            <Value>Web Service framework internal error.</Value>
        </ErrorParameters>
        <ErrorClassification>RequestError</ErrorClassification>
    </Errors>
    <Version>1173</Version>
    <Build>E1173_CORE_APINOTIFY_19146596_R1</Build>
</GetNotificationsUsageResponse>

 

Message 1 of 3
latest reply
2 REPLIES 2

Trading API Notifications in Sandbox Environment


Are you facing this issue in production environment? or were you able to resolve this issue?
I'm facing this same issue in production environment as well

Message 2 of 3
latest reply

Trading API Notifications in Sandbox Environment

I am facing the same issue - has anyone managed to get the notification subscription to work?

 

For further context, using the "Notification API" instead of the "Trading API" I can trigger test notifications, so on our end it is responding with the required 200s. Unfortunatelly, the Notification API has a very limited set of events which are not useful for our particular case

Message 3 of 3
latest reply