# Error with API Call

**URL:** <https://forum.bubble.io/t/error-with-api-call/20136>\
**Category:** APIs\
**Created:** [November 7, 2017, 12:51pm UTC](https://forum.bubble.io/t/error-with-api-call/20136 "2017-11-07T12:51:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![am.experts.online](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@am.experts.online](https://forum.bubble.io/u/am.experts.online)\
**Post date:** [November 7, 2017, 12:51pm UTC](https://forum.bubble.io/t/error-with-api-call/20136/1 "2017-11-07T12:51:10Z")

</div>

Hi there,  
I am working on a new plugin that involves talking to the Stripe API. I have tested in Postman without any issues, but in Bubble I keep getting a response from Stripe like the following…

> Raw response for the API  
> "{\n "error": {\n "type": "invalid\_request\_error",\n "message": "Invalid request (check that your POST content type is application/x-www-form-urlencoded)

I have tried setting the Header key with **Content-Type** , **content-type** , **Content-type** - all without joy.

Would appreciate any help.  
Thanks  
Adam

---

<div class="post-metadata">

**Author:** ![am.experts.online](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@am.experts.online](https://forum.bubble.io/u/am.experts.online)\
**Post date:** [November 7, 2017, 1:15pm UTC](https://forum.bubble.io/t/error-with-api-call/20136/2 "2017-11-07T13:15:43Z")

</div>

Ok. So the issue wasn’t with the content-type. I was seeing parameters that needed to be done in the JSON body instead of as parameters.
