I’m currently stuck on a backend workflow error that I don’t quite understand. I’m not very familiar with the code that goes on behind the scenes of an API call and how JSON data is structured and all that, so if someone here could maybe explain what this error means and why it is happening I would appreciate it.
Main Issue: I am getting this error when I make a Backend API Workflow.

The Context: I am creating a basic marketplace app integrated with Stripe Connect. I have been able to successfully create API calls using the API Connector plugin which creates Stripe Connect Accounts for users as well as a Checkout Session which works perfectly (payments go through and can be seen on my Stripe Dashboard). Below is a screenshot of the API call when a checkout session is created and the parameters I send it.
All I need to do now is create a backend webhook which will be triggered when the payment is successful (or unsuccessful) immediatly after the checkout session is complete. This would then change the active status of the item on my marketplace, update the user’s transaction data, and so on. Below is the webhook I created on my Stripe Dashboard.
I have clicked “Detect Data” and copied the correct url into Stripe, and have made test transactions in order to initialize the request (none of which worked I presume because of the error). Here is the backend workflow.
Is there a time and place I need to convert the data into a JSON type or vice-versa? Or do I need to create an API call on my API Connector Plugin for the webhook? Or is something else wrong with my process? I’m fairly lost and any help would be great.
Thanks
1 Like
Unless I’m missing something, it looks like you’re using the wrong Endpoint URL in your Stripe Webhook…
From your screenshot, the Endpoint URL you’re using is *****.bubbleapps.io/version-test/api/1.1/wf/stripe-payment-confirm/initialize
But your API workflow name is Checkout-Webhook
The endpoint URL needs to point to your workflow, so: *****.bubbleapps.io/version-test/api/1.1/wf/checkout-webhook/initialize
Missed that.
Updated the URL on both ends to make sure they match, still no luck.
Is the webhook definitely triggering? (check in your Stripe logs to see if it is, and if there are any errors being returned from your Bubble app)
Nothing coming up in my logs on Stripe, would I need to create a Webhook API call in the API Connector plugin to trigger this event? Just came across another post that did this and might give that a try
Nothing as in the Webhook hasn’t run? In which case that’s obviously where the issues lies.
I’m not sure what you mean by a Webhook API call, but you need to trigger the webhook somehow in order to initialize the API workflow in Bubble.
To do that, the simplest way is just run the relevant action in your app (i.e. create and finish a checkout session)
Thanks for the help, I ended up just starting over and recreating the api call + webhook and it seems to work now. I think using the incorrect url lead me to change things in my API call that I shouldn’t have
Having the same issue now.
Nothing in the logs.
https://kicky-marketplace.bubbleapps.io/version-test/api/1.1/wf/plaid_webhook/initialize
The weird thing was that this was working before, but when I changed my app license it unsubscribed me from the plugin. Resubscribing didn’t fix it.
Double check the url’s that you’re are using for the webhook didn’t change when you resubscribed. Other than that, I was able to fix my problem by just starting over and recreating my webhook and then I was able to initialize it through my app by running the workflows that would trigger it. I also checked the “ignore privacy rules when running the workflow” checkbox in the backend workflow and that helped, but that might not be the best option if you have sensitive data