# 2 stripe events in 1 custom webhook

**URL:** <https://community.make.com/t/2-stripe-events-in-1-custom-webhook/41496>\
**Category:** Beginner Questions\
**Tags:** webhooks\
**Created:** [June 12, 2024, 10:22pm UTC](https://community.make.com/t/2-stripe-events-in-1-custom-webhook/41496 "2024-06-12T22:22:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hernany\_Lopes](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@Hernany\_Lopes](https://community.make.com/u/Hernany_Lopes)\
**Post date:** [June 12, 2024, 10:22pm UTC](https://community.make.com/t/2-stripe-events-in-1-custom-webhook/41496/1 "2024-06-12T22:22:46Z")

</div>

Hi, I’m a newbie in Make so I apologize if don’t explain myself correctly.  
I have 2 Stripe events inside a custom webhook, set to run immediately. In Stripe both events are completed normally but in my custom webhook only the first one gets outputted and I get a ‘pending\_webhooks: 1’ in the output, as you can see from the prints.  
How can I get both events outputted with the one webhook?  
 ![Screenshot 2024-06-12 at 5.30.00 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/c/1c0bbd1bc203c86b025134a910148e2a10bceca5.png)

 ![Screenshot 2024-06-12 at 5.50.41 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/3/83aed899e2cbf64f3ffbdc13b0c0fbe3bc08852f.png)  
 ![Screenshot 2024-06-12 at 5.56.52 PM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/5/45029e6ec655ff28329cbf95b10e4db196872a44.png)

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [June 13, 2024, 4:44am UTC](https://community.make.com/t/2-stripe-events-in-1-custom-webhook/41496/2 "2024-06-13T04:44:40Z")

</div>

Hi @Hernany_Lopes ,

Welcome to Make Community!

Unfortunately, it’s not possible to get both details combined in a single webhook trigger. However, there are some workarounds to achieve this. To help you further, could you please share the JSON output of both cases? We can then show you some of the methods to combine these details effectively.

**To Share the Output JSON:**

1. **Click on the “Download Output Bundles” Button:**

- Locate and click the “Download Output Bundles” button on your screen.

1. **A Window Will Open:**

- After clicking the button, a new window will appear.

1. **Copy the JSON:**

- In the newly opened window, you will see the JSON output.
- Simply copy the entire JSON content.

1. **Share the JSON:**

- Paste the copied JSON content into the desired medium to share it.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/f/1f4c788649ec345578a051805dee9d1cdede16c2.png)

If you require additional assistance, please don’t hesitate to reach out to us.  
[MSquare Support](https://calendly.com/msquarepro/meeting)  
| [Book Live Implementation](https://calendly.com/msquarepro/msquareautomation-live)  
Visit us [here](https://www.msquare.pro/)  
[Youtube Channel](https://www.youtube.com/channel/UCqidlIIwbejxZmRUWBICcjQ)

---

<div class="post-metadata">

**Author:** ![Hernany\_Lopes](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@Hernany\_Lopes](https://community.make.com/u/Hernany_Lopes)\
**Post date:** [June 13, 2024, 6:35am UTC](https://community.make.com/t/2-stripe-events-in-1-custom-webhook/41496/3 "2024-06-13T06:35:07Z")

</div>

Hi, @Msquare_Automation! Thank you for your help.  
These are the outputs I get from the custom webhook:

- From the **checkout.session.completed** event.

```auto
[
    {
        "id": "evt_1PR04y076J4yF8hHDAoweJ8G",
        "object": "event",
        "api_version": "2024-04-10",
        "created": 1718232944,
        "data": {
            "object": {
                "id": "cs_test_a1WE3ENrT9ggp8SiSfbj9hVybXvGKfVdEiTgMAMEyDlxtNzOnGa7QGEKWb",
                "object": "checkout.session",
                "after_expiration": null,
                "allow_promotion_codes": null,
                "amount_subtotal": 2100,
                "amount_total": 2100,
                "automatic_tax": {
                    "enabled": false,
                    "liability": null,
                    "status": null
                },
                "billing_address_collection": null,
                "cancel_url": null,
                "client_reference_id": null,
                "client_secret": null,
                "consent": null,
                "consent_collection": null,
                "created": 1718232919,
                "currency": "brl",
                "currency_conversion": null,
                "custom_fields": [],
                "custom_text": {
                    "after_submit": null,
                    "shipping_address": null,
                    "submit": null,
                    "terms_of_service_acceptance": null
                },
                "customer": "cus_QHZDK4xUE0PuFZ",
                "customer_creation": "always",
                "customer_details": {
                    "address": {
                        "city": null,
                        "country": "US",
                        "line1": null,
                        "line2": null,
                        "postal_code": "12345",
                        "state": null
                    },
                    "email": "teste3@gmail.com",
                    "name": "makd",
                    "phone": null,
                    "tax_exempt": "none",
                    "tax_ids": []
                },
                "customer_email": "teste3@gmail.com",
                "expires_at": 1718319319,
                "invoice": "in_1PR04u076J4yF8hH3rzfmJvJ",
                "invoice_creation": null,
                "livemode": false,
                "locale": null,
                "metadata": {},
                "mode": "subscription",
                "payment_intent": null,
                "payment_link": null,
                "payment_method_collection": "always",
                "payment_method_configuration_details": {
                    "id": "pmc_1PIx8r076J4yF8hHJmqR8Bpf",
                    "parent": null
                },
                "payment_method_options": {
                    "card": {
                        "request_three_d_secure": "automatic"
                    }
                },
                "payment_method_types": [
                    "card",
                    "link"
                ],
                "payment_status": "paid",
                "phone_number_collection": {
                    "enabled": false
                },
                "recovered_from": null,
                "saved_payment_method_options": {
                    "allow_redisplay_filters": [
                        "always"
                    ],
                    "payment_method_remove": null,
                    "payment_method_save": null
                },
                "setup_intent": null,
                "shipping_address_collection": null,
                "shipping_cost": null,
                "shipping_details": null,
                "shipping_options": [],
                "status": "complete",
                "submit_type": null,
                "subscription": "sub_1PR04u076J4yF8hHWApvN1xW",
                "success_url": "https://paynocodesu.flutterflow.app/assinaturaSucessoAPI",
                "total_details": {
                    "amount_discount": 0,
                    "amount_shipping": 0,
                    "amount_tax": 0
                },
                "ui_mode": "hosted",
                "url": null
            }
        },
        "livemode": false,
        "pending_webhooks": 1,
        "request": {
            "id": null,
            "idempotency_key": null
        },
        "type": "checkout.session.completed"
    }
]

```

- And from the **customer.subscription.created** event.

```auto
[
    {
        "id": "evt_1PR04x076J4yF8hHiyzPldEB",
        "object": "event",
        "api_version": "2024-04-10",
        "created": 1718232941,
        "data": {
            "object": {
                "id": "sub_1PR04u076J4yF8hHWApvN1xW",
                "object": "subscription",
                "application": null,
                "application_fee_percent": null,
                "automatic_tax": {
                    "enabled": false,
                    "liability": null
                },
                "billing_cycle_anchor": 1718232940,
                "billing_cycle_anchor_config": null,
                "billing_thresholds": null,
                "cancel_at": null,
                "cancel_at_period_end": false,
                "canceled_at": null,
                "cancellation_details": {
                    "comment": null,
                    "feedback": null,
                    "reason": null
                },
                "collection_method": "charge_automatically",
                "created": 1718232940,
                "currency": "brl",
                "current_period_end": 1720824940,
                "current_period_start": 1718232940,
                "customer": "cus_QHZDK4xUE0PuFZ",
                "days_until_due": null,
                "default_payment_method": null,
                "default_source": null,
                "default_tax_rates": [],
                "description": null,
                "discount": null,
                "discounts": [],
                "ended_at": null,
                "invoice_settings": {
                    "account_tax_ids": null,
                    "issuer": {
                        "type": "self"
                    }
                },
                "items": {
                    "object": "list",
                    "data": [
                        {
                            "id": "si_QHZDWTK0SUHcic",
                            "object": "subscription_item",
                            "billing_thresholds": null,
                            "created": 1718232941,
                            "discounts": [],
                            "metadata": {},
                            "plan": {
                                "id": "price_1PJcFX076J4yF8hHaVXO83Zw",
                                "object": "plan",
                                "active": true,
                                "aggregate_usage": null,
                                "amount": 2100,
                                "amount_decimal": "2100",
                                "billing_scheme": "per_unit",
                                "created": 1716473047,
                                "currency": "brl",
                                "interval": "month",
                                "interval_count": 1,
                                "livemode": false,
                                "metadata": {},
                                "meter": null,
                                "nickname": null,
                                "product": "prod_Q9w7skeuDVsWFE",
                                "tiers_mode": null,
                                "transform_usage": null,
                                "trial_period_days": null,
                                "usage_type": "licensed"
                            },
                            "price": {
                                "id": "price_1PJcFX076J4yF8hHaVXO83Zw",
                                "object": "price",
                                "active": true,
                                "billing_scheme": "per_unit",
                                "created": 1716473047,
                                "currency": "brl",
                                "custom_unit_amount": null,
                                "livemode": false,
                                "lookup_key": null,
                                "metadata": {},
                                "nickname": null,
                                "product": "prod_Q9w7skeuDVsWFE",
                                "recurring": {
                                    "aggregate_usage": null,
                                    "interval": "month",
                                    "interval_count": 1,
                                    "meter": null,
                                    "trial_period_days": null,
                                    "usage_type": "licensed"
                                },
                                "tax_behavior": "unspecified",
                                "tiers_mode": null,
                                "transform_quantity": null,
                                "type": "recurring",
                                "unit_amount": 2100,
                                "unit_amount_decimal": "2100"
                            },
                            "quantity": 1,
                            "subscription": "sub_1PR04u076J4yF8hHWApvN1xW",
                            "tax_rates": []
                        }
                    ],
                    "has_more": false,
                    "total_count": 1,
                    "url": "/v1/subscription_items?subscription=sub_1PR04u076J4yF8hHWApvN1xW"
                },
                "latest_invoice": "in_1PR04u076J4yF8hH3rzfmJvJ",
                "livemode": false,
                "metadata": {},
                "next_pending_invoice_item_invoice": null,
                "on_behalf_of": null,
                "pause_collection": null,
                "payment_settings": {
                    "payment_method_options": {
                        "acss_debit": null,
                        "bancontact": null,
                        "card": {
                            "network": null,
                            "request_three_d_secure": "automatic"
                        },
                        "customer_balance": null,
                        "konbini": null,
                        "sepa_debit": null,
                        "us_bank_account": null
                    },
                    "payment_method_types": null,
                    "save_default_payment_method": "off"
                },
                "pending_invoice_item_interval": null,
                "pending_setup_intent": null,
                "pending_update": null,
                "plan": {
                    "id": "price_1PJcFX076J4yF8hHaVXO83Zw",
                    "object": "plan",
                    "active": true,
                    "aggregate_usage": null,
                    "amount": 2100,
                    "amount_decimal": "2100",
                    "billing_scheme": "per_unit",
                    "created": 1716473047,
                    "currency": "brl",
                    "interval": "month",
                    "interval_count": 1,
                    "livemode": false,
                    "metadata": {},
                    "meter": null,
                    "nickname": null,
                    "product": "prod_Q9w7skeuDVsWFE",
                    "tiers_mode": null,
                    "transform_usage": null,
                    "trial_period_days": null,
                    "usage_type": "licensed"
                },
                "quantity": 1,
                "schedule": null,
                "start_date": 1718232940,
                "status": "incomplete",
                "test_clock": null,
                "transfer_data": null,
                "trial_end": null,
                "trial_settings": {
                    "end_behavior": {
                        "missing_payment_method": "create_invoice"
                    }
                },
                "trial_start": null
            }
        },
        "livemode": false,
        "pending_webhooks": 1,
        "request": {
            "id": "req_Ry3YeVqkPevT9O",
            "idempotency_key": "eb027d96-9827-46eb-a88c-d21472108448"
        },
        "type": "customer.subscription.created"
    }
]

```

I checked the History of the Integration Webhook and I can see that both events were successful.

 ![Screenshot 2024-06-13 at 2.21.15 AM](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/8/b873fb98bbcd75e82e1e9eefdb1f1ef3f79db5ec.png)

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 11, 2024, 6:36am UTC](https://community.make.com/t/2-stripe-events-in-1-custom-webhook/41496/4 "2024-09-11T06:36:23Z")

</div>


