title: Cannot resume a cancelled stripe subscription?
body: <p>I am trying to implement cancelled stripe subscription resuming. I am following the following guide: <a href="https://stripe.com/docs/billing/subscriptions/canceling-pausing" rel="nofollow noreferrer">https://stripe.com/docs/billing/subscriptions/canceling-pausing</a></p>
  
  <p>My cancel code looks like this:</p>
  
  <pre><code>// Update to cancel at the end of the period
  await stripe.subscriptions.update(subscription.id, { cancel_at_period_end: true });
  
  // Cancel the subscription
  await stripe.subscriptions.del(subscription.id)
  </code></pre>
  
  <p>Then I resume with the following:</p>
  
  <pre><code>// Grab the subscription
  const subscription = await stripe.subscriptions.retrieve(subId);
  
  // Resume
  await stripe.subscriptions.update(subscription .id, {
        cancel_at_period_end: false,
        items: [{ id: subscription.items.data[0].id, plan: subscription.plan.id }],
      });
  </code></pre>
  
  <p>But the error I get is:</p>
  
  <blockquote>
    <p>StripeInvalidRequestError: No such subscription: sub_GFmbrVQihHoD6P</p>
  </blockquote>
  
  <p>I am running these in an integration test one after the other immediately.. I dont know if this has something to do with it or not.</p>
  
  <p>Any ideas?</p>