# Stripe API Create a payment link ARRAY

**URL:** <https://community.make.com/t/stripe-api-create-a-payment-link-array/27685>\
**Category:** Questions\
**Tags:** stripe, arrays, api\
**Created:** [February 16, 2024, 10:45am UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685 "2024-02-16T10:45:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex6](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Alex6](https://community.make.com/u/Alex6)\
**Post date:** [February 16, 2024, 10:45am UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685/1 "2024-02-16T10:45:04Z")

</div>

Hi all,

Im trying to make a Stripe: **Create a payment link API** call using Make. Unfortunately, that call is not in the list of available modules, so I need to use the Make an API Call module instead.

[https://docs.stripe.com/api/payment\_links/payment\_links/create](https://docs.stripe.com/api/payment_links/payment_links/create)

However, that call requires an array of dictionaries as parameter. I can’t figure out how to add thus kind of value in the field. Am I missing something or is there a better way to do it ?

 ![Screenshot 2024-02-16 at 12.42.43](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/f/cf656dcdee10af9e43c08f1205737ead6f7b8e20.png)

---

<div class="post-metadata">

**Author:** ![\_Mark](https://avatars.discourse-cdn.com/v4/letter/_/c37758/32.png) [@\_Mark](https://community.make.com/u/_Mark)\
**Post date:** [February 16, 2024, 12:05pm UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685/2 "2024-02-16T12:05:26Z")

</div>

You need to add it to the body of the module like this:

```auto
{
     "line_items": 
   [
      {
            "price": "price_1MoC3TLkdIwHu7ixcIbKelAC", 
            "quantity": 1
      },
      { "price": "price_3Joy6FGHdIwHu7ixcIsfRAC",           
                "quantity": 2 
      }
   ]
}

```

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/c/1c397824dacfff52c70e5a41b9f298ec3f8c0a90.png)

---

<div class="post-metadata">

**Author:** ![Alex6](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Alex6](https://community.make.com/u/Alex6)\
**Post date:** [February 16, 2024, 12:28pm UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685/3 "2024-02-16T12:28:57Z")

</div>

Ive tried that already but it doesnt work…

**Missing required param: line\_items.**

 ![Screenshot 2024-02-16 at 14.26.52](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/d/2d0f25fda87504042559c686b03d70f89c61c384.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [February 16, 2024, 1:19pm UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685/4 "2024-02-16T13:19:14Z")

</div>

@_Mark You cannot send JSON because they do not accept the content-type “application/json”.

Here is the way to do it correctly in Stripe:

 ![Screenshot_2024-02-16_210244](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/2/322ed353594b1bf5698ad0ada36a65c8d61ceb8e.png)

---

<div class="post-metadata">

**Author:** ![Richard\_Tank](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@Richard\_Tank](https://community.make.com/u/Richard_Tank)\
**Post date:** [February 29, 2024, 12:19pm UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685/5 "2024-02-29T12:19:29Z")

</div>

Do you know how to do this for multiple line items?  
I’m getting an unknown number of line items from HubSpot and writing them as an unknown number of line items to a payment link.

If Stripe used JSON, I would use the JSON aggregator, but there isn’t a form aggregator.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [March 14, 2024, 12:32pm UTC](https://community.make.com/t/stripe-api-create-a-payment-link-array/27685/6 "2024-03-14T12:32:47Z")

</div>


