{
  "slug": "stripe-payment-link-update-endpoint-accepts-setup-future-usage-73c45f1f544d",
  "title": "Stripe Payment Link update endpoint accepts setup_future_usage",
  "tools": [
    "stripe"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-29T00:00:00.000Z",
  "announced_at": "2026-07-29T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When updating an existing Payment Link, set `payment_intent_data.setup_future_usage` to `on_session` or `off_session` to indicate the intended reuse of the payment method collected during Checkout.",
    "examples": [
      "curl https://api.stripe.com/v1/payment_links/<PAYMENT_LINK_ID> \\\n  -u \"<YOUR_SECRET_KEY>:\" \\\n  -H \"Stripe-Version: 2026-07-29.dahlia\" \\\n  -d \"payment_intent_data[setup_future_usage]=off_session\""
    ],
    "gotchas": [
      "payment_intent_data: Subset of parameters passed to PaymentIntent creation for Checkout Sessions in `payment` mode.",
      "payment_intent_data.setup_future_usage: Set to `on_session` or `off_session` to indicate intended reuse of the payment method collected during Checkout. The future usage docs recommend `off_session` when payments may occur both on and off session.",
      "Prerequisite: A Payment Link ID and Stripe secret key are needed for the documented update request. This API parameter applies to Checkout Sessions in `payment` mode.",
      "The value indicates how the payment method collected during the Checkout Session is intended to be reused."
    ]
  },
  "why_it_matters": "Set future payment method reuse behavior when updating an existing Payment Link.",
  "before": "Requests including `payment_intent_data.setup_future_usage` returned a 400 error before this change.",
  "sources": [
    "https://docs.stripe.com/changelog/dahlia/2026-07-29/payment-links-update-endpoint-new-parameters",
    "https://docs.stripe.com/api/payment-link/update?api-version=2026-07-29.dahlia"
  ],
  "rank": 0.91024,
  "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-db3dae4502fe88c5-1:gate",
    "evidence_hash": "c2c9ae29db521fa2b06168c391366cb046a0c9fa4963b43a33cf153cb61be04c"
  },
  "review": {
    "draft_hash": "e5faa3a1d983798d7fe7d1df610f400743f4a6d300858879238e89732233b915",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
