meta {
  name: STRIPE WEBHOOKS
  type: http
  seq: 3
}

post {
  url: https://memefast.test/stripe/webhook
  body: json
  auth: none
}

body:json {
  {
    "id": "evt_1RghW8EEXQJo9EEOI2W1LyN4",
    "object": "event",
    "api_version": "2025-05-28.basil",
    "created": 1751527512,
    "data": {
      "object": {
        "id": "sub_1RgU1iEEXQJo9EEOBmsO7ZIo",
        "object": "subscription",
        "application": null,
        "application_fee_percent": null,
        "automatic_tax": {
          "disabled_reason": null,
          "enabled": false,
          "liability": null
        },
        "billing_cycle_anchor": 1751475654,
        "billing_cycle_anchor_config": null,
        "billing_mode": {
          "type": "classic"
        },
        "billing_thresholds": null,
        "cancel_at": null,
        "cancel_at_period_end": false,
        "canceled_at": 1751527511,
        "cancellation_details": {
          "comment": null,
          "feedback": null,
          "reason": "cancellation_requested"
        },
        "collection_method": "charge_automatically",
        "created": 1751475654,
        "currency": "usd",
        "customer": "cus_SbGYl34MpG4nv5",
        "days_until_due": null,
        "default_payment_method": "pm_1RgU1hEEXQJo9EEOBnHcyDTz",
        "default_source": null,
        "default_tax_rates": [],
        "description": null,
        "discounts": [],
        "ended_at": 1751527511,
        "invoice_settings": {
          "account_tax_ids": null,
          "issuer": {
            "type": "self"
          }
        },
        "items": {
          "object": "list",
          "data": [
            {
              "id": "si_SbhQOOEJ1xUQ7Y",
              "object": "subscription_item",
              "billing_thresholds": null,
              "created": 1751475654,
              "current_period_end": 1754154054,
              "current_period_start": 1751475654,
              "discounts": [],
              "metadata": {},
              "plan": {
                "id": "price_1RfN2VEEXQJo9EEOzjPI2HGt",
                "object": "plan",
                "active": true,
                "amount": 400,
                "amount_decimal": "400",
                "billing_scheme": "per_unit",
                "created": 1751210467,
                "currency": "usd",
                "interval": "month",
                "interval_count": 1,
                "livemode": false,
                "metadata": {},
                "meter": null,
                "nickname": null,
                "product": "prod_SaY8TGjiPi5hWu",
                "tiers_mode": null,
                "transform_usage": null,
                "trial_period_days": null,
                "usage_type": "licensed"
              },
              "price": {
                "id": "price_1RfN2VEEXQJo9EEOzjPI2HGt",
                "object": "price",
                "active": true,
                "billing_scheme": "per_unit",
                "created": 1751210467,
                "currency": "usd",
                "custom_unit_amount": null,
                "livemode": false,
                "lookup_key": null,
                "metadata": {},
                "nickname": null,
                "product": "prod_SaY8TGjiPi5hWu",
                "recurring": {
                  "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": 400,
                "unit_amount_decimal": "400"
              },
              "quantity": 1,
              "subscription": "sub_1RgU1iEEXQJo9EEOBmsO7ZIo",
              "tax_rates": []
            }
          ],
          "has_more": false,
          "total_count": 1,
          "url": "/v1/subscription_items?subscription=sub_1RgU1iEEXQJo9EEOBmsO7ZIo"
        },
        "latest_invoice": "in_1RgU1iEEXQJo9EEObpcu0isX",
        "livemode": false,
        "metadata": {
          "is_on_session_checkout": "true"
        },
        "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_1RfN2VEEXQJo9EEOzjPI2HGt",
          "object": "plan",
          "active": true,
          "amount": 400,
          "amount_decimal": "400",
          "billing_scheme": "per_unit",
          "created": 1751210467,
          "currency": "usd",
          "interval": "month",
          "interval_count": 1,
          "livemode": false,
          "metadata": {},
          "meter": null,
          "nickname": null,
          "product": "prod_SaY8TGjiPi5hWu",
          "tiers_mode": null,
          "transform_usage": null,
          "trial_period_days": null,
          "usage_type": "licensed"
        },
        "quantity": 1,
        "schedule": null,
        "start_date": 1751475654,
        "status": "canceled",
        "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": 2,
    "request": {
      "id": "req_cCXhmqNMHSgIwr",
      "idempotency_key": null
    },
    "type": "customer.subscription.deleted"
  }
}
