API Connector Stripe Content-Type error

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”
}
}

1 Like

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

Then set all parameters as querystrings.

That should work.

3 Likes

Fixed! Thanks Adam

1 Like

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 :sob:
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

Whoops! Thank you!