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”,
“type”: “invalid_request_error”
}
}
2 Likes
Delete the Content-Type header, and set the Body Type to JSON.
Then set all parameters as querystrings.
That should work.
3 Likes
Having the same issue, doesn’t seem to fix it…
What didn’t seem to fix it?
@adamhholmes Facing a similar issue and tried your fix but didn’t work 
Setup:
Error:
Stripe API doc regarding posting a refund: Create a refund | Stripe API Reference would really appreciate your help!
The error is telling you there’s no such charge… so that’s your issue.
1 Like
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?
Your ‘Data Type’ is set to ‘Empty’. Change it to JSON to get a JSON response which you can use in the workflow steps.
1 Like