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?
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:
- Click on the “Download Output Bundles” Button:
- Locate and click the “Download Output Bundles” button on your screen.
- A Window Will Open:
- After clicking the button, a new window will appear.
- Copy the JSON:
- In the newly opened window, you will see the JSON output.
- Simply copy the entire JSON content.
- Share the JSON:
- Paste the copied JSON content into the desired medium to share it.
If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
| Book Live Implementation
Visit us here
Youtube Channel
1 Like
Hi, @Msquare_Automation! Thank you for your help.
These are the outputs I get from the custom webhook:
- From the checkout.session.completed event.
[
{
"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.
[
{
"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.