How to add child paramaters for API?

Hello! I am trying to create a POST HTTP request to Mollie (payment service) using the Bubble API connector, but I have problems adding these body child paramaters: currency and value

If I add them in body parameters in the Bubble API connector:

I get the error that Mollie doesn’t recognize the amount parameter and by consequence also not the child parameters amount[currency] and the amount[value] parameters:

This is how the JSON body for amount and its child parameters should look :
how it should look

How do I display these child parameters in Bubble API connector so that Mollie will recognize them?

amount is the key
in amount you set value to {"value":"10.00","currency":"EUR"}

I prefer to use JSON body however.

I tried this:

But still not working:

Do you have a linknto API doc?

Create payment (mollie.com)

You mean the API documentation?

This API seem to accept application/x-www-form-urlencoded and not JSON
This is probably why you are getting this error. At this moment, the first screensho with amount[value] was correct, but not the header. However, Bubble have made an update and since a moment, in JSON data type. To allow application/x-www-form-urlencoded content-type, you need to select queryst checkbox. If you don’t select this box, bubble will overwrite your header to application/json

1 Like

Thank you so much! It worked like this:

1 Like