<?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: Insufficient permissions while testing the settings PUT/GET in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238242#M17138</link>
    <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/himanshurauthan"&gt;@himanshurauthan&lt;/A&gt;. Thanks for the information. I'll investigate and get back to you as soon as I can.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Apr 2018 17:44:24 GMT</pubDate>
    <dc:creator>lsmith</dc:creator>
    <dc:date>2018-04-20T17:44:24Z</dc:date>
    <item>
      <title>Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238236#M17132</link>
      <description>&lt;P&gt;The /install endpoint is working fine and the status is true.&lt;/P&gt;
&lt;P&gt;But when i am trying with /settings api, both PUT and GET, its returning 400, insufficient permissions.&lt;/P&gt;
&lt;P&gt;Can anyone please help me to fix this ?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:03:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238236#M17132</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2018-04-17T13:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238237#M17133</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/himanshurauthan"&gt;@himanshurauthan&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I haven't been able to replicate the problem you are seeing.&lt;/P&gt;
&lt;P&gt;Make sure to include your HubSpot API Key as a query param in the request. If you are developing an application then you should use your developer portal's hapikey, and if you are using ecomm bridge directly with your marketing/sales portal then you should use that portal's hapikey.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:59:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238237#M17133</guid>
      <dc:creator>lsmith</dc:creator>
      <dc:date>2018-04-17T19:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238238#M17134</link>
      <description>&lt;P&gt;Thank You &lt;A class="mention" href="https://community.hubspot.com/u/llewellyn_smith"&gt;@Llewellyn_Smith&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am including the hapikey as a query param in our request. For deeper look I am sharing more details.&lt;BR /&gt;
To get the settings we are using this request&lt;BR /&gt;
&lt;A href="https://api.hubapi.com/extensions/ecomm/v1/settings?appId=62834&amp;amp;hapikey=5*******************************" class="onebox" target="_blank" rel="nofollow noopener"&gt;https://api.hubapi.com/extensions/ecomm/v1/settings?appId=62834&amp;amp;hapikey=5*******************************&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;But getting the response like that.&lt;BR /&gt;
{&lt;BR /&gt;
"status":"error",&lt;BR /&gt;
"message":"Insufficient permissions",&lt;BR /&gt;
"correlationId":"407d9ccf-4c0e-4033-bdda-2de71b5d924c",&lt;BR /&gt;
"requestId":"242fec7f004a20dd2f20dab52697bef5"&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;And after successful install when we check the install status we get the response like-&lt;BR /&gt;
&lt;A href="https://api.hubapi.com/extensions/ecomm/v1/installs/status?appId=62834&amp;amp;hapikey=5***********************************" class="onebox" target="_blank" rel="nofollow noopener"&gt;https://api.hubapi.com/extensions/ecomm/v1/installs/status?appId=62834&amp;amp;hapikey=5***********************************&lt;/A&gt;&lt;BR /&gt;
{&lt;BR /&gt;
"installCompleted":true,&lt;BR /&gt;
"ecommSettingsEnabled":false&lt;BR /&gt;
}&lt;BR /&gt;
Is it something related with ecommSettingsEnabled.&lt;BR /&gt;
Please suggest.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 05:57:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238238#M17134</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2018-04-18T05:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238239#M17135</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/himanshurauthan"&gt;@himanshurauthan&lt;/A&gt;, thanks for the clarifying information.&lt;/P&gt;
&lt;P&gt;First, regarding the &lt;CODE&gt;/settings&lt;/CODE&gt; endpoint, an appId can be included or omitted as a query param.&lt;BR /&gt;
If an appId is not included, then the hapikey provided should be from the marketing/sales portal that is using the eComm Bridge API directly.&lt;BR /&gt;
If passed an appId, then the hapikey provided should be from the developer portal that owns that app. This is because in this case the settings endpoint will be used to edit settings for the application, not for any specific portal.&lt;/P&gt;
&lt;P&gt;The same is not true of the &lt;CODE&gt;/installs&lt;/CODE&gt; endpoint. This endpoint does not work with an appId (the appId will not do anything).&lt;BR /&gt;
Installing manually using that endpoint is for using the eCommBridge API directly (without an application).&lt;BR /&gt;
If you are developing an application that uses the eCommBridge API, then installation will happen automatically when a user on a marketing/sales portal auths your application.&lt;/P&gt;
&lt;P&gt;In your case it looks like the same hapikey is being used to create settings and install ecomm. This makes sense if that hapikey is for a marketing/sales portal that wants to use the API without and app, but won't work for modifying settings or installing app 62834. Instead, you can use your developer portal's hapikey for the &lt;CODE&gt;/settings&lt;/CODE&gt; endpoint, and you don't need to worry about installing eCommBridge manually.&lt;/P&gt;
&lt;P&gt;I hope that helps resolve the issue. Please let me know if you have any other questions, or if the docs did not make this sufficiently clear.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 20:50:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238239#M17135</guid>
      <dc:creator>lsmith</dc:creator>
      <dc:date>2018-04-18T20:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238240#M17136</link>
      <description>&lt;P&gt;Thanks &lt;A class="mention" href="https://community.hubspot.com/u/llewellyn_smith"&gt;@Llewellyn_Smith&lt;/A&gt; for your clean explanation.&lt;BR /&gt;
It resolves the issue. Now I am able to access  /installs and /settings endpoint.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:46:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238240#M17136</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2018-04-20T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238241#M17137</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/llewellyn_smith"&gt;@Llewellyn_Smith&lt;/A&gt;,&lt;BR /&gt;
I have one more doubt about the import process.&lt;BR /&gt;
When I am setting the importTriggerUri  for the import-setting API. It is showing status code 200 and returning the correct importTriggerUri.&lt;BR /&gt;
But Import Initialization Webhook not working. Means importTriggerUri has never been called by hubspot. I used the hapikey from developer portal.&lt;BR /&gt;
Example for import-setting API-&lt;BR /&gt;
PUT-&amp;gt;  &lt;A href="https://api.hubapi.com/extensions/ecomm/v1/import-settings/?appId=62834&amp;amp;hapikey=a***********************************" rel="nofollow noopener"&gt;https://api.hubapi.com/extensions/ecomm/v1/import-settings/?appId=62834&amp;amp;hapikey=a***********************************&lt;/A&gt;&lt;BR /&gt;
With request Body&lt;BR /&gt;
{&lt;BR /&gt;
"importTriggerUri": "&lt;A href="https://ffa26776.ngrok.io/mg223/hubintegration/hubspot/importdata/" rel="nofollow noopener"&gt;https://ffa26776.ngrok.io/mg223/hubintegration/hubspot/importdata/&lt;/A&gt;"&lt;BR /&gt;
}&lt;BR /&gt;
And in response we are getting this. And same thing we get from  GET-&amp;gt;  &lt;A href="https://api.hubapi.com/extensions/ecomm/v1/import-settings/?appId=62834&amp;amp;hapikey=a***********************************" rel="nofollow noopener"&gt;https://api.hubapi.com/extensions/ecomm/v1/import-settings/?appId=62834&amp;amp;hapikey=a***********************************&lt;/A&gt;&lt;BR /&gt;
{&lt;BR /&gt;
"importTriggerUri": "&lt;A href="https://ffa26776.ngrok.io/mg223/hubintegration/hubspot/importdata/" rel="nofollow noopener"&gt;https://ffa26776.ngrok.io/mg223/hubintegration/hubspot/importdata/&lt;/A&gt;"&lt;BR /&gt;
}&lt;BR /&gt;
But unable to know why Import Initialization Webhook not working. Please correct me if I was doing  something wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 14:00:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238241#M17137</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2018-04-20T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238242#M17138</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/himanshurauthan"&gt;@himanshurauthan&lt;/A&gt;. Thanks for the information. I'll investigate and get back to you as soon as I can.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 17:44:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238242#M17138</guid>
      <dc:creator>lsmith</dc:creator>
      <dc:date>2018-04-20T17:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient permissions while testing the settings PUT/GET</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238243#M17139</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/llewellyn_smith"&gt;@Llewellyn_Smith&lt;/A&gt;&lt;BR /&gt;
Hope you are doing well.&lt;/P&gt;
&lt;P&gt;Have you got anything related with the import initialization Webhook callback not working.&lt;/P&gt;
&lt;P&gt;Besides that I have one more doubt about the image in product Sync-Message endpoint api.&lt;BR /&gt;
I tried to map the property of image as 'STRING' as well as 'AVATAR_IMAGE' too like that-&lt;BR /&gt;
{&lt;BR /&gt;
"propertyName": "image",&lt;BR /&gt;
"dataType": "STRING",&lt;BR /&gt;
"targetHubspotProperty": "ip__ecomm_bridge__product_image"&lt;BR /&gt;
}&lt;BR /&gt;
{&lt;BR /&gt;
"propertyName": "image",&lt;BR /&gt;
"dataType": "AVATAR_IMAGE",&lt;BR /&gt;
"targetHubspotProperty": "ip__ecomm_bridge__product_image"&lt;BR /&gt;
}&lt;/P&gt;
&lt;P&gt;In both cases product created but image not showing in product library of hubspot. Sync-message data was like that -&lt;BR /&gt;
[&lt;BR /&gt;
"integratorObjectId" =&amp;gt; "000175",&lt;BR /&gt;
"action" =&amp;gt; "UPSERT",&lt;BR /&gt;
"changeOccurredTimestamp" =&amp;gt; 1524204368000,&lt;BR /&gt;
"propertyNameToValues" =&amp;gt; [&lt;BR /&gt;
"name" =&amp;gt; "Example Product 175",&lt;BR /&gt;
"image" =&amp;gt; "&lt;A href="https://cdn.shopify.com/s/files/1/2806/2864/products/soccer_e9376f74-1031-4d8d-a7aa-c811526f5263.png?v=1524294086" rel="nofollow noopener"&gt;https://cdn.shopify.com/s/files/1/2806/2864/products/soccer_e9376f74-1031-4d8d-a7aa-c811526f5263.png?v=1524294086&lt;/A&gt;",&lt;BR /&gt;
"price" =&amp;gt; "75",&lt;BR /&gt;
"description" =&amp;gt; "Example Product 175 description"&lt;BR /&gt;
]&lt;BR /&gt;
]&lt;/P&gt;
&lt;P&gt;Please let me know If something wrong in this process.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 05:17:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Insufficient-permissions-while-testing-the-settings-PUT-GET/m-p/238243#M17139</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2018-04-24T05:17:01Z</dc:date>
    </item>
  </channel>
</rss>

