Cannot Delete Payments

Hey @imfromio

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.

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.

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.