# API Connector Stripe invalid request

**URL:** <https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995>\
**Category:** APIs\
**Created:** [February 13, 2020, 12:05pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995 "2020-02-13T12:05:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [February 13, 2020, 12:05pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/1 "2020-02-13T12:05:00Z")

</div>

HI all,

I am trying to do a custom subscription for multiple quantities through Stripe. I am using API connector but i am not able to get it to work. Anyone knows why?

I keep getting this error. (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at [https://support.stripe.com/](https://support.stripe.com/))

I can get the API to work in postman, so it’s definitely a Bubble side error. Anyone can advise?

 ![a0](https://us1.discourse-cdn.com/bubble/original/3X/1/5/15faa34655e525780119968e0e437348eb33006a.jpeg) ![a1](https://us1.discourse-cdn.com/bubble/original/3X/f/c/fc958c84934f3c9106879a48a5b4eb3736a5e896.jpeg)

This is the API docs for anyone interested:

> **[Setting subscription quantities](https://stripe.com/docs/billing/subscriptions/quantities)**
>
> Vary the cost of a subscription by subscribing a customer to multiple quantities of a product.

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [February 13, 2020, 4:38pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/2 "2020-02-13T16:38:21Z")

</div>

@loh.cher.e Put another content-type in your Charge with multiple quantity api call.

**Header** :

content-type : application/x-www-form-urlencoded

---

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [February 14, 2020, 12:12am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/3 "2020-02-14T00:12:28Z")

</div>

> [@lantzgould](#):
>
> application/x-www-form-urlencoded

I’ve added it, but the exact same error comes up…

 ![a2](https://us1.discourse-cdn.com/bubble/original/3X/d/1/d1c3dfd40db54c424498402e8cc4ebedacd7e970.png) ![a1](https://us1.discourse-cdn.com/bubble/original/3X/7/f/7fcbcc9d938515c4ad0f163a17d1879839c5e72e.png)

---

<div class="post-metadata">

**Author:** ![keith](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/keith/32/56020_2.png) [@keith](https://forum.bubble.io/u/keith)\
**Post date:** [February 14, 2020, 12:29am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/4 "2020-02-14T00:29:40Z")

</div>

What you actually need to do is change the Body Type option (possibly as well as what you did at @lantzgould’s suggestion) :

![image](https://us1.discourse-cdn.com/bubble/original/3X/0/7/07257594b7615af7747a140cf857abc80480602b.png)

That oughta do it!

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [February 14, 2020, 12:36am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/5 "2020-02-14T00:36:05Z")

</div>

Oof, I missed that. Thanks @keith.

@loh.cher.e I noticed when creating a custom Stripe Express integration, I’d have to sometimes paste the response manually. API connector can be finicky. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [February 14, 2020, 12:54am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/6 "2020-02-14T00:54:42Z")

</div>

Thanks for the advice! Still having the same error though. Just to make sure, i created a new call with the same settings and it still didn’t work…haha.

 ![a2](https://us1.discourse-cdn.com/bubble/original/3X/6/f/6f1bfb559e371d5c1af0948dead84347a874ec6f.png) ![a1](https://us1.discourse-cdn.com/bubble/original/3X/b/7/b7f8a1ad7a443ce1af9c8b084340cf98e2e03c86.png)

---

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [February 15, 2020, 9:14am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/7 "2020-02-15T09:14:35Z")

</div>

Anyway, I have submitted a bug report since you all mentioned that the settings should have worked. Will update when i get a reply!

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [February 15, 2020, 11:59am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/8 "2020-02-15T11:59:47Z")

</div>

Did you try pasting the response manually?

---

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [February 25, 2020, 10:39pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/9 "2020-02-25T22:39:45Z")

</div>

I solved it by ticking the queryst option. The other settings were all ok

---

<div class="post-metadata">

**Author:** ![mayvik](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mayvik/32/82728_2.png) [@mayvik](https://forum.bubble.io/u/mayvik)\
**Post date:** [July 16, 2020, 11:37am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/10 "2020-07-16T11:37:52Z")

</div>

This is a very well hidden solution.

---

<div class="post-metadata">

**Author:** ![miguel](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@miguel](https://forum.bubble.io/u/miguel)\
**Post date:** [January 14, 2021, 12:09pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/11 "2021-01-14T12:09:42Z")

</div>

I honestly don’t understand why we have to tick the queryst option. This is a POST call, not a GET call, so I don’t really understand what queryst is for, and why this only works if that check is ticked.

@eve @Bubble, could you please clarify?

Thanks.

PS: is there a single handle for the support team, so we don’t have to tag a single member in particular?

---

<div class="post-metadata">

**Author:** ![miguel](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@miguel](https://forum.bubble.io/u/miguel)\
**Post date:** [January 18, 2021, 8:37am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/12 "2021-01-18T08:37:31Z")

</div>

Hi @eve, would you mind helping us out here when you have a chance? Many thanks.

---

<div class="post-metadata">

**Author:** ![theomcortez](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@theomcortez](https://forum.bubble.io/u/theomcortez)\
**Post date:** [January 21, 2022, 2:31pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/13 "2022-01-21T14:31:28Z")

</div>

Hey, i’m kinda new to API’s, and i’m having the exact same problem. Can you explain me what you did? What is this Queryst Option? Thanks in advance

---

<div class="post-metadata">

**Author:** ![loh.cher.e](https://avatars.discourse-cdn.com/v4/letter/l/f04885/32.png) [@loh.cher.e](https://forum.bubble.io/u/loh.cher.e)\
**Post date:** [January 22, 2022, 7:39am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/14 "2022-01-22T07:39:03Z")

</div>

Hey there @theomcortez , I’m still not sure till this day, but it seems like this problem only exists for POST calls. I just try it whenever i face the same error 😃

---

<div class="post-metadata">

**Author:** ![jayy](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jayy](https://forum.bubble.io/u/jayy)\
**Post date:** [May 12, 2022, 2:30am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/15 "2022-05-12T02:30:28Z")

</div>

Was struggling a bit with this as well.

I just followed this thread. Somehow the querystring option only appears when you perform the steps as follows or you can click on Add Parameter:

> [@API Connector Stripe Content-Type error](http://forum.bubble.io/t/api-connector-stripe-content-type-error/129288):
>
> Im trying to integrate Custom Connect accounts from Stripe. I am struggling with an error from the API Connector. The error is complaining about Content-Type, despite this being defined in the header. This request is working in Postman. Any help very much appreciated! ============================================== There was an issue setting up your call. Raw response for the API Status code 400 { “error”: { “message”: “Invalid request (check that your POST content type is application/x…

Hope this helps someone!

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/b/a/ba4922ae1061ff2e9231f4e75a73985d16246e03.png)

---

<div class="post-metadata">

**Author:** ![catranisni1](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@catranisni1](https://forum.bubble.io/u/catranisni1)\
**Post date:** [August 25, 2023, 3:57pm UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/17 "2023-08-25T15:57:08Z")

</div>

Thank you for this! I wish there was better documentation for this because it is not very self explanatory.

---

<div class="post-metadata">

**Author:** ![d.vasilev.pavlov](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@d.vasilev.pavlov](https://forum.bubble.io/u/d.vasilev.pavlov)\
**Post date:** [December 22, 2023, 2:41am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/18 "2023-12-22T02:41:53Z")

</div>

Hey everyone,

I am encountering the same issue and it looks like the querystring method is the only thing that works properly.

I managed to get the content-type thing to work even without the querystring method by putting it in two different places but the body of my request call gets completely broken and sends messed up data (even though it technically works)

When I use postman I am able to POST the data to Stripe in the body of my request.

When I use Bubble I can only get it to work by posting it as querystring parameters, not body data.

Can someone shed some light on this?

---

<div class="post-metadata">

**Author:** ![vritzka](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vritzka/32/222964_2.png) [@vritzka](https://forum.bubble.io/u/vritzka)\
**Post date:** [July 15, 2024, 9:30am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/19 "2024-07-15T09:30:19Z")

</div>

Same problem here.

It could be that it’s missing the `boundary=something` on the content-type.

Or maybe there is a bug with the Bubble API connector or Stripe.

These settings should work, but they don’t:

 ![Screenshot 2024-07-15 at 5.23.17 pm](https://us1.discourse-cdn.com/bubble/original/3X/4/b/4bb392890166de535b61a5e9069108fbd0a6c312.png)

They produce this error:

 ![Screenshot 2024-07-15 at 5.24.40 pm](https://us1.discourse-cdn.com/bubble/original/3X/b/e/bea2e2666ac57a3e7d22ca27af5e850b082f7bc5.png)

Work-around

 ![Screenshot 2024-07-15 at 5.25.48 pm](https://us1.discourse-cdn.com/bubble/original/3X/6/d/6d95f3a93c929334ca96d6e67961028c95bf125e.png)

---

<div class="post-metadata">

**Author:** ![hamzasaleem1312](https://avatars.discourse-cdn.com/v4/letter/h/0ea827/32.png) [@hamzasaleem1312](https://forum.bubble.io/u/hamzasaleem1312)\
**Post date:** [March 18, 2025, 8:23am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/20 "2025-03-18T08:23:54Z")

</div>

Tick the Queryst option the call will be initilized same was happening with me i have solved the errror after ticking the Queryst checkbox.

---

<div class="post-metadata">

**Author:** ![hamzasaleem1312](https://avatars.discourse-cdn.com/v4/letter/h/0ea827/32.png) [@hamzasaleem1312](https://forum.bubble.io/u/hamzasaleem1312)\
**Post date:** [March 18, 2025, 8:24am UTC](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995/21 "2025-03-18T08:24:55Z")

</div>

Tick the Queryst option the API call will be initilized successfully same error was happening with me I have solved the error after ticking the Queryst checkbox.

[Next page](https://forum.bubble.io/t/api-connector-stripe-invalid-request/78995.md?page=2)
