# Stripe API Call Driving me to drink

**URL:** <https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907>\
**Category:** Need help\
**Created:** [July 27, 2025, 1:25pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907 "2025-07-27T13:25:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![omigodwhathaveidone](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@omigodwhathaveidone](https://forum.bubble.io/u/omigodwhathaveidone)\
**Post date:** [July 27, 2025, 1:25pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/1 "2025-07-27T13:25:49Z")

</div>

Hey all!

I’m back with more API issues (newbie!) I’m trying to set up a Stripe API without using the plugin as it won’t do what I need and I just keep getting errors. Here, both the key and the user ID are test info. Can anyone shed any light and save me for a life of drinking Gin and watching Love Island re-runs?

 ![stripe1](https://us1.discourse-cdn.com/bubble/original/3X/8/0/804e8ff6a7d778b82efdbbba796745b5e1301ff8.png)  
 ![stripe2](https://us1.discourse-cdn.com/bubble/original/3X/6/a/6a1c92a2bd067fcb3260bcd64a95c022cffb85b4.png)

---

<div class="post-metadata">

**Author:** ![carlovsk.edits](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/carlovsk.edits/32/251706_2.png) [@carlovsk.edits](https://forum.bubble.io/u/carlovsk.edits)\
**Post date:** [July 27, 2025, 1:56pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/2 "2025-07-27T13:56:33Z")

</div>

Please explain the errors that are occurring in more detail. When you attempt to create the portal, what happens?

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 27, 2025, 3:37pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/3 "2025-07-27T15:37:11Z")

</div>

Try like this:

 ![Screenshot 2025-07-27 at 8.36.36 AM](https://us1.discourse-cdn.com/bubble/original/3X/d/a/da8d2c9d7daa07e2d8276ff8cec9eaf55a51b4c0.png)

Just uncheck the Customer as Private box and you don’t need the header here because you have it at the top.

The endpoint url is: [https://api.stripe.com/v1/billing\_portal/sessions](https://api.stripe.com/v1/billing_portal/sessions)

This should work. 😊

Your return will look like this:

```auto
{
  "body": {
    "id": "string value",
    "object": "string value",
    "configuration": "string value",
    "created": 1753630520,
    "customer": "string value",
    "flow": null,
    "livemode": false,
    "locale": null,
    "on_behalf_of": null,
    "return_url": "string value",
    "url": "string value"
  },
  "error": {
    "status_code": 200,
    "status_message": "string value",
    "body": "string value"
  },
  "returned_an_error": false
}

```

---

<div class="post-metadata">

**Author:** ![carlovsk.edits](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/carlovsk.edits/32/251706_2.png) [@carlovsk.edits](https://forum.bubble.io/u/carlovsk.edits)\
**Post date:** [July 27, 2025, 3:59pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/4 "2025-07-27T15:59:04Z")

</div>

His call is not wrong either, I say this because I make the same call in my projects, but he did not get the error that is actually coming up in the result.

---

<div class="post-metadata">

**Author:** ![omigodwhathaveidone](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@omigodwhathaveidone](https://forum.bubble.io/u/omigodwhathaveidone)\
**Post date:** [July 28, 2025, 10:28am UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/5 "2025-07-28T10:28:34Z")

</div>

Thank you so much guys! You’re absolute legends and my bottle of Gin lives to gather dust for another day! It works!

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [July 28, 2025, 4:52pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/6 "2025-07-28T16:52:55Z")

</div>

Just FYI. There is also a plugin already for this as well. Actually, a few of them if you search portal on the plugin store. Like this one: [Stripe Customer Portal FREE Plugin | Bubble](https://bubble.io/plugin/stripe-customer-portal-free-1707297563453x334349527081025540)

---

<div class="post-metadata">

**Author:** ![omigodwhathaveidone](https://avatars.discourse-cdn.com/v4/letter/o/3d9bf3/32.png) [@omigodwhathaveidone](https://forum.bubble.io/u/omigodwhathaveidone)\
**Post date:** [July 28, 2025, 10:14pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/7 "2025-07-28T22:14:54Z")

</div>

Hey! Yeah, I know, but unfortunately it doesn’t do what I need it to do. Because nothing’s ever simple for me it seems haha!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 5, 2025, 1:26pm UTC](https://forum.bubble.io/t/stripe-api-call-driving-me-to-drink/376907/8 "2025-10-05T13:26:28Z")

</div>

Closed on October 5, 2025, 1:26pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
