{
  "slug": "stripe-subscription-item-deletion-supports-pending-payment-behavior-78224998795b",
  "title": "Stripe subscription item deletion supports pending payment behavior",
  "tools": [
    "stripe"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-25T00:00:00.000Z",
  "announced_at": "2026-02-25T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When deleting a subscription item would create an invoice that requires payment, pass `payment_behavior=pending_if_incomplete` to stage the deletion as a pending update. The parameter is optional; pending updates accept only supported parameters.",
    "examples": [
      "curl -X DELETE https://api.stripe.com/v1/subscription_items/<SUBSCRIPTION_ITEM_ID> \\\n  -u \"<YOUR_SECRET_KEY>\" \\\n  -H \"Stripe-Version: 2026-02-25.clover\" \\\n  -d \"payment_behavior=pending_if_incomplete\""
    ],
    "gotchas": [
      "subscription item ID (required): Identifies the subscription item in the DELETE endpoint path.",
      "payment_behavior: Controls behavior when payment is required. `pending_if_incomplete` uses pending updates; allowed values are `allow_incomplete`, `default_incomplete`, `error_if_incomplete`, and `pending_if_incomplete`. The docs do not say these values are mutually exclusive; it is a single enum parameter.",
      "Prerequisite: Have an existing subscription item to delete. The reference's example setup creates a payment method, customer, product, price, subscription, and subscription item.",
      "Prerequisite: Authenticate the API request with a Stripe secret key.",
      "Prerequisite: Use API version `2026-02-25.clover` to access the release-note change; the changelog says requests should specify this version when upgrading the REST API.",
      "This behavior applies when the change would generate an invoice that requires payment."
    ]
  },
  "why_it_matters": "When implementing subscription changes that may require payment, defer deleting a subscription item until payment is confirmed.",
  "before": "Previously, subscription items could only be deleted immediately.",
  "sources": [
    "https://docs.stripe.com/changelog/clover/2026-02-25/subscription-item-deletion-payment-behavior-control",
    "https://docs.stripe.com/api/subscription_items/delete?api-version=2026-02-25.clover"
  ],
  "rank": 0.9602,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-eebe55678d849d75-0:gate",
    "evidence_hash": "eac71b2b1696db5af9ee3d5073be4aff467887cf38a5526da4277349c95f01ca"
  },
  "review": {
    "draft_hash": "41c83ee1af3c5957b44a9fca0d183d46a069b11d2765790dd8962c31e8d71835",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
