Forum Documentation Showcase Pricing Learn more

Error Creating Stripe Invoice Item via API - What Am I Doing Wrong?

This error really bugging me.

Trying to figure out why I’m getting the below Content-Type error with my setup appearing to be correct:

First thing, you need to create a json payload. Actually you have set parameters.

Also, you may need to add header

Content-Type: application/json

That doesn’t work for me for some reason:

I need to create a JSON payload?

NEvermind. I forget that Stripe use form encoded. Not json.
Add header Content-Type: application/x-www-form-urlencoded

If this doesn’T work, I have another post that state what currently happen in different case with the API Connector. Bubble need to have a check and fix that becayse it’s very weird. I will try to find it