# API Connector Stripe Content-Type error

**URL:** <https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288>\
**Category:** APIs\
**Created:** [January 7, 2021, 12:01am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288 "2021-01-07T00:01:26Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![garypyne](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garypyne/32/97689_2.png) [@garypyne](https://forum.bubble.io/u/garypyne)\
**Post date:** [January 7, 2021, 12:01am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/1 "2021-01-07T00:01:26Z")

</div>

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-www-form-urlencoded). If you have any questions, we can help at [Stripe: Help & Support](https://support.stripe.com/.)”,  
“type”: “invalid\_request\_error”  
}  
}

 ![Screenshot 2021-01-06 at 23.57.24](https://us1.discourse-cdn.com/bubble/original/3X/8/3/8361bead6a3d082332aede8fa3915c3c4f319d08.png) ![Screenshot 2021-01-06 at 23.57.16](https://us1.discourse-cdn.com/bubble/original/3X/7/3/739fdd84cb2f888806d521e4b796c565da98c725.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [January 7, 2021, 12:24am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/2 "2021-01-07T00:24:11Z")

</div>

Delete the Content-Type header, and set the Body Type to JSON.

Then set all parameters as querystrings.

That should work.

---

<div class="post-metadata">

**Author:** ![garypyne](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/garypyne/32/97689_2.png) [@garypyne](https://forum.bubble.io/u/garypyne)\
**Post date:** [January 7, 2021, 8:58am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/3 "2021-01-07T08:58:28Z")

</div>

Fixed! Thanks Adam

---

<div class="post-metadata">

**Author:** ![jackbrandt788](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jackbrandt788](https://forum.bubble.io/u/jackbrandt788)\
**Post date:** [July 26, 2022, 6:59pm UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/4 "2022-07-26T18:59:48Z")

</div>

Having the same issue, doesn’t seem to fix it…

 ![Screen Shot 2022-07-26 at 2.59.22 PM](https://us1.discourse-cdn.com/bubble/original/3X/c/6/c611cb19207a797d724f43c134a4a47290c0d8b3.png)  
 ![Screen Shot 2022-07-26 at 2.59.40 PM](https://us1.discourse-cdn.com/bubble/original/3X/9/e/9eee635b7c425ec317d4ad892b22d2bd296d86c1.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [July 27, 2022, 8:57am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/5 "2022-07-27T08:57:33Z")

</div>

> [@jackbrandt788](#):
>
> Having the same issue, doesn’t seem to fix it…

What didn’t seem to fix it?

---

<div class="post-metadata">

**Author:** ![mulleralice984](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mulleralice984](https://forum.bubble.io/u/mulleralice984)\
**Post date:** [March 14, 2024, 7:51pm UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/6 "2024-03-14T19:51:10Z")

</div>

@adamhholmes Facing a similar issue and tried your fix but didn’t work 😭  
Setup:

 ![Screenshot 2024-03-14 at 19.44.28](https://us1.discourse-cdn.com/bubble/original/3X/8/3/832e8683d372718ed2486ba200ab62a22f77d4fe.png)

Error:

 ![Screenshot 2024-03-14 at 19.45.52](https://us1.discourse-cdn.com/bubble/original/3X/6/9/6961c8073736f52b45783946e0d10401ac6df05c.png)

Stripe API doc regarding posting a refund: [Create a refund | Stripe API Reference](https://docs.stripe.com/api/refunds/create) would really appreciate your help!

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [March 14, 2024, 7:56pm UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/7 "2024-03-14T19:56:56Z")

</div>

The error is telling you there’s no such charge… so that’s your issue.

---

<div class="post-metadata">

**Author:** ![mulleralice984](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mulleralice984](https://forum.bubble.io/u/mulleralice984)\
**Post date:** [April 9, 2024, 7:06pm UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/8 "2024-04-09T19:06:19Z")

</div>

Whoops! Thank you!

---

<div class="post-metadata">

**Author:** ![jdriddell01](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@jdriddell01](https://forum.bubble.io/u/jdriddell01)\
**Post date:** [October 4, 2024, 12:23am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/9 "2024-10-04T00:23:14Z")

</div>

![Screenshot 2024-10-04 at 10.21.18 am](https://us1.discourse-cdn.com/bubble/original/3X/5/d/5dd5ed22aa1d23b0fb00e1297d56aa4d879a4bd6.png)  
Also experiencing problems.  
I have followed the above instructions. I have solved the 400 but Bubble doesn’t seem to recognise the response. I can see a success 200 in Stripe dashboard with a response, but nothing happens in Bubble when I initialise. I am unable to see “Result of step” in the workflow. The response is just not being handled by Bubble at all?

---

<div class="post-metadata">

**Author:** ![nocodejordan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nocodejordan/32/123255_2.png) [@nocodejordan](https://forum.bubble.io/u/nocodejordan)\
**Post date:** [October 4, 2024, 12:43am UTC](https://forum.bubble.io/t/api-connector-stripe-content-type-error/129288/10 "2024-10-04T00:43:22Z")

</div>

Your ‘Data Type’ is set to ‘Empty’. Change it to JSON to get a JSON response which you can use in the workflow steps.
