<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Webhook api when trying to GET &amp;quot;Notification History&amp;quot; get empty array in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62757#M37018</link>
    <description>&lt;P&gt;I am attempting to create a webhook that would send back notifications to my site everytime a customer is created, a transaction has been made, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going through the steps detailed here&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/webhooks.html" target="_blank"&gt;https://developer.authorize.net/api/reference/features/webhooks.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Retrieving Event Types" went fine.&lt;/P&gt;&lt;P&gt;"List My Webhooks" went fine.&lt;/P&gt;&lt;P&gt;"Get a Webhook" went fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when I get to "Retrieve Notification History" I get a blank array...I have made a transaction, so I don't understand why this would be so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the PHP I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// jSON URL which should be requested
            $json_notifications_url = 'https://apitest.authorize.net/rest/v1/notifications';

            // Initializing curl
            $ch_notifications_url = curl_init( $json_notifications_url );

            $options_notifications_url = array(
            CURLOPT_RETURNTRANSFER =&amp;gt; true,
            CURLOPT_USERPWD =&amp;gt; $username . ":" . $password,  // authentication
            CURLOPT_HTTPHEADER =&amp;gt; array('Content-type: application/json')
            );

            // Setting curl options
            curl_setopt_array( $ch_notifications_url, $options_notifications_url );

            // Getting results
            $result_notifications_url = curl_exec($ch_notifications_url); // Getting jSON result string
            var_dump($result_notifications_url);&lt;/PRE&gt;&lt;P&gt;The var_dump returns this:&lt;/P&gt;&lt;PRE&gt;string(2) "[]"&lt;/PRE&gt;&lt;P&gt;Can someone help me figure out what I am doing wrong!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 16:30:09 GMT</pubDate>
    <dc:creator>jonCherlin1</dc:creator>
    <dc:date>2018-04-20T16:30:09Z</dc:date>
    <item>
      <title>Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62757#M37018</link>
      <description>&lt;P&gt;I am attempting to create a webhook that would send back notifications to my site everytime a customer is created, a transaction has been made, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going through the steps detailed here&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/webhooks.html" target="_blank"&gt;https://developer.authorize.net/api/reference/features/webhooks.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Retrieving Event Types" went fine.&lt;/P&gt;&lt;P&gt;"List My Webhooks" went fine.&lt;/P&gt;&lt;P&gt;"Get a Webhook" went fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when I get to "Retrieve Notification History" I get a blank array...I have made a transaction, so I don't understand why this would be so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the PHP I am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// jSON URL which should be requested
            $json_notifications_url = 'https://apitest.authorize.net/rest/v1/notifications';

            // Initializing curl
            $ch_notifications_url = curl_init( $json_notifications_url );

            $options_notifications_url = array(
            CURLOPT_RETURNTRANSFER =&amp;gt; true,
            CURLOPT_USERPWD =&amp;gt; $username . ":" . $password,  // authentication
            CURLOPT_HTTPHEADER =&amp;gt; array('Content-type: application/json')
            );

            // Setting curl options
            curl_setopt_array( $ch_notifications_url, $options_notifications_url );

            // Getting results
            $result_notifications_url = curl_exec($ch_notifications_url); // Getting jSON result string
            var_dump($result_notifications_url);&lt;/PRE&gt;&lt;P&gt;The var_dump returns this:&lt;/P&gt;&lt;PRE&gt;string(2) "[]"&lt;/PRE&gt;&lt;P&gt;Can someone help me figure out what I am doing wrong!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:30:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62757#M37018</guid>
      <dc:creator>jonCherlin1</dc:creator>
      <dc:date>2018-04-20T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62764#M37025</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's verify step by step the scenario&lt;/P&gt;&lt;P&gt;1) You have subscribed to webhooks successfully and the url of your website has been provided correctly, either from the Merchant Interface OR the Webhook APIs&lt;/P&gt;&lt;P&gt;2) You are able to successfully retrieve the webhooks subscribed to using the GET Webhooks API&lt;/P&gt;&lt;P&gt;3) You perform an action that satisfies one of the events to which you are subscribed to&lt;/P&gt;&lt;P&gt;For eg: You create a customer and you have subscribed to the event type "net.authorize.customer.created"&lt;/P&gt;&lt;P&gt;4) Your website to which the notifications are to be posted is up and listening to a POST request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please confirm the sequence and the success result of the above steps ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) Then you perform the GetNotifications call on the Webhook REST API.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 21:04:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62764#M37025</guid>
      <dc:creator>rajvpate</dc:creator>
      <dc:date>2018-04-20T21:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62765#M37026</link>
      <description>&lt;P&gt;1) When I had it in 'inactive' mode and ran the Test webhook it said it pinged the url. Right now I set the Status back to "Active" though.&lt;BR /&gt;&lt;BR /&gt;2) I can receive a list of all my webhooks (which at this point is just 1)...as well as I am able to just call that specific webhook and see what events I have attached to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) I have "All Events" assigned to this webhook. I have purchased something on this account and it shows up in Reports as approved.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;4) The website is up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5) I am specifically calling this&amp;nbsp;&lt;SPAN&gt;GET &lt;A href="https://apitest.authorize.net/rest/v1/notifications" target="_blank"&gt;https://apitest.authorize.net/rest/v1/notifications&lt;/A&gt; to get all notifications that would be on there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 21:53:33 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62765#M37026</guid>
      <dc:creator>jonCherlin1</dc:creator>
      <dc:date>2018-04-20T21:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62767#M37028</link>
      <description>&lt;P&gt;Ok, looks like the pre-requisites are set up correctly.&lt;/P&gt;&lt;P&gt;I tried GetNotifications on Sandbox environment and it works for my test merchant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, could you please try sending the GETNotifications request through a RestClient like PostMan ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GET: &lt;A href="https://apitest.authorize.net/rest/v1/notifications" target="_blank"&gt;https://apitest.authorize.net/rest/v1/notifications&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Auth Type: Basic Auth with your API username and password and see what you get ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 22:57:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62767#M37028</guid>
      <dc:creator>rajvpate</dc:creator>
      <dc:date>2018-04-20T22:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62798#M37052</link>
      <description>&lt;P&gt;Thank you for recommending PostMan. However, I set it up as you said, and I'm still getting an empty array. This leads me to believe, as you said as well, that perhaps my code is sound but something isn't setup properly with the webhook itself?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, I have no idea what might be wrong...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my endpoint url setup and (when testing in "inactive") it said it was fine.&lt;/P&gt;&lt;P&gt;I have status set to "Active".&lt;/P&gt;&lt;P&gt;I have "All Events" selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could it have something to do with being in Sandbox mode? I have been using apitest.com as the base url for the Get request though.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 21:18:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62798#M37052</guid>
      <dc:creator>jonCherlin1</dc:creator>
      <dc:date>2018-04-23T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62806#M37058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/24208"&gt;@jonCherlin1&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you received any webhook notification on your endpoint when doing the transaction ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the notification is not susccesfully delivered , its goes into retry mode and it is retired 10 times over the course of&amp;nbsp; &amp;nbsp;9 days .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/webhooks.html#Notification_Retries" target="_blank"&gt;https://developer.authorize.net/api/reference/features/webhooks.html#Notification_Retries&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;During the retying , the notificaiton will not be available in the notificationHistory API .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only if the notification is successfull or all retries are exhauseted and notification moved to failed , it will be visible via the notificationHistory API .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps !!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 06:57:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62806#M37058</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-04-24T06:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62810#M37062</link>
      <description>&lt;P&gt;So, for some reason, I made another transaction last night and I got notifications!! So, I don't know why it wasn't working before...but it seems to be working now. Thanks so much for&amp;nbsp;everyone's assistance though, and Postman will certainly come in handy!!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 13:32:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62810#M37062</guid>
      <dc:creator>jonCherlin1</dc:creator>
      <dc:date>2018-04-24T13:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook api when trying to GET "Notification History" get empty array</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62818#M37069</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/24208"&gt;@jonCherlin1&lt;/a&gt;&amp;nbsp;for update .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We do have the postman for Webhooks APIs&amp;nbsp; at&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/webhooks-postman-collection" target="_blank"&gt;https://github.com/AuthorizeNet/webhooks-postman-collection&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 05:01:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Webhook-api-when-trying-to-GET-quot-Notification-History-quot/m-p/62818#M37069</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2018-04-25T05:01:09Z</dc:date>
    </item>
  </channel>
</rss>

