title: Stripe subscriptions: How to get a customer's expired and/or canceled subscriptions?
body: <p>It's easy to get a customer's <em>current</em> subscriptions</p>
  
  <pre><code>const stripe = require('stripe')(stripeKey);
  // ... 
  let stripeCustomer = await stripe.customers.retrieve(customerId);
  // stripeCustomer.subscriptions.data now contains an array of current subscriptions
  </code></pre>
  
  <p>But <em>expired/canceled</em> subscriptions are not in this array, and the only way to get subscriptions seems to be with their ID (<a href="https://stripe.com/docs/api/subscriptions/retrieve?lang=node" rel="nofollow noreferrer">doc</a>).</p>
  
  <p>Surely there is a way to get a customer's expired subscriptions with just that customer's ID?</p>
  
  <p><br>
  <br>
  (I'm using Node.js, but that's not very important.)</p>