Getting Stripe API Call to work

I’m looking for someone who understands Stripe pluggin, or how I might be able to do this with API connector.

In Stripe I created multiple prices on a single product. Before I was using discount codes, but I hated that when it imported into Quickbooks it showed I was making the full amount, and then was adding in a discount line item. I found that if instead I use different prices under a product that it won’t add the discount line.

Before in Bubble I had a workflow that would add the discount to a user in Stripe, this worked, but as mentioned I don’t want the discount line to show up in Quickbooks.

I’ve been trying to create a workflow that updates the subscription. I was trying Update a Subscription Item, but that was not working.

I then tried Subscribe User to a plan. It seemed to allow you to update an existing plan which was the goal, but I got hung up on the Payment Behavior, and what to select. Allow Incomplete, Error if incomplete, Pending if incomplete, or Dafult incomplete.

I asked ChatGPT and Google AI to advise, and it had me creating a API connector, since I wanted to make sure it did not bill them after the change, or change the date of their next payment. I simply wanted to change the subscription price, so next bill it would be at the new price(it bills yearly).

Anyways, I created this API connector, but I keep getting an issue. With both AI I’ve been running round in circles trying to get it to work, and still getting errors. Can anyone tell what I’m doing wrong?

Hey @eric10 - with all Stripe calls in the API connector, you need to change the type to JSON and click the “query string” box for all the parameters (will popup when you change to JSON)

Good luck!

Thank you! That seemed to work.

Do you know if I need the items[0][id]? In the workflow I’m having a hard time getting it. I’ve never captured that info into Bubble data like I have with the Sub ID for each user.

Google AI is saying I need to use Get data from an external API, and then select the same API, but the API is not showing in the list of options.

I don’t think you’ll need the items to prorate if they’re all on the same cycle (e.g monthly at the same time)

Just the subscription id

Hey @eric10

1st. To get api call in Get data from an external API, you have to change ACTION to DATA

2nd. If you need any custom data in the backend workflows through the Webhook, you should pass that data in METADATA