Unable to access API response data in call-api-success event

:puzzle_piece: Context

I have a Call API button in a Softr “List” block (pricingapi) that sends a POST request to a Make (Integromat) webhook.
The Make scenario creates a Stripe Checkout Session and ends with a Webhook response that returns:

{"url":"https://checkout.stripe.com/c/pay/cs_test_..."}

with status 200 and header Content-Type: application/json.

:bullseye: Goal

When the Call API finishes, I want Softr to automatically redirect the user to the Stripe Checkout page (data.url).

:test_tube: What works

  • The Make scenario runs fine and returns the JSON correctly.

  • Softr shows the green toast “The API called successfully”.

  • The event call-api-success-pricingapi does fire (I can see it in DevTools).

:warning: The issue

I can’t get the Stripe url checkout anywhere in the response. Inside the event handler, e.detail is a Response object whose bodyUsed is already true.
Seems like I can’t read it again with await e.detail.text() or await e.detail.json().
As a result, my script can’t access the {"url": ...} that my Make scenario returns.

:thought_balloon: Question

What should I do to get that url checkout so that I can redirect the original page to the created stripe checkout page?

I’ve just found a simple solution for this with the help from @Andranik
The whole point of doing this was to lock the email on the stripe checkout page, so you could tie user to an email, and this is achieved already by the native pricing block. For some reason I was under the belief it didn’t.

1 Like

Always a pleasure to assist @dailyaistudio