<?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: Line items and associations to Payment Links in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163960#M82589</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/74696"&gt;@JDavisT&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to invite some members of our community who may offer valuable insights.— hey &lt;STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/115766"&gt;@nickdeckerdevs1&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9629"&gt;@HubDoPete&lt;/a&gt;&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt; &amp;nbsp;- Could you share your advice with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/74696"&gt;@JDavisT&lt;/a&gt;&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking a look!&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 14:53:24 GMT</pubDate>
    <dc:creator>DianaGomez</dc:creator>
    <dc:date>2025-06-12T14:53:24Z</dc:date>
    <item>
      <title>Line items and associations to Payment Links</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163649#M82577</link>
      <description>&lt;P&gt;Hello, I have a use case which is very frustrating.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We set up Payment Links for customers to purchase our products.&amp;nbsp; We may set up various Payment Links based on bundles or campaigns; these contain Line Items which be copied from the same Product. All good so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue started when we began to replace/update some of our Products and we wanted to created new Line Items - I don't have a good way to figure out which Payment Links need their Line Items updated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ISSUE: there doesn't appear to be a way to obtain the line item number from a Payment Link, or vice-versa, whihc is very bizarre since they are obviously associated in the GUI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Despite &lt;A href="https://api.hubapi.com/crm/v3/schemas/line_items" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/schemas/line_items&lt;/A&gt; list them as asscioated:&lt;BR /&gt;```&lt;BR /&gt;...&lt;BR /&gt;"assocations": [&lt;BR /&gt;...&lt;BR /&gt;{&lt;BR /&gt;"fromObjectTypeId": "0-8",&lt;BR /&gt;"toObjectTypeId": "0-118",&lt;BR /&gt;"name": "LINE_ITEM_TO_PAYMENT_LINK",&lt;BR /&gt;"cardinality": "ONE_TO_ONE",&lt;BR /&gt;"inverseCardinality": "ONE_TO_MANY",&lt;BR /&gt;"hasUserEnforcedMaxToObjectIds": false,&lt;BR /&gt;"hasUserEnforcedMaxFromObjectIds": false,&lt;BR /&gt;"maxToObjectIds": 1,&lt;BR /&gt;"maxFromObjectIds": 50000,&lt;BR /&gt;"id": "759",&lt;BR /&gt;"createdAt": null,&lt;BR /&gt;"updatedAt": null&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"fromObjectTypeId": "0-118",&lt;BR /&gt;"toObjectTypeId": "0-8",&lt;BR /&gt;"name": "PAYMENT_LINK_TO_LINE_ITEM",&lt;BR /&gt;"cardinality": "ONE_TO_MANY",&lt;BR /&gt;"inverseCardinality": "ONE_TO_ONE",&lt;BR /&gt;"hasUserEnforcedMaxToObjectIds": false,&lt;BR /&gt;"hasUserEnforcedMaxFromObjectIds": false,&lt;BR /&gt;"maxToObjectIds": 50000,&lt;BR /&gt;"maxFromObjectIds": 1,&lt;BR /&gt;"id": "758",&lt;BR /&gt;"createdAt": null,&lt;BR /&gt;"updatedAt": null&lt;BR /&gt;},&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;Nothing ever shows up:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v4/objects/payment_link/5384832/associations/line_items" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v4/objects/payment_link/5384832/associations/line_items&lt;/A&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;"status": "error",&lt;BR /&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;BR /&gt;```&lt;/P&gt;&lt;P&gt;`&lt;A href="https://api.hubapi.com/crm/v4/objects/line_items/34024136239/associations/payment_link" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v4/objects/line_items/34024136239/associations/payment_link&lt;/A&gt;` results in&lt;BR /&gt;```&lt;BR /&gt;{&lt;BR /&gt;"results": []&lt;BR /&gt;}&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And despite &lt;A href="https://api.hubapi.com/crm/v3/properties/line_item" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/properties/line_item&lt;/A&gt; show 'payment_link',&lt;BR /&gt;All results here have payment_link and hs_url set to Null:&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v4/objects/line_items?limit=100&amp;amp;properties=payment_link" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v4/objects/line_items?limit=100&amp;amp;properties=payment_link?properties=hs_url&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For some reason,&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/line_items/search" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/line_items/search&lt;/A&gt;&amp;nbsp;allows property 'hs_url' to show up but, payment_link is always blank still.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The hs_url from search is techinically enough information with which to manually proceed, but to pour salt on the wound, that URL can't be inspected via the GUI&amp;nbsp;&lt;A href="https://app.hubspot.com/payment-links/***," target="_blank" rel="noopener"&gt;https://app.hubspot.com/payment-links/***,&lt;/A&gt;&amp;nbsp;without manually copying the link for each one, AND all of the payment link search/listing endpoints give me the error "not available for public use".&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 21:18:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163649#M82577</guid>
      <dc:creator>JDavisT</dc:creator>
      <dc:date>2025-06-11T21:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Line items and associations to Payment Links</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163960#M82589</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/74696"&gt;@JDavisT&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to invite some members of our community who may offer valuable insights.— hey &lt;STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/115766"&gt;@nickdeckerdevs1&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9629"&gt;@HubDoPete&lt;/a&gt;&lt;/SPAN&gt;, &lt;/STRONG&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt; &amp;nbsp;- Could you share your advice with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/74696"&gt;@JDavisT&lt;/a&gt;&lt;/SPAN&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking a look!&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 14:53:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163960#M82589</guid>
      <dc:creator>DianaGomez</dc:creator>
      <dc:date>2025-06-12T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Line items and associations to Payment Links</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163992#M82594</link>
      <description>&lt;P&gt;This is a tough one. Not having that association publically available is another half implemention of these newer objects that are being created. I feel for you and I hope that this stuff get's moved forward and becomes publically available.&lt;BR /&gt;&lt;BR /&gt;Here are a few ideas -- I'm just going to be brief, some of them may require more explaining or testing, so let me know if one interests you and you would like to dig in more. I am not super familiar with payment links and how they are being set up (I used them a few times and they don't meet the needs of most use cases I had for them) -- so &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; maybe I'm out of touch&lt;BR /&gt;&lt;BR /&gt;Create a spreadsheet and keep track of this. Simple, effective, not going to help the older stuff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get into the dev tools on these pages and inspect the items. It is entirely possible that you might be able to run a script in the console that allows you to extract some of this data. I do this often inside different aspects of HubSpot -- like to get all the edit page urls in website and landing pages.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do payment links create payments? Is it possible to export out payment records and find this information?&lt;BR /&gt;&lt;BR /&gt;And then finally, and I'm not sure I know what you are trying to do with these&lt;BR /&gt;----------------------------------------------------------------------------------------&lt;BR /&gt;&lt;SPAN&gt;For some reason,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/line_items/search" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.hubapi.com/crm/v3/objects/line_items/search&lt;/A&gt;&amp;nbsp;allows property 'hs_url' to show up but, payment_link is always blank still.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The hs_url from search is techinically enough information with which to manually proceed, but to pour salt on the wound, that URL can't be inspected via the GUI&amp;nbsp;&lt;A href="https://app.hubspot.com/payment-links/***,?uuid=abeb692e-0f06-437c-9b2a-0beebe28f262" target="_blank" rel="noopener noreferrer"&gt;https://app.hubspot.com/payment-links/***,&lt;/A&gt;&amp;nbsp;without manually copying the link for each one, AND all of the payment link search/listing endpoints give me the error "not available for public use".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------&lt;BR /&gt;&lt;BR /&gt;I would export records to a csv, export that to a json object and set up a local script that runs through this data, does the searches you have in here, then generates the urls for these, and save that as a csv file. Load that into google sheets, create a quick app script that opens every link on a 500ms delay...&lt;BR /&gt;&lt;BR /&gt;That would open all of the links, I'm not sure if that is what you are trying to do lol&lt;BR /&gt;&lt;BR /&gt;This may be of no help...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:27:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1163992#M82594</guid>
      <dc:creator>nickdeckerdevs1</dc:creator>
      <dc:date>2025-06-12T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Line items and associations to Payment Links</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1164011#M82596</link>
      <description>&lt;P&gt;Ok so the dev tools trick does work to find the URLs all in one place. In theory this should be enough information for me to map out all payment links and ascertain which need to be redone.&amp;nbsp; Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 15:57:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1164011#M82596</guid>
      <dc:creator>JDavisT</dc:creator>
      <dc:date>2025-06-12T15:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Line items and associations to Payment Links</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1164019#M82597</link>
      <description>&lt;P&gt;If you get a workable script would you mind sharing it in a code block or a gist so that we can have this documented for future viewers?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 16:09:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Line-items-and-associations-to-Payment-Links/m-p/1164019#M82597</guid>
      <dc:creator>nickdeckerdevs1</dc:creator>
      <dc:date>2025-06-12T16:09:08Z</dc:date>
    </item>
  </channel>
</rss>

