<?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: Available properties to listen to on Line Item webhook in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841859#M66956</link>
    <description>&lt;P&gt;Ah ok yeah if that is the case then that is definitely the issue!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; Best of luck with things moving forward&lt;/P&gt;</description>
    <pubDate>Tue, 29 Aug 2023 14:49:47 GMT</pubDate>
    <dc:creator>coldrickjack</dc:creator>
    <dc:date>2023-08-29T14:49:47Z</dc:date>
    <item>
      <title>Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841442#M66923</link>
      <description>&lt;P&gt;Hi, why are there virtually no valuable properties on Line Items to listen to available to webhooks? Pretty useless with the three properties below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-28 at 5.40.46 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97862i0FA11B578393CE97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-28 at 5.40.46 PM.png" alt="Screenshot 2023-08-28 at 5.40.46 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 22:01:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841442#M66923</guid>
      <dc:creator>a_funs</dc:creator>
      <dc:date>2023-08-28T22:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841452#M66924</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/580228"&gt;@a_funs&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've come up against this a few times and the UI is a little misleading... You can create subscriptions to more than the list supplied (both default and custom properties).&amp;nbsp; For instance I've created a webhook for anytime the "term" (hs_recurring_billling_period) is updated for a line item and it works just fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-28 at 23.19.42.png" style="width: 472px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97865i4127D16748ADA83F/image-dimensions/472x136?v=v2" width="472" height="136" role="button" title="Screenshot 2023-08-28 at 23.19.42.png" alt="Screenshot 2023-08-28 at 23.19.42.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the payload I get when the term is updated via the HubSpot UI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-28 at 23.18.37.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97866iCF37896E95B0742D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-28 at 23.18.37.png" alt="Screenshot 2023-08-28 at 23.18.37.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short anything you pull from GET&amp;nbsp;/crm/v3/properties/line_items (&lt;A href="https://developers.hubspot.com/docs/api/crm/properties" target="_blank" rel="noopener"&gt;Properties API&lt;/A&gt;) can be used to configure a webhook providing you include the interal name of the property when setting up the webhook via your app settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 22:23:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841452#M66924</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-28T22:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841459#M66925</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/426475"&gt;@coldrickjack&lt;/a&gt;!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually thought of this and attempted to subscribe to other properties not visible in the UI via &lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank" rel="noopener"&gt;the api&lt;/A&gt;. However,&amp;nbsp; despite my app key having access to every scope possible, I still get a scope error when trying to edit webhooks via api. How were you able to create the subscriptions to other properties? If via api, do you know what scopes are required to access those endpoints?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"message": "The scope needed for this API call isn't available for public use. If you have questions, contact support or post in our developer forum."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 22:50:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841459#M66925</guid>
      <dc:creator>a_funs</dc:creator>
      <dc:date>2023-08-28T22:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841460#M66926</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/580228"&gt;@a_funs&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me adding the 'ecommerce' scope did the job.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 22:51:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841460#M66926</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-28T22:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841486#M66927</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/426475"&gt;@coldrickjack&lt;/a&gt;&amp;nbsp;That's the scope needed to access the endpoints which edit webhook subscriptions? I am getting the error when I attempt to view or edit webhook subscriptions:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/webhooks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 00:49:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841486#M66927</guid>
      <dc:creator>a_funs</dc:creator>
      <dc:date>2023-08-29T00:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841648#M66939</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/580228"&gt;@a_funs&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know as per the &lt;A href="https://developers.hubspot.com/docs/api/working-with-oauth" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; here the "e-commerce" scope is defined as giving access to "Products and line items endpoints". However it also applies to when you are configuring a webhook for a Line item. For instance when I was creating a webhook via the UI (as opposed to the API) I was prompted to add the e-commerce scope. See the screenshot below. It also specifies that it's a required scope from the scopes listed in this table &lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank" rel="noopener"&gt;here&lt;/A&gt; .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-29 at 09.15.24.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97899i2A3054B8BC0889A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-29 at 09.15.24.png" alt="Screenshot 2023-08-29 at 09.15.24.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once I set the scope up, activated the webhook and re-installed my app I started seeing events coming from HubSpot to my endpoint. (as per screenshot in my original post).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When viewing or editing webhook subscriptions via the &lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank" rel="noopener"&gt;Webhook API&lt;/A&gt;&amp;nbsp;you just use developer portal API key. You do however need to make sure you've configured your scopes for the app from within the app settings interface (auth tab). See mine below: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-29 at 09.38.03.png" style="width: 593px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97902i2FF32E60C3D0A747/image-dimensions/593x123?v=v2" width="593" height="123" role="button" title="Screenshot 2023-08-29 at 09.38.03.png" alt="Screenshot 2023-08-29 at 09.38.03.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Providing you've the appropriate scopes in place dependent on the type of object(s) your subscriptions are going to be configured for you can retrieve webhooks&amp;nbsp;making a GET as per below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/webhooks/v3/{{APP_ID}}/subscriptions?hapikey={{DEV_API_KEY}}
RESPONSE
{
    "results": [
        {
            "eventType": "contact.creation",
            "propertyName": null,
            "active": true,
            "id": "2185980",
            "createdAt": "2023-07-20T16:24:55.629Z",
            "updatedAt": null
        },
        {
            "eventType": "company.propertyChange",
            "propertyName": "notes_last_updated",
            "active": true,
            "id": "2219950",
            "createdAt": "2023-08-11T14:23:19.117Z",
            "updatedAt": null
        },
        {
            "eventType": "line_item.propertyChange",
            "propertyName": "hs_recurring_billing_period",
            "active": true,
            "id": "2245350",
            "createdAt": "2023-08-28T22:14:07.184Z",
            "updatedAt": null
        },
        {
            "eventType": "line_item.creation",
            "propertyName": null,
            "active": true,
            "id": "2245363",
            "createdAt": "2023-08-28T22:16:01.377Z",
            "updatedAt": null
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also update any one of those subscriptions, for instance pausing the "line_item.creation" subscription:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PATCH https://api.hubapi.com/webhooks/v3/{{APP_ID}}/subscriptions/{{SUB_ID}}?hapikey={{DEV_API_KEY}}
BODY
{ "active": false }
RESPONSE
{
    "eventType": "line_item.creation",
    "propertyName": null,
    "active": false,
    "id": "2245363",
    "createdAt": "2023-08-28T22:16:01.377Z",
    "updatedAt": null
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you could create a brand new one to listen for changes to another "line_item" property:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://api.hubapi.com/webhooks/v3/{{APP_ID}}/subscriptions?hapikey={{DEV_API_KEY}}
BODY:
{
  "active": true,
  "eventType": "line_item.propertyChange",
  "propertyName": "quantity"
}
RESPONSE:
{
    "eventType": "line_item.propertyChange",
    "propertyName": "quantity",
    "active": true,
    "id": "2245553",
    "createdAt": "2023-08-29T08:33:19.006Z",
    "updatedAt": null
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 08:39:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841648#M66939</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-29T08:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841858#M66955</link>
      <description>&lt;P&gt;Thank&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/426475"&gt;@coldrickjack&lt;/a&gt;&amp;nbsp;for taking the time to help with this. I think the issue may be that I was attempting to use a private app, and private app webhook subscriptions can not be edited by api currently. There is a little disclaimer here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank"&gt;https://developers.hubspot.com/docs/api/webhooks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please note:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Webhook support for private apps is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/create-and-edit-webhook-subscriptions-in-private-apps" target="_blank" rel="noopener"&gt;currently in beta&lt;/A&gt;. Note that during this beta, webhook settings can only be edited in the in-app settings for your private app, and cannot currently be edited through the API."&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 29 Aug 2023 14:48:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841858#M66955</guid>
      <dc:creator>a_funs</dc:creator>
      <dc:date>2023-08-29T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841859#M66956</link>
      <description>&lt;P&gt;Ah ok yeah if that is the case then that is definitely the issue!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt; Best of luck with things moving forward&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 14:49:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841859#M66956</guid>
      <dc:creator>coldrickjack</dc:creator>
      <dc:date>2023-08-29T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Available properties to listen to on Line Item webhook</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841911#M66962</link>
      <description>&lt;P&gt;Instead of the back and forth below, you ARE able to do this via the UI, for some reason the various properties will just not populate in the dropdown. However, by putting the correct property name into the search box and pressing "enter" you can successfully create subscriptions to property changes of Line Items. Seems to just be an issue with the property options populating to the dropdown. For example, see "price" below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-08-29 at 12.11.58 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97927i74B01E18F73C512A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-08-29 at 12.11.58 PM.png" alt="Screenshot 2023-08-29 at 12.11.58 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 16:13:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Available-properties-to-listen-to-on-Line-Item-webhook/m-p/841911#M66962</guid>
      <dc:creator>a_funs</dc:creator>
      <dc:date>2023-08-29T16:13:57Z</dc:date>
    </item>
  </channel>
</rss>

