# How do I create payment link via API?

**URL:** <https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [May 13, 2024, 5:34pm UTC](https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035 "2024-05-13T17:34:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJManfrin](https://avatars.discourse-cdn.com/v4/letter/d/aca169/32.png) [@DJManfrin](https://community.hubspot.com/u/DJManfrin)\
**Post date:** [May 13, 2024, 5:34pm UTC](https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035/1 "2024-05-13T17:34:48Z")

</div>

My questions is about commerce \> payment links.

I created a product in my environment (website) and I also created a Hubspot product synchronously. After that I need create a payment link to associate with the product.

How do i create a paymet link and associate with the product via API?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 14, 2024, 5:52pm UTC](https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035/2 "2024-05-14T17:52:19Z")

</div>

Hey, @DJManfrin 👋 [Payment links need to be created in-app](https://knowledge.hubspot.com/payments/create-and-share-a-products-payment-link). The [Payments API]([https://This](https://This) is a read-only API) is **read-only** and cannot be used to manage, associate, or update payments.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![AlfredLundqvist](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@AlfredLundqvist](https://community.hubspot.com/u/AlfredLundqvist)\
**Post date:** [September 11, 2024, 7:37am UTC](https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035/3 "2024-09-11T07:37:15Z")

</div>

Hi! Is it on the road map to have the Payments API more than just read-only? If no, then why not? And if yes, when? 🙂

---

<div class="post-metadata">

**Author:** ![BrunoRicci](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@BrunoRicci](https://community.hubspot.com/u/BrunoRicci)\
**Post date:** [December 15, 2024, 8:18pm UTC](https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035/4 "2024-12-15T20:18:19Z")

</div>

Hi! I’m needing the same feature in order to automate some deal payments, to automatically associate the payment + invoice to the corresponding deal. This is done when a Payment Link is associated to a Deal and they payment link is paid.  
I swear I think I’ve read something about payment link creation via API about 6 months ago, but then the documentation site got upgraded and I cannot seem to find that information again.

---

<div class="post-metadata">

**Author:** ![RSingh406](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@RSingh406](https://community.hubspot.com/u/RSingh406)\
**Post date:** [March 1, 2025, 6:43am UTC](https://community.hubspot.com/t/how-do-i-create-payment-link-via-api/107035/5 "2025-03-01T06:43:01Z")

</div>

Is there a feature in HubSpot where we can generate dynamic payment links with an API-based solution?
