<?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: Cannot Delete Payments in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1229479#M85839</link>
    <description>&lt;ARTICLE class="" dir="auto" tabindex="-1" data-turn-id="f9bac904-3e35-497e-bf8f-298ede4be13f" data-testid="conversation-turn-42" data-scroll-anchor="true" data-turn="assistant"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" tabindex="-1"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" dir="auto" data-message-author-role="assistant" data-message-id="d1d9ba05-c44e-4733-a7e6-619caa0095b5" data-message-model-slug="gpt-5-1-thinking"&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P data-start="0" data-end="88"&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1005733"&gt;@imfromio&lt;/a&gt;&amp;nbsp;&amp;nbsp;painful one to discover after a test run with “real” looking data, I know.&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;The key thing here is how those records were created. Payments that come from Commerce Hub processing (HubSpot payments or native Stripe) really cannot be deleted or modified over the API, only refunded/voided and managed in the UI (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/guide" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/guide )&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;But payments you create yourself through the Payments API are stored as commerce_payments objects&amp;nbsp;and can be archived programmatically with DELETE /crm/v3/objects/commerce_payments/{commercePaymentId}, which moves them to&amp;nbsp;the recycle bin for 90 days before permanent deletion (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/basic/delete-crm-v3-objects-commerce_payments-commercePaymentId" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/basic/delete-crm-v3-objects-commerce_payments-commercePaymentId )&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;If your duplicates were created via the API with a third-party processor, you should not need to manually break every line item link first. HubSpot will drop those associations once the payment object itself is archived. If you really want to clean associations explicitly, you can still use the Associations v4 API to remove links between commerce_payments and line_items before&amp;nbsp;deleting, but that is more of a belt-and-suspenders step than a requirement (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-associations-v4/guide" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api-reference/crm-associations-v4/guide )&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;I would take one duplicate payment, delete it with the commerce payments endpoint, then verify in the UI that the deal and line items look correct before doing it in bulk. If part of the pain here is that duplicate payments originate upstream, Stacksync helps by syncing only normalized, de-duplicated payment records into HubSpot so you do not have to clean up bad objects after the fact.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/ARTICLE&gt;</description>
    <pubDate>Fri, 28 Nov 2025 20:45:36 GMT</pubDate>
    <dc:creator>RubenBurdin</dc:creator>
    <dc:date>2025-11-28T20:45:36Z</dc:date>
    <item>
      <title>Cannot Delete Payments</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1216425#M85098</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am creating payment records using the Payments API. I accidentally created a bunch of duplicate payments that are associated to Deals, Line Items, and Contacts. Problem is I cannot delete any of these duplicate payment records. I tried disassociating them from contact and deals, but do not know how to do that with line items. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone know how I can delete these payment records?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 15:34:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1216425#M85098</guid>
      <dc:creator>imfromio</dc:creator>
      <dc:date>2025-10-26T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Payments</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1216707#M85108</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1005733"&gt;@imfromio&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You can remove payments created through the Payments API in two ways. Either remove their associations with line items, deals, invoices, or contacts first, then archive or delete the payment. Or delete the payment directly if it is not a real processed transaction.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Start by listing the payment IDs you want to remove. Check what each payment is linked to using the associations API. Remove those associations, especially with line items or invoices. If a payment reflects a real charge, refund it first in HubSpot or through your processor. Then archive or delete the payment record using the commerce payments endpoints.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Always clear associations before deletion to avoid errors. Refund before deletion for real payments. Ensure your private app has write permissions for CRM objects and associations.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 14:32:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1216707#M85108</guid>
      <dc:creator>suprdense</dc:creator>
      <dc:date>2025-10-27T14:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Payments</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1217166#M85129</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="color:var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/974506"&gt;@suprdense&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for the reply. To add on to what you said, the critical limitation is here — "Payments created through Commerce Hub payment processing (i.e., HubSpot payments or Stripe payment processing) &lt;STRONG&gt;cannot be modified or deleted via this API&lt;/STRONG&gt;." – Jaycee&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 14:29:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1217166#M85129</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-10-28T14:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Payments</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1217183#M85132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;That's true, but my payment records were created using the API. I am using a third-party payment processor and then using the HubSpot API to create those payemnt records.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 14:40:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1217183#M85132</guid>
      <dc:creator>imfromio</dc:creator>
      <dc:date>2025-10-28T14:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Payments</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1218324#M85186</link>
      <description>&lt;P&gt;Thanks for the update. To confirm, you are removing all the associations, including Line Items? Thanks! — Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 22:34:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1218324#M85186</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2025-10-30T22:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Delete Payments</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1229479#M85839</link>
      <description>&lt;ARTICLE class="" dir="auto" tabindex="-1" data-turn-id="f9bac904-3e35-497e-bf8f-298ede4be13f" data-testid="conversation-turn-42" data-scroll-anchor="true" data-turn="assistant"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" tabindex="-1"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" dir="auto" data-message-author-role="assistant" data-message-id="d1d9ba05-c44e-4733-a7e6-619caa0095b5" data-message-model-slug="gpt-5-1-thinking"&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P data-start="0" data-end="88"&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1005733"&gt;@imfromio&lt;/a&gt;&amp;nbsp;&amp;nbsp;painful one to discover after a test run with “real” looking data, I know.&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;The key thing here is how those records were created. Payments that come from Commerce Hub processing (HubSpot payments or native Stripe) really cannot be deleted or modified over the API, only refunded/voided and managed in the UI (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/guide" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/guide )&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="0" data-end="88"&gt;But payments you create yourself through the Payments API are stored as commerce_payments objects&amp;nbsp;and can be archived programmatically with DELETE /crm/v3/objects/commerce_payments/{commercePaymentId}, which moves them to&amp;nbsp;the recycle bin for 90 days before permanent deletion (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/basic/delete-crm-v3-objects-commerce_payments-commercePaymentId" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api-reference/crm-commerce-payments-v3/basic/delete-crm-v3-objects-commerce_payments-commercePaymentId )&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;If your duplicates were created via the API with a third-party processor, you should not need to manually break every line item link first. HubSpot will drop those associations once the payment object itself is archived. If you really want to clean associations explicitly, you can still use the Associations v4 API to remove links between commerce_payments and line_items before&amp;nbsp;deleting, but that is more of a belt-and-suspenders step than a requirement (&lt;A href="https://developers.hubspot.com/docs/api-reference/crm-associations-v4/guide" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api-reference/crm-associations-v4/guide )&lt;/A&gt;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="876" data-end="1590"&gt;I would take one duplicate payment, delete it with the commerce payments endpoint, then verify in the UI that the deal and line items look correct before doing it in bulk. If part of the pain here is that duplicate payments originate upstream, Stacksync helps by syncing only normalized, de-duplicated payment records into HubSpot so you do not have to clean up bad objects after the fact.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/ARTICLE&gt;</description>
      <pubDate>Fri, 28 Nov 2025 20:45:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-Delete-Payments/m-p/1229479#M85839</guid>
      <dc:creator>RubenBurdin</dc:creator>
      <dc:date>2025-11-28T20:45:36Z</dc:date>
    </item>
  </channel>
</rss>

