<?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 Re: Creating webhook by API fails in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-webhook-by-API-fails/m-p/78740#M49487</link>
    <description>&lt;P&gt;up&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 05:28:46 GMT</pubDate>
    <dc:creator>alekseyr</dc:creator>
    <dc:date>2021-09-24T05:28:46Z</dc:date>
    <item>
      <title>Creating webhook by API fails</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-webhook-by-API-fails/m-p/78598#M49387</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I failed to get a meaninful response from support, maybe you can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'send_request Dumper $VAR1 = {
          \'URL\' =&amp;gt; \'https://api.authorize.net/rest/v1/webhooks\',
          \'method\' =&amp;gt; \'POST\',
          \'request\' =&amp;gt; \'
                                {
                                        "name": "AuthorizeNetXExternal",
                                        "url": "https://zzzzzzzzzzzzzzz.com/xps_callbacks/authorizenetx_callback.html",
                                        "eventTypes": [
                                                "net.authorize.payment.authorization.created",
                                                "net.authorize.payment.capture.created",
                                                "net.authorize.payment.void.created",
                                                "net.authorize.customer.paymentProfile.created",
                                                "net.authorize.payment.fraud.held",
                                                "net.authorize.payment.fraud.approved",
                                                "net.authorize.payment.fraud.declined",
                                                "net.authorize.payment.priorAuthCapture.created",
                                                "net.authorize.payment.refund.created",
                                                "net.authorize.payment.authcapture.created"
                                        ],
                                        "status": "active"
                                }
                        \',
          \'request_description\' =&amp;gt; \'Create webhooks\',
          \'type\' =&amp;gt; \'rest\'



 bless( {
                 \'_content\' =&amp;gt; \'{
  "status": 400,
  "reason": "INVALID_DATA",
  "message": "An error occurred while processing the request. Please note the correlation id for the request and contact Support for more details.",
  "correlationId": "13f4e343-a643-40a3-858e-7593b4aba80b"
}\',
....

                 \'_msg\' =&amp;gt; \'Bad Request\',
                 \'_protocol\' =&amp;gt; \'HTTP/1.1\',
                 \'_rc\' =&amp;gt; \'400\',
                 \'_request\' =&amp;gt; bless( {
                                        \'_content\' =&amp;gt; \'
                                {
                                        "name": "AuthorizeNetXExternal",
                                        "url": "https://zzzzzzzzzzzzzzz.com/xps_callbacks/authorizenetx_callback.html",
                                        "eventTypes": [
                                                "net.authorize.payment.authorization.created",
                                                "net.authorize.payment.capture.created",
                                                "net.authorize.payment.void.created",
                                                "net.authorize.customer.paymentProfile.created",
                                                "net.authorize.payment.fraud.held",
                                                "net.authorize.payment.fraud.approved",
                                                "net.authorize.payment.fraud.declined",
                                                "net.authorize.payment.priorAuthCapture.created",
                                                "net.authorize.payment.refund.created",
                                                "net.authorize.payment.authcapture.created"
                                        ],
                                        "status": "active"
                                }
                        \',
                                        \'_headers\' =&amp;gt; bless( {
                                                               \'::std_case\' =&amp;gt; {
                                                                                 \'if-ssl-cert-subject\' =&amp;gt; \'If-SSL-Cert-Subject\'
                                                                               },
                                                               \'accept\' =&amp;gt; \'application/json\',
                                                               \'authorization\' =&amp;gt; \'Basic zzzzzzzzzzzzzzz
\',
                                                               \'content-type\' =&amp;gt; \'application/json\',
                                                               \'user-agent\' =&amp;gt; \'libwww-perl/6.05\'
                                                             }, \'HTTP::Headers\' ),
                                        \'_method\' =&amp;gt; \'POST\',
                                        \'_uri\' =&amp;gt; bless( do{\\(my $o = \'https://api.authorize.net/rest/v1/webhooks\')}, \'URI::https\' ),
                                        \'_uri_canonical\' =&amp;gt; $VAR1-&amp;gt;{\'_request\'}{\'_uri\'}
                                      }, \'HTTP::Request\' )
               }, \'HTTP::Response\' );
';&lt;/PRE&gt;&lt;P&gt;I'm getting the same error by composing a CURL request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this method work at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 11:54:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-webhook-by-API-fails/m-p/78598#M49387</guid>
      <dc:creator>alekseyr</dc:creator>
      <dc:date>2021-09-17T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating webhook by API fails</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-webhook-by-API-fails/m-p/78740#M49487</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 05:28:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Creating-webhook-by-API-fails/m-p/78740#M49487</guid>
      <dc:creator>alekseyr</dc:creator>
      <dc:date>2021-09-24T05:28:46Z</dc:date>
    </item>
  </channel>
</rss>

