# Request data from stripe by using stripe pricing table

**URL:** <https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240>\
**Category:** Need help\
**Created:** [May 20, 2025, 9:51pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240 "2025-05-20T21:51:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 20, 2025, 9:51pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/1 "2025-05-20T21:51:14Z")

</div>

hi bubblers  
is there anyone with experince in setting up stripe to your bubble application by using stripes pricing table?

i have created a pricing table and intergrated it on my page with a HTML element.. i when i click it i can process a payment for a subscription.. all that works..

where im struggling is when i use an API workflow and want to request data from Stripe.. i how got the webhook to work.. and i also get the data when i run the workflow.. but i cant seem to actually identify the user that it have to put these data on..

NOTE: i have maked a similar post before where i only get told to not use plugins and do it all a different way.. i prefer to do it like this for now, so i would appriciate your help if you can lead me the right direction to figure out how to do it this way.. thank you 🙂

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 1:25am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/2 "2025-05-21T01:25:22Z")

</div>

the webhook that you used to communicate with stripe that retrieves result like your prcing table, you will use the “request\_customer\_email” as that is what you will use to identify the user.

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 6:49am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/3 "2025-05-21T06:49:12Z")

</div>

Hi @tobixzybolumole  
Thank you  
My issue with that is that i can only retrieve customer\_id from customer information

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 6:53am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/4 "2025-05-21T06:53:25Z")

</div>

what other details do you want to retrieve?

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 6:56am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/5 "2025-05-21T06:56:31Z")

</div>

I want  
subscription\_id  
product\_id  
Subscription\_period\_end  
Subscription\_period\_start  
Customer\_id  
And then also customer\_email apparently to identify the user

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 7:03am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/6 "2025-05-21T07:03:17Z")

</div>

you can easily get customer email from request\_data body email when you use the webhook for creating a checkout session  
You can get the start and end date when you initalize the api call for retrieveing a subscription

 ![ui](https://us1.discourse-cdn.com/bubble/original/3X/5/4/54b303df724542f3e69b5608852711353df1b348.png)  
 ![api call](https://us1.discourse-cdn.com/bubble/original/3X/3/0/30c8fa72f0f59734d9f74b3da5f406108b5a7143.png)  
 ![Screenshot 2025-05-17 130133](https://us1.discourse-cdn.com/bubble/original/3X/0/0/0088e82703fe62f053f53afad2311fd9224cba3e.png)

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 7:06am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/7 "2025-05-21T07:06:12Z")

</div>

check stripe’s documentation, you will see all listed api calls there and also check this youtube video series on stripe subscription by Gregory John; [https://youtu.be/6oxbet-wqwc?si=uca3PcWOPHsCCrJu](https://youtu.be/6oxbet-wqwc?si=uca3PcWOPHsCCrJu)

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 7:26am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/8 "2025-05-21T07:26:23Z")

</div>

Thank you so much  
Can i make two event in my webhook?  
Both checkout.session and customer.subscription.created

Because in the checkout session i dont get the plan\_id witch is important i also get for future rules in the application since i have 2 subscriptions and some content only is available with on specific subscription

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 7:31am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/9 "2025-05-21T07:31:03Z")

</div>

yes, you can add more than one event in your webhook but i usually use one webhook per event as i am unable to carry out the necesssary workflow required for each webhook event  
You can get the plan\_id too

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 8:22am UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/10 "2025-05-21T08:22:39Z")

</div>

> [@tobixzybolumole](#):
>
> yes, you can add more than one event in your webhook but i usually use one webhook per event as i am unable to carry out the necesssary workflow required for each webhook event

Aah that make sense.. will try it out when i come home

Oh sorry i meant product\_id when i tried earlier with checkout session that info didnt got retrieved

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 12:51pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/11 "2025-05-21T12:51:44Z")

</div>

to get the product is easy, my own use case is that i usually store my price\_ids along with my product\_id(occassionally) on an option sets ,  
These values you can get from your stripe dashboard under your product catalogue,

 ![price id](https://us1.discourse-cdn.com/bubble/original/3X/6/3/635ea368e51066bc2df6811156f8f85329946da5.png)  
 ![Screenshot 2025-05-21 134825](https://us1.discourse-cdn.com/bubble/original/3X/c/e/cede7606daf525b057569a292e27c98afcc03410.png)  
then whenever a user subscribes to a plan, i will simply make changes to that user and associate the user with the necessary info

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 6:54pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/12 "2025-05-21T18:54:21Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/a/c/ac2735ad071f6ce76b1105356829d0716ec5f97a.png)

im trying to get the customers email, to identify witch user to put the data on but i cant chose email as an option

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 8:08pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/13 "2025-05-21T20:08:57Z")

</div>

so i got it to work now.. thank you very much for you help..  
i had to make 2 request.. one for check out session and another for subscription.update session to get the plan id..

struggle is that they both run at same time.. and i need the checkout session to run first and then the subscription.update session.. is there anyway i can set priorities on them so that the subscription.update first runs after the checkout.session?

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 10:14pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/14 "2025-05-21T22:14:00Z")

</div>

you can still get with checkout session api call

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/f/df02200386a8cc0a84d0b9f2a87f06043263cc59.png)

---

<div class="post-metadata">

**Author:** ![tobixzybolumole](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@tobixzybolumole](https://forum.bubble.io/u/tobixzybolumole)\
**Post date:** [May 21, 2025, 10:14pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/15 "2025-05-21T22:14:33Z")

</div>

the customer’s email is “object\_customer\_email”

---

<div class="post-metadata">

**Author:** ![davidb](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@davidb](https://forum.bubble.io/u/davidb)\
**Post date:** [May 21, 2025, 10:23pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/16 "2025-05-21T22:23:17Z")

</div>

I find it helpful to include a `client-reference-id` in the pricing table to help match the subscribing user to the data later retrieved regarding the subscription. See the section on handling fulfillment in [Embeddable pricing table for subscriptions | Stripe Documentation](https://docs.stripe.com/payments/checkout/pricing-table#handle-fulfillment-with-the-stripe-api).

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 10:28pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/17 "2025-05-21T22:28:55Z")

</div>

![image](https://us1.discourse-cdn.com/bubble/original/3X/0/9/09166d39035cd4665f1da77aae1e6aaea41badb0.png)

the object\_customer\_email is blank for me so have to use object\_customer\_details\_email

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 10:33pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/18 "2025-05-21T22:33:53Z")

</div>

> [@davidb](#):
>
> I find it helpful to include a `client-reference-id` in the pricing table to help match the subscribing user to the data later retrieved regarding the subscription. See the section on handling fulfillment in [Embeddable pricing table for subscriptions | Stripe Documentation](https://docs.stripe.com/payments/checkout/pricing-table#handle-fulfillment-with-the-stripe-api).

what would you use as data in the clien\_reference\_id? the users email?

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 21, 2025, 10:35pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/19 "2025-05-21T22:35:50Z")

</div>

> [@tobixzybolumole](#):
>
> you can still get with checkout session api call

i cant get the product id with a checkout session thats why i need to use 2 calls

```auto
{
    "id": "evt_1RRI67Gdaeoq0vQ5rO0yp0hf",
    "object": "event",
    "api_version": "2025-04-30.basil",
    "created": 1747854879,
    "data": {
        "object": {
            "id": "cs_test_a1RmbBbjMtFn7VRHc6IPXqjhOXpCSsCcALKk5DGacyDLTYMd8KagdzWLoq",
            "object": "checkout.session",
            "adaptive_pricing": null,
            "after_expiration": null,
            "allow_promotion_codes": false,
            "amount_subtotal": 49900,
            "amount_total": 49900,
            "automatic_tax": {
                "enabled": true,
                "liability": {
                    "type": "self"
                },
                "provider": "stripe",
                "status": "complete"
            },
            "billing_address_collection": "auto",
            "cancel_url": "https://stripe.com",
            "client_reference_id": null,
            "client_secret": null,
            "collected_information": {
                "shipping_details": null
            },
            "consent": null,
            "consent_collection": {
                "payment_method_reuse_agreement": null,
                "promotions": "none",
                "terms_of_service": "none"
            },
            "created": 1747854872,
            "currency": "dkk",
            "currency_conversion": null,
            "custom_fields": [],
            "custom_text": {
                "after_submit": null,
                "shipping_address": null,
                "submit": null,
                "terms_of_service_acceptance": null
            },
            "customer": "cus_SM065xBFAg7w5I",
            "customer_creation": "always",
            "customer_details": {
                "address": {
                    "city": "Stoholm Jyll",
                    "country": "DK",
                    "line1": "Vestergade 16C 1 Th",
                    "line2": null,
                    "postal_code": "7850",
                    "state": null
                },
                "email": "christian_bargmann@hotmail.com",
                "name": "4242424242",
                "phone": null,
                "tax_exempt": "none",
                "tax_ids": []
            },
            "customer_email": null,
            "discounts": [],
            "expires_at": 1747941272,
            "invoice": "in_1RRI66Gdaeoq0vQ5qslWfObm",
            "invoice_creation": null,
            "livemode": false,
            "locale": "da",
            "metadata": {},
            "mode": "subscription",
            "payment_intent": null,
            "payment_link": null,
            "payment_method_collection": "always",
            "payment_method_configuration_details": {
                "id": "pmc_1RCt5oGdaeoq0vQ50uOgKSq2",
                "parent": null
            },
            "payment_method_options": {
                "card": {
                    "request_three_d_secure": "automatic"
                }
            },
            "payment_method_types": [
                "card",
                "link",
                "paypal"
            ],
            "payment_status": "paid",
            "permissions": null,
            "phone_number_collection": {
                "enabled": false
            },
            "recovered_from": null,
            "saved_payment_method_options": {
                "allow_redisplay_filters": [
                    "always"
                ],
                "payment_method_remove": "disabled",
                "payment_method_save": null
            },
            "setup_intent": null,
            "shipping_address_collection": null,
            "shipping_cost": null,
            "shipping_options": [],
            "status": "complete",
            "submit_type": null,
            "subscription": "sub_1RRI66Gdaeoq0vQ5xHmkkMJw",
            "success_url": "https://stripe.com",
            "total_details": {
                "amount_discount": 0,
                "amount_shipping": 0,
                "amount_tax": 0
            },
            "ui_mode": "hosted",
            "url": null,
            "wallet_options": null
        }
    },
    "livemode": false,
    "pending_webhooks": 1,
    "request": {
        "id": null,
        "idempotency_key": null
    },
    "type": "checkout.session.completed"
}

```

this is the raw data i get with a checkout session

---

<div class="post-metadata">

**Author:** ![christian\_bargmann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/christian_bargmann/32/249775_2.png) [@christian\_bargmann](https://forum.bubble.io/u/christian_bargmann)\
**Post date:** [May 22, 2025, 7:19pm UTC](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240/20 "2025-05-22T19:19:05Z")

</div>

do you know how to get the product\_id in my webhook..  
because the checkout session doesnt provide me with that info and i cant run a secondary event in the same webhook.. i tried that but only get data from the checkout session in return

[Next page](https://forum.bubble.io/t/request-data-from-stripe-by-using-stripe-pricing-table/370240.md?page=2)
