{
  "accounts": [
    {
      "accountId": "acct_1AcmeSaaS",
      "businessName": "Acme SaaS Inc",
      "businessType": "company",
      "chargesEnabled": true,
      "country": "US",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "defaultCurrency": "usd",
      "email": "sample-user-1@example.test",
      "id": 1,
      "payoutsEnabled": true,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    }
  ],
  "balanceTransactions": [
    {
      "amount": 9900,
      "availableOn": 1775433600,
      "balanceTransactionId": "txn_happy_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "description": "Pro Plan Monthly — Elena Vasquez",
      "fee": 317,
      "id": 1,
      "livemode": false,
      "net": 9583,
      "sourceId": "ch_happy_apr",
      "status": "available",
      "type": "charge",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "availableOn": 1775433600,
      "balanceTransactionId": "txn_upgraded_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "description": "Pro Plan Monthly — Lisa Patel",
      "fee": 317,
      "id": 2,
      "livemode": false,
      "net": 9583,
      "sourceId": "ch_upgraded_apr",
      "status": "available",
      "type": "charge",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 2900,
      "availableOn": 1775433600,
      "balanceTransactionId": "txn_downgraded_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "description": "Basic Plan Monthly — Tom Reeves",
      "fee": 114,
      "id": 3,
      "livemode": false,
      "net": 2786,
      "sourceId": "ch_downgraded_apr",
      "status": "available",
      "type": "charge",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": -4700,
      "availableOn": 1773532800,
      "balanceTransactionId": "txn_downgrade_refund",
      "createdAt": "2026-03-15T12:30:00.000Z",
      "currency": "usd",
      "description": "Proration refund — downgrade Pro to Basic — Tom Reeves",
      "fee": -150,
      "id": 4,
      "livemode": false,
      "net": -4550,
      "sourceId": "re_downgrade_proration",
      "status": "available",
      "type": "refund",
      "updatedAt": "2026-03-15T12:30:00.000Z"
    },
    {
      "amount": -45000,
      "availableOn": 1775001600,
      "balanceTransactionId": "txn_payout_mar",
      "createdAt": "2026-03-31T00:00:00.000Z",
      "currency": "usd",
      "description": "March 2026 payout to Acme SaaS Inc bank account",
      "fee": 0,
      "id": 5,
      "livemode": false,
      "net": -45000,
      "sourceId": "po_acme_mar",
      "status": "available",
      "type": "payout",
      "updatedAt": "2026-03-31T00:00:00.000Z"
    }
  ],
  "charges": [
    {
      "amount": 9900,
      "amountCaptured": 9900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_happy_mar",
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "description": "Invoice in_happy_mar — Pro Plan Monthly",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 1,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_happy_mar",
      "paymentMethodId": "pm_card_visa_happy",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_happy_mar",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-03-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 9900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_happy_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "description": "Invoice in_happy_apr — Pro Plan Monthly",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 2,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_happy_apr",
      "paymentMethodId": "pm_card_visa_happy",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_happy_apr",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 2900,
      "amountCaptured": 0,
      "amountRefunded": 0,
      "captured": false,
      "chargeId": "ch_declined_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_declined004",
      "description": "Invoice in_declined_apr — Basic Plan Monthly",
      "disputed": false,
      "failureCode": "expired_card",
      "failureMessage": "Your card has expired.",
      "id": 3,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_declined_apr",
      "paymentMethodId": "pm_card_expired_declined",
      "receiptUrl": null,
      "refunded": false,
      "status": "failed",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 9900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_dunning_mar",
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Invoice in_dunning_mar — Pro Plan Monthly",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 4,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_dunning_mar",
      "paymentMethodId": "pm_card_mc_dunning",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_dunning_mar",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-03-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 0,
      "amountRefunded": 0,
      "captured": false,
      "chargeId": "ch_dunning_apr_fail1",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Invoice in_dunning_apr_retry1 — Pro Plan Monthly (retry 1)",
      "disputed": false,
      "failureCode": "card_declined",
      "failureMessage": "Your card was declined.",
      "id": 5,
      "livemode": false,
      "metadata": {
        "retry_attempt": "1"
      },
      "paymentIntentId": "pi_dunning_apr",
      "paymentMethodId": "pm_card_mc_dunning",
      "receiptUrl": null,
      "refunded": false,
      "status": "failed",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 0,
      "amountRefunded": 0,
      "captured": false,
      "chargeId": "ch_dunning_apr_fail2",
      "createdAt": "2026-04-03T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Invoice in_dunning_apr_retry2 — Pro Plan Monthly (retry 2)",
      "disputed": false,
      "failureCode": "card_declined",
      "failureMessage": "Your card was declined. Please use a different payment method.",
      "id": 6,
      "livemode": false,
      "metadata": {
        "retry_attempt": "2"
      },
      "paymentIntentId": "pi_dunning_apr_retry2",
      "paymentMethodId": "pm_card_mc_dunning",
      "receiptUrl": null,
      "refunded": false,
      "status": "failed",
      "updatedAt": "2026-04-03T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 9900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_churned_mar",
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_churned006",
      "description": "Invoice in_churned_mar — Pro Plan Monthly",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 7,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_churned_mar",
      "paymentMethodId": "pm_card_visa_churned",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_churned_mar",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-03-01T00:00:00.000Z"
    },
    {
      "amount": 5500,
      "amountCaptured": 5500,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_upgraded_proration",
      "createdAt": "2026-03-15T12:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "description": "Proration for upgrade from Basic to Pro",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 8,
      "livemode": false,
      "metadata": {
        "type": "proration"
      },
      "paymentIntentId": "pi_upgraded_proration",
      "paymentMethodId": "pm_card_mc_upgraded",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_upgraded_proration",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-03-15T12:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 9900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_upgraded_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "description": "Invoice in_upgraded_apr — Pro Plan Monthly",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 9,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_upgraded_apr",
      "paymentMethodId": "pm_card_mc_upgraded",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_upgraded_apr",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "amountCaptured": 9900,
      "amountRefunded": 4700,
      "captured": true,
      "chargeId": "ch_downgraded_proration",
      "createdAt": "2026-03-15T12:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "description": "Pro Plan Monthly — prorated refund for downgrade",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 10,
      "livemode": false,
      "metadata": {
        "type": "proration_refund"
      },
      "paymentIntentId": "pi_downgraded_proration",
      "paymentMethodId": "pm_card_visa_downgraded",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_downgraded_proration",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-03-15T12:00:00.000Z"
    },
    {
      "amount": 2900,
      "amountCaptured": 2900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_downgraded_apr",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "description": "Invoice in_downgraded_apr — Basic Plan Monthly",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 11,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_downgraded_apr",
      "paymentMethodId": "pm_card_visa_downgraded",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_downgraded_apr",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 2900,
      "amountCaptured": 2900,
      "amountRefunded": 0,
      "captured": true,
      "chargeId": "ch_declined_mar",
      "createdAt": "2026-02-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_declined004",
      "description": "Invoice in_declined_mar — Basic Plan Monthly (before card expired)",
      "disputed": false,
      "failureCode": null,
      "failureMessage": null,
      "id": 12,
      "livemode": false,
      "metadata": {},
      "paymentIntentId": "pi_declined_mar",
      "paymentMethodId": "pm_card_expired_declined",
      "receiptUrl": "https://pay.stripe.com/receipts/ch_declined_mar",
      "refunded": false,
      "status": "succeeded",
      "updatedAt": "2026-02-01T00:00:00.000Z"
    }
  ],
  "checkoutSessions": [],
  "coupons": [
    {
      "amountOff": null,
      "couponId": "WELCOME20",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": null,
      "duration": "repeating",
      "durationInMonths": 3,
      "id": 1,
      "livemode": false,
      "maxRedemptions": 500,
      "metadata": {
        "campaign": "onboarding"
      },
      "name": "Welcome 20% Off",
      "percentOff": 20,
      "redeemBy": null,
      "timesRedeemed": 47,
      "updatedAt": "2026-04-01T00:00:00.000Z",
      "valid": true
    },
    {
      "amountOff": null,
      "couponId": "WINBACK50",
      "createdAt": "2026-01-15T00:00:00.000Z",
      "currency": null,
      "duration": "once",
      "durationInMonths": null,
      "id": 2,
      "livemode": false,
      "maxRedemptions": 100,
      "metadata": {
        "campaign": "churn_recovery"
      },
      "name": "Win-back 50% Off",
      "percentOff": 50,
      "redeemBy": 1777593600,
      "timesRedeemed": 3,
      "updatedAt": "2026-04-01T00:00:00.000Z",
      "valid": true
    }
  ],
  "customers": [
    {
      "address": {
        "city": "San Francisco",
        "country": "US",
        "line1": "100 Market St",
        "line2": "Suite 400",
        "postalCode": "94105",
        "state": "CA"
      },
      "balance": 0,
      "createdAt": "2025-11-01T10:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "defaultPaymentMethod": "pm_card_visa_happy",
      "delinquent": false,
      "description": "Brightwave Tech — active Pro customer since Nov 2025",
      "email": "sample-user-2@example.test",
      "id": 1,
      "livemode": false,
      "metadata": {
        "company": "Brightwave Tech",
        "lifecycle": "happy_path"
      },
      "name": "Elena Vasquez",
      "phone": "+1-555-0201",
      "shipping": null,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "address": {
        "city": "Austin",
        "country": "US",
        "line1": "200 Congress Ave",
        "line2": null,
        "postalCode": "78701",
        "state": "TX"
      },
      "balance": 0,
      "createdAt": "2026-03-22T14:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_trial002",
      "defaultPaymentMethod": "pm_card_visa_trial",
      "delinquent": false,
      "description": "LoopStack — trialing Pro plan, ends Apr 8",
      "email": "sample-user-3@example.test",
      "id": 2,
      "livemode": false,
      "metadata": {
        "company": "LoopStack",
        "lifecycle": "trial_ending_soon"
      },
      "name": "Marcus Chen",
      "phone": "+1-555-0202",
      "shipping": null,
      "updatedAt": "2026-03-22T14:00:00.000Z"
    },
    {
      "address": null,
      "balance": 0,
      "createdAt": "2026-02-15T09:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_trialexp003",
      "defaultPaymentMethod": null,
      "delinquent": false,
      "description": "SolarCraft AI — trial expired, no payment method added",
      "email": "sample-user-4@example.test",
      "id": 3,
      "livemode": false,
      "metadata": {
        "company": "SolarCraft AI",
        "lifecycle": "trial_expired"
      },
      "name": "Priya Nair",
      "phone": "+1-555-0203",
      "shipping": null,
      "updatedAt": "2026-04-05T00:00:00.000Z"
    },
    {
      "address": {
        "city": "Denver",
        "country": "US",
        "line1": "1600 Wynkoop St",
        "line2": null,
        "postalCode": "80202",
        "state": "CO"
      },
      "balance": 0,
      "createdAt": "2025-12-01T10:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_declined004",
      "defaultPaymentMethod": "pm_card_expired_declined",
      "delinquent": true,
      "description": "Peak Vector — card expired, last charge failed",
      "email": "sample-user-5@example.test",
      "id": 4,
      "livemode": false,
      "metadata": {
        "company": "Peak Vector",
        "lifecycle": "card_declined"
      },
      "name": "James Thornton",
      "phone": "+1-555-0204",
      "shipping": null,
      "updatedAt": "2026-04-03T12:00:00.000Z"
    },
    {
      "address": {
        "city": "Seattle",
        "country": "US",
        "line1": "400 Broad St",
        "line2": null,
        "postalCode": "98109",
        "state": "WA"
      },
      "balance": -9900,
      "createdAt": "2025-10-15T10:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "defaultPaymentMethod": "pm_card_mc_dunning",
      "delinquent": true,
      "description": "NimbleOps — 2 failed payment attempts, 1 more before cancellation",
      "email": "sample-user-6@example.test",
      "id": 5,
      "livemode": false,
      "metadata": {
        "company": "NimbleOps",
        "failed_attempts": "2",
        "lifecycle": "dunning"
      },
      "name": "Sarah Kim",
      "phone": "+1-555-0205",
      "shipping": null,
      "updatedAt": "2026-04-05T00:00:00.000Z"
    },
    {
      "address": null,
      "balance": 0,
      "createdAt": "2025-08-01T10:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_churned006",
      "defaultPaymentMethod": "pm_card_visa_churned",
      "delinquent": false,
      "description": "GraniteWorks — canceled last week, subscription ended",
      "email": "sample-user-7@example.test",
      "id": 6,
      "livemode": false,
      "metadata": {
        "churn_reason": "switched_to_competitor",
        "company": "GraniteWorks",
        "lifecycle": "churned"
      },
      "name": "David Okonkwo",
      "phone": "+1-555-0206",
      "shipping": null,
      "updatedAt": "2026-03-30T00:00:00.000Z"
    },
    {
      "address": {
        "city": "New York",
        "country": "US",
        "line1": "350 Fifth Ave",
        "line2": "Floor 20",
        "postalCode": "10118",
        "state": "NY"
      },
      "balance": 0,
      "createdAt": "2025-09-01T10:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "defaultPaymentMethod": "pm_card_mc_upgraded",
      "delinquent": false,
      "description": "CloudRunner AI — recently upgraded from Basic to Pro",
      "email": "sample-user-8@example.test",
      "id": 7,
      "livemode": false,
      "metadata": {
        "company": "CloudRunner AI",
        "lifecycle": "upgraded",
        "previous_plan": "basic"
      },
      "name": "Lisa Patel",
      "phone": "+1-555-0207",
      "shipping": null,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "address": {
        "city": "Portland",
        "country": "US",
        "line1": "900 SW Washington St",
        "line2": null,
        "postalCode": "97205",
        "state": "OR"
      },
      "balance": -4700,
      "createdAt": "2025-07-01T10:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "defaultPaymentMethod": "pm_card_visa_downgraded",
      "delinquent": false,
      "description": "PixelForge Design — recently downgraded from Pro to Basic, prorated credit",
      "email": "sample-user-9@example.test",
      "id": 8,
      "livemode": false,
      "metadata": {
        "company": "PixelForge Design",
        "lifecycle": "downgraded",
        "previous_plan": "pro"
      },
      "name": "Tom Reeves",
      "phone": "+1-555-0208",
      "shipping": null,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    }
  ],
  "disputes": [],
  "events": [],
  "invoiceItems": [
    {
      "amount": 9900,
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "description": "Pro Plan — Monthly (Mar 2026)",
      "id": 1,
      "invoiceId": "in_happy_mar",
      "invoiceItemId": "ii_happy_mar",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "description": "Pro Plan — Monthly (Apr 2026)",
      "id": 2,
      "invoiceId": "in_happy_apr",
      "invoiceItemId": "ii_happy_apr",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "createdAt": "2026-03-22T14:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_trial002",
      "description": "Pro Plan — Monthly (trial conversion)",
      "id": 3,
      "invoiceId": "in_trial_upcoming",
      "invoiceItemId": "ii_trial_upcoming",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-22T14:00:00.000Z"
    },
    {
      "amount": 2900,
      "createdAt": "2026-03-15T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_trialexp003",
      "description": "Basic Plan — Monthly (post-trial)",
      "id": 4,
      "invoiceId": "in_trialexp_open",
      "invoiceItemId": "ii_trialexp_open",
      "livemode": false,
      "metadata": {},
      "priceId": "price_basic_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-15T00:00:00.000Z"
    },
    {
      "amount": 2900,
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_declined004",
      "description": "Basic Plan — Monthly (Apr 2026)",
      "id": 5,
      "invoiceId": "in_declined_apr",
      "invoiceItemId": "ii_declined_apr",
      "livemode": false,
      "metadata": {},
      "priceId": "price_basic_monthly",
      "quantity": 1,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Pro Plan — Monthly (Apr 2026, retry 1)",
      "id": 6,
      "invoiceId": "in_dunning_apr_retry1",
      "invoiceItemId": "ii_dunning_apr_1",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "createdAt": "2026-04-03T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Pro Plan — Monthly (Apr 2026, retry 2)",
      "id": 7,
      "invoiceId": "in_dunning_apr_retry2",
      "invoiceItemId": "ii_dunning_apr_2",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-04-03T00:00:00.000Z"
    },
    {
      "amount": 9900,
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_churned006",
      "description": "Pro Plan — Monthly (Mar 2026)",
      "id": 8,
      "invoiceId": "in_churned_mar",
      "invoiceItemId": "ii_churned_mar",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-01T00:00:00.000Z"
    },
    {
      "amount": -1450,
      "createdAt": "2026-03-15T12:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "description": "Unused time on Basic Plan — credit for upgrade",
      "id": 9,
      "invoiceId": null,
      "invoiceItemId": "ii_upgrade_credit",
      "livemode": false,
      "metadata": {
        "direction": "credit",
        "type": "proration"
      },
      "priceId": "price_basic_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-15T12:00:00.000Z"
    },
    {
      "amount": 6950,
      "createdAt": "2026-03-15T12:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "description": "Remaining time on Pro Plan — charge for upgrade",
      "id": 10,
      "invoiceId": null,
      "invoiceItemId": "ii_upgrade_debit",
      "livemode": false,
      "metadata": {
        "direction": "debit",
        "type": "proration"
      },
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-15T12:00:00.000Z"
    },
    {
      "amount": 9900,
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "description": "Pro Plan — Monthly (Apr 2026)",
      "id": 11,
      "invoiceId": "in_upgraded_apr",
      "invoiceItemId": "ii_upgraded_apr",
      "livemode": false,
      "metadata": {},
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": -4700,
      "createdAt": "2026-03-15T12:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "description": "Unused time on Pro Plan — credit for downgrade",
      "id": 12,
      "invoiceId": null,
      "invoiceItemId": "ii_downgrade_credit",
      "livemode": false,
      "metadata": {
        "direction": "credit",
        "type": "proration"
      },
      "priceId": "price_pro_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-15T12:00:00.000Z"
    },
    {
      "amount": 1450,
      "createdAt": "2026-03-15T12:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "description": "Remaining time on Basic Plan — charge for downgrade",
      "id": 13,
      "invoiceId": null,
      "invoiceItemId": "ii_downgrade_debit",
      "livemode": false,
      "metadata": {
        "direction": "debit",
        "type": "proration"
      },
      "priceId": "price_basic_monthly",
      "quantity": 1,
      "updatedAt": "2026-03-15T12:00:00.000Z"
    },
    {
      "amount": 2900,
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "description": "Basic Plan — Monthly (Apr 2026)",
      "id": 14,
      "invoiceId": "in_downgraded_apr",
      "invoiceItemId": "ii_downgraded_apr",
      "livemode": false,
      "metadata": {},
      "priceId": "price_basic_monthly",
      "quantity": 1,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amount": 2900,
      "createdAt": "2026-02-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_declined004",
      "description": "Basic Plan — Monthly (Mar 2026, before card expired)",
      "id": 15,
      "invoiceId": null,
      "invoiceItemId": "ii_declined_mar",
      "livemode": false,
      "metadata": {},
      "priceId": "price_basic_monthly",
      "quantity": 1,
      "updatedAt": "2026-02-01T00:00:00.000Z"
    }
  ],
  "invoices": [
    {
      "amountDue": 9900,
      "amountPaid": 9900,
      "amountRemaining": 0,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "description": null,
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_happy_mar",
      "id": 1,
      "invoiceId": "in_happy_mar",
      "invoicePdf": "https://invoice.stripe.com/i/in_happy_mar/pdf",
      "livemode": false,
      "metadata": {},
      "number": "INV-SL-0001",
      "paid": true,
      "paidOutOfBand": false,
      "periodEnd": 1775001600,
      "periodStart": 1772323200,
      "status": "paid",
      "subscriptionId": "sub_happy001",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-03-01T00:00:00.000Z"
    },
    {
      "amountDue": 9900,
      "amountPaid": 9900,
      "amountRemaining": 0,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_happy001",
      "description": null,
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_happy_apr",
      "id": 2,
      "invoiceId": "in_happy_apr",
      "invoicePdf": "https://invoice.stripe.com/i/in_happy_apr/pdf",
      "livemode": false,
      "metadata": {},
      "number": "INV-SL-0002",
      "paid": true,
      "paidOutOfBand": false,
      "periodEnd": 1777593600,
      "periodStart": 1775001600,
      "status": "paid",
      "subscriptionId": "sub_happy001",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amountDue": 9900,
      "amountPaid": 0,
      "amountRemaining": 9900,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-03-22T14:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_trial002",
      "description": "Upcoming invoice for trial conversion — Pro Plan Monthly",
      "dueDate": 1775606400,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_trial_upcoming",
      "id": 3,
      "invoiceId": "in_trial_upcoming",
      "invoicePdf": null,
      "livemode": false,
      "metadata": {
        "trial_conversion": "true"
      },
      "number": "INV-SL-0003",
      "paid": false,
      "paidOutOfBand": false,
      "periodEnd": 1778198400,
      "periodStart": 1775606400,
      "status": "draft",
      "subscriptionId": "sub_trial002",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-03-22T14:00:00.000Z"
    },
    {
      "amountDue": 2900,
      "amountPaid": 0,
      "amountRemaining": 2900,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-03-15T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_trialexp003",
      "description": "Post-trial invoice — no payment method on file",
      "dueDate": 1773532800,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_trialexp_open",
      "id": 4,
      "invoiceId": "in_trialexp_open",
      "invoicePdf": "https://invoice.stripe.com/i/in_trialexp_open/pdf",
      "livemode": false,
      "metadata": {},
      "number": "INV-SL-0004",
      "paid": false,
      "paidOutOfBand": false,
      "periodEnd": 1773532800,
      "periodStart": 1772323200,
      "status": "open",
      "subscriptionId": "sub_trialexp003",
      "subtotal": 2900,
      "tax": null,
      "total": 2900,
      "updatedAt": "2026-04-05T00:00:00.000Z"
    },
    {
      "amountDue": 2900,
      "amountPaid": 0,
      "amountRemaining": 2900,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_declined004",
      "description": "Payment failed — card expired",
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_declined_apr",
      "id": 5,
      "invoiceId": "in_declined_apr",
      "invoicePdf": "https://invoice.stripe.com/i/in_declined_apr/pdf",
      "livemode": false,
      "metadata": {
        "failure_reason": "expired_card"
      },
      "number": "INV-SL-0005",
      "paid": false,
      "paidOutOfBand": false,
      "periodEnd": 1777593600,
      "periodStart": 1775001600,
      "status": "open",
      "subscriptionId": "sub_declined004",
      "subtotal": 2900,
      "tax": null,
      "total": 2900,
      "updatedAt": "2026-04-03T12:00:00.000Z"
    },
    {
      "amountDue": 9900,
      "amountPaid": 0,
      "amountRemaining": 9900,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Pro Plan Monthly — payment failed (attempt 1 of 3)",
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_dunning_apr_retry1",
      "id": 6,
      "invoiceId": "in_dunning_apr_retry1",
      "invoicePdf": "https://invoice.stripe.com/i/in_dunning_apr_retry1/pdf",
      "livemode": false,
      "metadata": {
        "retry_attempt": "1"
      },
      "number": "INV-SL-0006",
      "paid": false,
      "paidOutOfBand": false,
      "periodEnd": 1777593600,
      "periodStart": 1775001600,
      "status": "open",
      "subscriptionId": "sub_dunning005",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amountDue": 9900,
      "amountPaid": 0,
      "amountRemaining": 9900,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-04-03T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_dunning005",
      "description": "Pro Plan Monthly — payment failed (attempt 2 of 3, final retry Apr 8)",
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_dunning_apr_retry2",
      "id": 7,
      "invoiceId": "in_dunning_apr_retry2",
      "invoicePdf": "https://invoice.stripe.com/i/in_dunning_apr_retry2/pdf",
      "livemode": false,
      "metadata": {
        "next_retry": "2026-04-08T00:00:00Z",
        "retry_attempt": "2"
      },
      "number": "INV-SL-0007",
      "paid": false,
      "paidOutOfBand": false,
      "periodEnd": 1777593600,
      "periodStart": 1775001600,
      "status": "past_due",
      "subscriptionId": "sub_dunning005",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-04-05T00:00:00.000Z"
    },
    {
      "amountDue": 0,
      "amountPaid": 9900,
      "amountRemaining": 0,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-03-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_churned006",
      "description": "Pro Plan Monthly — voided after cancellation",
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_churned_mar",
      "id": 8,
      "invoiceId": "in_churned_mar",
      "invoicePdf": "https://invoice.stripe.com/i/in_churned_mar/pdf",
      "livemode": false,
      "metadata": {
        "voided_reason": "subscription_canceled"
      },
      "number": "INV-SL-0008",
      "paid": true,
      "paidOutOfBand": false,
      "periodEnd": 1775001600,
      "periodStart": 1772323200,
      "status": "void",
      "subscriptionId": "sub_churned006",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-03-30T00:00:00.000Z"
    },
    {
      "amountDue": 9900,
      "amountPaid": 9900,
      "amountRemaining": 0,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_upgraded007",
      "description": null,
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_upgraded_apr",
      "id": 9,
      "invoiceId": "in_upgraded_apr",
      "invoicePdf": "https://invoice.stripe.com/i/in_upgraded_apr/pdf",
      "livemode": false,
      "metadata": {},
      "number": "INV-SL-0009",
      "paid": true,
      "paidOutOfBand": false,
      "periodEnd": 1777593600,
      "periodStart": 1775001600,
      "status": "paid",
      "subscriptionId": "sub_upgraded007",
      "subtotal": 9900,
      "tax": null,
      "total": 9900,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "amountDue": 2900,
      "amountPaid": 2900,
      "amountRemaining": 0,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-04-01T00:00:00.000Z",
      "currency": "usd",
      "customerId": "cus_downgraded008",
      "description": null,
      "dueDate": null,
      "hostedInvoiceUrl": "https://invoice.stripe.com/i/in_downgraded_apr",
      "id": 10,
      "invoiceId": "in_downgraded_apr",
      "invoicePdf": "https://invoice.stripe.com/i/in_downgraded_apr/pdf",
      "livemode": false,
      "metadata": {
        "previous_plan": "pro"
      },
      "number": "INV-SL-0010",
      "paid": true,
      "paidOutOfBand": false,
      "periodEnd": 1777593600,
      "periodStart": 1775001600,
      "status": "paid",
      "subscriptionId": "sub_downgraded008",
      "subtotal": 2900,
      "tax": null,
      "total": 2900,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    }
  ],
  "meterEvents": [],
  "meters": [],
  "paymentIntents": [],
  "paymentLinks": [],
  "paymentMethods": [
    {
      "cardBrand": "visa",
      "cardExpMonth": 11,
      "cardExpYear": 2028,
      "cardLast4": "4242",
      "createdAt": "2025-11-01T10:00:00.000Z",
      "customerId": "cus_happy001",
      "id": 1,
      "livemode": false,
      "paymentMethodId": "pm_card_visa_happy",
      "type": "card",
      "updatedAt": "2025-11-01T10:00:00.000Z"
    },
    {
      "cardBrand": "visa",
      "cardExpMonth": 8,
      "cardExpYear": 2028,
      "cardLast4": "0005",
      "createdAt": "2026-03-22T14:00:00.000Z",
      "customerId": "cus_trial002",
      "id": 2,
      "livemode": false,
      "paymentMethodId": "pm_card_visa_trial",
      "type": "card",
      "updatedAt": "2026-03-22T14:00:00.000Z"
    },
    {
      "cardBrand": "visa",
      "cardExpMonth": 3,
      "cardExpYear": 2026,
      "cardLast4": "0341",
      "createdAt": "2025-12-01T10:00:00.000Z",
      "customerId": "cus_declined004",
      "id": 3,
      "livemode": false,
      "paymentMethodId": "pm_card_expired_declined",
      "type": "card",
      "updatedAt": "2025-12-01T10:00:00.000Z"
    },
    {
      "cardBrand": "mastercard",
      "cardExpMonth": 12,
      "cardExpYear": 2027,
      "cardLast4": "8210",
      "createdAt": "2025-10-15T10:00:00.000Z",
      "customerId": "cus_dunning005",
      "id": 4,
      "livemode": false,
      "paymentMethodId": "pm_card_mc_dunning",
      "type": "card",
      "updatedAt": "2025-10-15T10:00:00.000Z"
    },
    {
      "cardBrand": "visa",
      "cardExpMonth": 5,
      "cardExpYear": 2028,
      "cardLast4": "1881",
      "createdAt": "2025-08-01T10:00:00.000Z",
      "customerId": "cus_churned006",
      "id": 5,
      "livemode": false,
      "paymentMethodId": "pm_card_visa_churned",
      "type": "card",
      "updatedAt": "2025-08-01T10:00:00.000Z"
    },
    {
      "cardBrand": "mastercard",
      "cardExpMonth": 2,
      "cardExpYear": 2029,
      "cardLast4": "5556",
      "createdAt": "2025-09-01T10:00:00.000Z",
      "customerId": "cus_upgraded007",
      "id": 6,
      "livemode": false,
      "paymentMethodId": "pm_card_mc_upgraded",
      "type": "card",
      "updatedAt": "2025-09-01T10:00:00.000Z"
    },
    {
      "cardBrand": "visa",
      "cardExpMonth": 7,
      "cardExpYear": 2028,
      "cardLast4": "9424",
      "createdAt": "2025-07-01T10:00:00.000Z",
      "customerId": "cus_downgraded008",
      "id": 7,
      "livemode": false,
      "paymentMethodId": "pm_card_visa_downgraded",
      "type": "card",
      "updatedAt": "2025-07-01T10:00:00.000Z"
    },
    {
      "cardBrand": "visa",
      "cardExpMonth": 1,
      "cardExpYear": 2029,
      "cardLast4": "7722",
      "createdAt": "2026-02-15T09:00:00.000Z",
      "customerId": "cus_trialexp003",
      "id": 8,
      "livemode": false,
      "paymentMethodId": "pm_card_visa_trialexp",
      "type": "card",
      "updatedAt": "2026-02-15T09:00:00.000Z"
    }
  ],
  "prices": [
    {
      "active": true,
      "billingScheme": "per_unit",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": "usd",
      "id": 1,
      "livemode": false,
      "lookupKey": "basic_monthly",
      "metadata": {},
      "nickname": "Basic Monthly",
      "priceId": "price_basic_monthly",
      "productId": "prod_basic",
      "recurring": {
        "interval": "month",
        "intervalCount": 1,
        "usageType": "licensed"
      },
      "type": "recurring",
      "unitAmount": 2900,
      "updatedAt": "2025-06-01T00:00:00.000Z"
    },
    {
      "active": true,
      "billingScheme": "per_unit",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": "usd",
      "id": 2,
      "livemode": false,
      "lookupKey": "basic_annual",
      "metadata": {},
      "nickname": "Basic Annual",
      "priceId": "price_basic_annual",
      "productId": "prod_basic",
      "recurring": {
        "interval": "year",
        "intervalCount": 1,
        "usageType": "licensed"
      },
      "type": "recurring",
      "unitAmount": 29000,
      "updatedAt": "2025-06-01T00:00:00.000Z"
    },
    {
      "active": true,
      "billingScheme": "per_unit",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": "usd",
      "id": 3,
      "livemode": false,
      "lookupKey": "pro_monthly",
      "metadata": {},
      "nickname": "Pro Monthly",
      "priceId": "price_pro_monthly",
      "productId": "prod_pro",
      "recurring": {
        "interval": "month",
        "intervalCount": 1,
        "usageType": "licensed"
      },
      "type": "recurring",
      "unitAmount": 9900,
      "updatedAt": "2025-06-01T00:00:00.000Z"
    },
    {
      "active": true,
      "billingScheme": "per_unit",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": "usd",
      "id": 4,
      "livemode": false,
      "lookupKey": "pro_annual",
      "metadata": {},
      "nickname": "Pro Annual",
      "priceId": "price_pro_annual",
      "productId": "prod_pro",
      "recurring": {
        "interval": "year",
        "intervalCount": 1,
        "usageType": "licensed"
      },
      "type": "recurring",
      "unitAmount": 99000,
      "updatedAt": "2025-06-01T00:00:00.000Z"
    },
    {
      "active": true,
      "billingScheme": "per_unit",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": "usd",
      "id": 5,
      "livemode": false,
      "lookupKey": "enterprise_monthly",
      "metadata": {},
      "nickname": "Enterprise Monthly",
      "priceId": "price_enterprise_monthly",
      "productId": "prod_enterprise",
      "recurring": {
        "interval": "month",
        "intervalCount": 1,
        "usageType": "licensed"
      },
      "type": "recurring",
      "unitAmount": 29900,
      "updatedAt": "2025-06-01T00:00:00.000Z"
    },
    {
      "active": false,
      "billingScheme": "per_unit",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "currency": "usd",
      "id": 6,
      "livemode": false,
      "lookupKey": "basic_monthly_legacy",
      "metadata": {
        "deprecated": "true",
        "reason": "price_increase_oct_2025"
      },
      "nickname": "Basic Monthly (Legacy $19)",
      "priceId": "price_basic_monthly_legacy",
      "productId": "prod_basic",
      "recurring": {
        "interval": "month",
        "intervalCount": 1,
        "usageType": "licensed"
      },
      "type": "recurring",
      "unitAmount": 1900,
      "updatedAt": "2025-10-01T00:00:00.000Z"
    }
  ],
  "products": [
    {
      "active": true,
      "createdAt": "2025-06-01T00:00:00.000Z",
      "defaultPrice": "price_basic_monthly",
      "description": "Core features for small teams — 5 seats, 10 GB storage",
      "id": 1,
      "images": [],
      "livemode": false,
      "metadata": {
        "plan_type": "basic",
        "seat_limit": "5"
      },
      "name": "Basic Plan",
      "productId": "prod_basic",
      "taxCode": null,
      "unitLabel": null,
      "updatedAt": "2025-06-01T00:00:00.000Z",
      "url": null
    },
    {
      "active": true,
      "createdAt": "2025-06-01T00:00:00.000Z",
      "defaultPrice": "price_pro_monthly",
      "description": "Advanced features for growing teams — 25 seats, 100 GB storage, priority support",
      "id": 2,
      "images": [],
      "livemode": false,
      "metadata": {
        "plan_type": "pro",
        "seat_limit": "25"
      },
      "name": "Pro Plan",
      "productId": "prod_pro",
      "taxCode": null,
      "unitLabel": null,
      "updatedAt": "2025-06-01T00:00:00.000Z",
      "url": null
    },
    {
      "active": true,
      "createdAt": "2025-06-01T00:00:00.000Z",
      "defaultPrice": "price_enterprise_monthly",
      "description": "Unlimited seats, SSO, dedicated support, custom integrations",
      "id": 3,
      "images": [],
      "livemode": false,
      "metadata": {
        "plan_type": "enterprise",
        "seat_limit": "unlimited"
      },
      "name": "Enterprise Plan",
      "productId": "prod_enterprise",
      "taxCode": null,
      "unitLabel": null,
      "updatedAt": "2025-06-01T00:00:00.000Z",
      "url": null
    }
  ],
  "promotionCodes": [
    {
      "active": true,
      "code": "WELCOME20",
      "couponId": "WELCOME20",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "customerId": null,
      "expiresAt": null,
      "id": 1,
      "livemode": false,
      "maxRedemptions": 500,
      "metadata": {
        "campaign": "onboarding"
      },
      "promotionCodeId": "promo_welcome20",
      "restrictions": {
        "firstTimeTransaction": true,
        "minimumAmount": 2900,
        "minimumAmountCurrency": "usd"
      },
      "timesRedeemed": 47,
      "updatedAt": "2025-06-01T00:00:00.000Z"
    },
    {
      "active": true,
      "code": "WINBACK50",
      "couponId": "WINBACK50",
      "createdAt": "2026-01-15T00:00:00.000Z",
      "customerId": null,
      "expiresAt": 1777593600,
      "id": 2,
      "livemode": false,
      "maxRedemptions": 100,
      "metadata": {
        "campaign": "churn_recovery"
      },
      "promotionCodeId": "promo_winback50",
      "restrictions": {
        "firstTimeTransaction": false,
        "minimumAmount": null,
        "minimumAmountCurrency": null
      },
      "timesRedeemed": 3,
      "updatedAt": "2026-01-15T00:00:00.000Z"
    }
  ],
  "refunds": [
    {
      "amount": 4700,
      "chargeId": "ch_downgraded_proration",
      "createdAt": "2026-03-15T12:30:00.000Z",
      "currency": "usd",
      "id": 1,
      "livemode": false,
      "metadata": {
        "downgrade_from": "pro",
        "downgrade_to": "basic",
        "type": "proration_refund"
      },
      "paymentIntentId": "pi_downgraded_proration",
      "reason": "requested_by_customer",
      "refundId": "re_downgrade_proration",
      "status": "succeeded",
      "updatedAt": "2026-03-15T12:30:00.000Z"
    }
  ],
  "setupIntents": [],
  "subscriptions": [
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2025-11-01T10:00:00.000Z",
      "currentPeriodEnd": 1777593600,
      "currentPeriodStart": 1775001600,
      "customerId": "cus_happy001",
      "defaultPaymentMethod": "pm_card_visa_happy",
      "endedAt": null,
      "id": 1,
      "items": [
        {
          "priceId": "price_pro_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_happy_pro"
        }
      ],
      "latestInvoiceId": "in_happy_apr",
      "livemode": false,
      "metadata": {},
      "status": "active",
      "subscriptionId": "sub_happy001",
      "trialEnd": null,
      "trialStart": null,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-03-22T14:00:00.000Z",
      "currentPeriodEnd": 1775606400,
      "currentPeriodStart": 1774137600,
      "customerId": "cus_trial002",
      "defaultPaymentMethod": "pm_card_visa_trial",
      "endedAt": null,
      "id": 2,
      "items": [
        {
          "priceId": "price_pro_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_trial_pro"
        }
      ],
      "latestInvoiceId": "in_trial_upcoming",
      "livemode": false,
      "metadata": {
        "trial_source": "website_signup"
      },
      "status": "trialing",
      "subscriptionId": "sub_trial002",
      "trialEnd": 1775606400,
      "trialStart": 1774137600,
      "updatedAt": "2026-03-22T14:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2026-02-15T09:00:00.000Z",
      "currentPeriodEnd": 1773532800,
      "currentPeriodStart": 1771113600,
      "customerId": "cus_trialexp003",
      "defaultPaymentMethod": null,
      "endedAt": null,
      "id": 3,
      "items": [
        {
          "priceId": "price_basic_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_trialexp_basic"
        }
      ],
      "latestInvoiceId": "in_trialexp_open",
      "livemode": false,
      "metadata": {
        "trial_source": "sales_demo"
      },
      "status": "incomplete",
      "subscriptionId": "sub_trialexp003",
      "trialEnd": 1772323200,
      "trialStart": 1771113600,
      "updatedAt": "2026-04-05T00:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2025-12-01T10:00:00.000Z",
      "currentPeriodEnd": 1777593600,
      "currentPeriodStart": 1775001600,
      "customerId": "cus_declined004",
      "defaultPaymentMethod": "pm_card_expired_declined",
      "endedAt": null,
      "id": 4,
      "items": [
        {
          "priceId": "price_basic_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_declined_basic"
        }
      ],
      "latestInvoiceId": "in_declined_apr",
      "livemode": false,
      "metadata": {},
      "status": "past_due",
      "subscriptionId": "sub_declined004",
      "trialEnd": null,
      "trialStart": null,
      "updatedAt": "2026-04-03T12:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2025-10-15T10:00:00.000Z",
      "currentPeriodEnd": 1777593600,
      "currentPeriodStart": 1775001600,
      "customerId": "cus_dunning005",
      "defaultPaymentMethod": "pm_card_mc_dunning",
      "endedAt": null,
      "id": 5,
      "items": [
        {
          "priceId": "price_pro_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_dunning_pro"
        }
      ],
      "latestInvoiceId": "in_dunning_apr_retry2",
      "livemode": false,
      "metadata": {
        "dunning_attempts": "2",
        "next_retry": "2026-04-08T00:00:00Z"
      },
      "status": "past_due",
      "subscriptionId": "sub_dunning005",
      "trialEnd": null,
      "trialStart": null,
      "updatedAt": "2026-04-05T00:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": 1774828800,
      "collectionMethod": "charge_automatically",
      "createdAt": "2025-08-01T10:00:00.000Z",
      "currentPeriodEnd": 1775001600,
      "currentPeriodStart": 1772323200,
      "customerId": "cus_churned006",
      "defaultPaymentMethod": "pm_card_visa_churned",
      "endedAt": 1774828800,
      "id": 6,
      "items": [
        {
          "priceId": "price_pro_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_churned_pro"
        }
      ],
      "latestInvoiceId": "in_churned_mar",
      "livemode": false,
      "metadata": {
        "cancellation_feedback": "Missing SSO feature",
        "cancellation_reason": "switched_to_competitor"
      },
      "status": "canceled",
      "subscriptionId": "sub_churned006",
      "trialEnd": null,
      "trialStart": null,
      "updatedAt": "2026-03-30T00:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2025-09-01T10:00:00.000Z",
      "currentPeriodEnd": 1777593600,
      "currentPeriodStart": 1775001600,
      "customerId": "cus_upgraded007",
      "defaultPaymentMethod": "pm_card_mc_upgraded",
      "endedAt": null,
      "id": 7,
      "items": [
        {
          "priceId": "price_pro_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_upgraded_pro"
        }
      ],
      "latestInvoiceId": "in_upgraded_apr",
      "livemode": false,
      "metadata": {
        "upgraded_at": "2026-03-15T12:00:00Z",
        "upgraded_from": "price_basic_monthly"
      },
      "status": "active",
      "subscriptionId": "sub_upgraded007",
      "trialEnd": null,
      "trialStart": null,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    },
    {
      "cancelAt": null,
      "cancelAtPeriodEnd": false,
      "canceledAt": null,
      "collectionMethod": "charge_automatically",
      "createdAt": "2025-07-01T10:00:00.000Z",
      "currentPeriodEnd": 1777593600,
      "currentPeriodStart": 1775001600,
      "customerId": "cus_downgraded008",
      "defaultPaymentMethod": "pm_card_visa_downgraded",
      "endedAt": null,
      "id": 8,
      "items": [
        {
          "priceId": "price_basic_monthly",
          "quantity": 1,
          "subscriptionItemId": "si_downgraded_basic"
        }
      ],
      "latestInvoiceId": "in_downgraded_apr",
      "livemode": false,
      "metadata": {
        "downgraded_at": "2026-03-15T12:00:00Z",
        "downgraded_from": "price_pro_monthly"
      },
      "status": "active",
      "subscriptionId": "sub_downgraded008",
      "trialEnd": null,
      "trialStart": null,
      "updatedAt": "2026-04-01T00:00:00.000Z"
    }
  ],
  "taxRates": [],
  "testClocks": [],
  "usageRecords": [],
  "usageRecordSummaries": [],
  "webhookEndpoints": [
    {
      "apiVersion": "2024-06-20",
      "createdAt": "2025-06-01T00:00:00.000Z",
      "description": "Production webhook for subscription lifecycle events",
      "enabledEvents": [
        "customer.subscription.created",
        "customer.subscription.updated",
        "customer.subscription.deleted",
        "customer.subscription.trial_will_end",
        "invoice.payment_succeeded",
        "invoice.payment_failed",
        "invoice.upcoming",
        "charge.failed",
        "charge.succeeded",
        "payment_method.expiring"
      ],
      "id": 1,
      "livemode": false,
      "secret": "sample-redacted-a1cc64093504",
      "status": "enabled",
      "updatedAt": "2025-06-01T00:00:00.000Z",
      "url": "https://api.acmesaas.com/webhooks/stripe",
      "webhookEndpointId": "we_acme_prod"
    }
  ]
}
