Webhook Data Detected But Not Saveable

Hi All,

I am trying to use the Stripe Webhook for “customer.subscription.updated” and running into a situation were I can see that Bubble has detected the data upon initialization.

It saved the json fine and I have been able to modify types successfully. However, the data that I most want to get to is in a nested array that seems to be perfectly recognized by Bubble - see below - but when I go to save it to a database, I cannot find the list - the system shows me object object - but nothing from inside the array (Object (list) - Request Data data object item data.

As far as I can tell, the information that I need, the changes to the subscription, are in the Object list. Is there a way to access this or do I have to do use the webhook to trigger an additional api call to get this info. Seems kind of lame to have to do that.



Response Json
{ "id": "evt_1Ol2pqL4UfNkAiqzSNAn9HiZ", "object": "event", "api_version": "2019-10-17", "created": 1708233761, "data": { "object": { "id": "sub_1OkbSSL4UfNkAiqzz8mKcHpl", "object": "subscription", "application": null, "application_fee_percent": null, "automatic_tax": { "enabled": true, "liability": { "type": "self" } }, "billing_cycle_anchor": 1708128524, "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": 1708128524, "currency": "usd", "current_period_end": 1710634124, "current_period_start": 1708128524, "customer": "cus_PZkyii2IKHFDLY", "days_until_due": null, "default_payment_method": "pm_1OkbSRL4UfNkAiqzGux892Ei", "default_source": null, "default_tax_rates": [], "description": null, "discount": null, "ended_at": null, "invoice_customer_balance_settings": { "consume_applied_balance_on_void": true }, "invoice_settings": { "account_tax_ids": null, "issuer": { "type": "self" } }, "items": { "object": "list", "data": [ { "id": "si_PZkyJuvhThvNZY", "object": "subscription_item", "billing_thresholds": null, "created": 1708128524, "metadata": {}, "plan": { "id": "price_1OkH4qL4UfNkAiqzN41Io6Tk", "object": "plan", "active": true, "aggregate_usage": null, "amount": 3999, "amount_decimal": "3999", "billing_scheme": "per_unit", "created": 1708050180, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": null, "product": "prod_PZPunWEajF6dry", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { "id": "price_1OkH4qL4UfNkAiqzN41Io6Tk", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1708050180, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, "product": "prod_PZPunWEajF6dry", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed" }, "tax_behavior": "unspecified", "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 3999, "unit_amount_decimal": "3999" }, "quantity": 1, "subscription": "sub_1OkbSSL4UfNkAiqzz8mKcHpl", "tax_rates": [] } ], "has_more": false, "total_count": 1, "url": "/v1/subscription_items?subscription=sub_1OkbSSL4UfNkAiqzz8mKcHpl" }, "latest_invoice": "in_1Ol2poL4UfNkAiqzt8jarNM9", "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, "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_1OkH4qL4UfNkAiqzN41Io6Tk", "object": "plan", "active": true, "aggregate_usage": null, "amount": 3999, "amount_decimal": "3999", "billing_scheme": "per_unit", "created": 1708050180, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": null, "product": "prod_PZPunWEajF6dry", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "quantity": 1, "schedule": null, "start_date": 1708128524, "status": "active", "tax_percent": null, "test_clock": null, "transfer_data": null, "trial_end": null, "trial_settings": { "end_behavior": { "missing_payment_method": "create_invoice" } }, "trial_start": null }, "previous_attributes": { "items": { "data": [ { "id": "si_PZkyJuvhThvNZY", "object": "subscription_item", "billing_thresholds": null, "created": 1708128524, "metadata": {}, "plan": { "id": "price_1OkGtAL4UfNkAiqzH1pPYApJ", "object": "plan", "active": true, "aggregate_usage": null, "amount": 17899, "amount_decimal": "17899", "billing_scheme": "per_unit", "created": 1708049456, "currency": "usd", "interval": "month", "interval_count": 1, "livemode": false, "metadata": {}, "nickname": null, "product": "prod_PZPiYnlL9tYdtH", "tiers": null, "tiers_mode": null, "transform_usage": null, "trial_period_days": null, "usage_type": "licensed" }, "price": { "id": "price_1OkGtAL4UfNkAiqzH1pPYApJ", "object": "price", "active": true, "billing_scheme": "per_unit", "created": 1708049456, "currency": "usd", "custom_unit_amount": null, "livemode": false, "lookup_key": null, "metadata": {}, "nickname": null, "product": "prod_PZPiYnlL9tYdtH", "recurring": { "aggregate_usage": null, "interval": "month", "interval_count": 1, "trial_period_days": null, "usage_type": "licensed" }, "tax_behavior": "unspecified", "tiers_mode": null, "transform_quantity": null, "type": "recurring", "unit_amount": 17899, "unit_amount_decimal": "17899" }, "quantity": 1, "subscription": "sub_1OkbSSL4UfNkAiqzz8mKcHpl", "tax_rates": [] } ] }, "latest_invoice": "in_1Ol2nML4UfNkAiqzJfi5OVZi", "plan": { "id": "price_1OkGtAL4UfNkAiqzH1pPYApJ", "amount": 17899, "amount_decimal": "17899", "created": 1708049456, "product": "prod_PZPiYnlL9tYdtH" } } }, "livemode": false, "pending_webhooks": 2, "request": { "id": null, "idempotency_key": "12a22731-e7f2-4a7e-89f6-b750c1926690" }, "type": "customer.subscription.updated" }