How to transform postman chargebee call to Make chargebee call

I have this postman HTTP API call to Chargebee:

POST /api/v2/invoices/create_for_charge_items_and_charges HTTP/1.1
Host: ahoy-test.chargebee.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic dGVzdF9zY3VkUHlwU1lOekpMR2RRcDgzRGxncXJLejVudjY4NXY6
Content-Length: 370

subscription_id=16CGhyU7I6S9M4MWk&item_prices%5Bitem_price_id%5D%5B0%5D=Installments-Charge-USD&item_prices%5Bunit_price%5D%5B0%5D=3000&item_prices%5Bitem_price_id%5D%5B1%5D=First-Installment-handling-fee-USD&item_prices%5Bunit_price%5D%5B1%5D=100&item_prices%5Bitem_price_id%5D%5B2%5D=Late-payment-fee-USD&item_prices%5Bunit_price%5D%5B1%5D=4500&invoice_date=1717427163

One of the parameters is an array of “item_prices”. How do I pass it in the operation?
When I map this call to the Chargebee “Make an API Call” operation like in the attached, I’m getting error that Chargebee doesn’t identify the parameters

How do I map this correctly?

Maybe to avoid confusion you should unescape the original query first

Screenshot_2024-06-27_130626

Notice the & and square brackets []

Then if that doesn’t work, encode the body like this:

Screenshot_2024-06-27_130642

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like