Hi,
I’m interested in setting up a scheduled workflow to run a Stripe API to make transfers to Connect accounts. I’ve reviewed the forums and Bubble Docs, but am still a bit confused on the best way to do this.
I have the outbound API call to Stripe working and I can do these transfers as a button-driven workflow/individually. But if I wanted to ‘batch’ them such that each night all of the transfers are sent over the Stripe API, whats the proper way to do that?
I have a thing called “Transaction” that has all of the details Stripe needs (amount, currency, Connect ID, etc.) that gets created elsewhere. I’m not sure if this is the ideal way to do it, but, based on Bubble docs, I tried setting up a “Recurring Event” > “Schedule API Workflow on a List” backend workflow. but got confused by two pieces: the ‘Scheduled date’ and the design of the API Workflow for it to run. Here is what I have so far:
“Recurring Event” contents:
The ‘search for Transactions’ here contains the criteria for only including the relevant Transactions in the list. I think this is the place to do that?
I’m a little confused on the “scheduled date” above. Does the current setting mean it will run 12 hours after I created this Recurring Event? Or do I need to use the “Set/Cancel a recurring event” action?
Here is the API workflow the Recurring Event runs:
Note the Key of Type Transaction. This is from the Bubble docs, but that part is a little unclear. Is the “list” created in the “Schedule API Workflow” event, then passed one-by-one into “This Transaction”…which is the “transaction’s Payment Amount” (etc.) in the last step/screenshot?
And the actual API call parameters. This is very similar to what a button-driven workflow would use, but, as mentioned above, I’d like to confirm the variables here (“transaction’s Payment Amount”, etc.) are correct/refer to each individual transaction from the list created in the first step.
Am I close? Or is there a better/more efficient way to do this on a scheduled basis?
Thank you in advance.