{
  "slug": "stripe-api-adds-configurable-trial-offers-for-subscription-items-4e285612ab3e",
  "title": "Stripe API adds configurable trial offers for subscription items",
  "tools": [
    "stripe"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-25T00:00:00.000Z",
  "announced_at": "2026-03-25T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When setting up trial pricing and duration for a subscription item, create a Trial Offer, then attach it through `current_trial`; use `trial_settings.end_behavior.billing_cycle_anchor` to choose the anchor behavior at trial end.",
    "examples": [
      "curl https://api.stripe.com/v1/product_catalog/trial_offers -u \"<YOUR_SECRET_KEY>\" -H \"Stripe-Version: 2026-03-25.preview\" -d \"duration[relative][iterations]=2\" -d \"end_behavior[transition][price]=<POST_TRIAL_PRICE_ID>\" -d price=<TRIAL_PRICE_ID>",
      "curl https://api.stripe.com/v1/subscription_items -u \"<YOUR_SECRET_KEY>\" -H \"Stripe-Version: 2026-03-25.preview\" -d subscription=<SUBSCRIPTION_ID> -d price=<PRICE_ID> -d \"current_trial[trial_offer]=<TRIAL_OFFER_ID>\"",
      "curl https://api.stripe.com/v1/subscriptions -u \"<YOUR_SECRET_KEY>\" -H \"Stripe-Version: 2026-03-25.preview\" -d customer=<CUSTOMER_ID> -d \"items[0][price]=<PRICE_ID>\" -d \"trial_settings[end_behavior][billing_cycle_anchor]=now\""
    ],
    "gotchas": [
      "Availability: API links specify api-version=2026-03-25.preview.",
      "duration (required): Trial duration object; the create example uses `relative[iterations]`.",
      "duration[relative][iterations]: Number of price intervals in the documented relative-duration example.",
      "end_behavior (required): Defines what occurs when the trial ends; the example transitions to a price.",
      "end_behavior[transition][price]: Price used after the trial in the documented transition example.",
      "price (required): Price configuration during the trial period.",
      "subscription (required): Identifier of the subscription to modify when creating a subscription item.",
      "current_trial: Trial Offer to apply to the subscription item.",
      "current_trial[trial_offer]: Trial Offer identifier; attachment field shown in the Trial Offer reference.",
      "trial_settings.end_behavior.billing_cycle_anchor: Controls whether the subscription billing cycle anchor resets at trial end; permitted values were not exposed in the retrieved reference text.",
      "customer: Identifier of the customer to subscribe.",
      "items[0][price]: Price ID for a subscription item in the create-subscription example.",
      "Prerequisite: Create a Price before creating a Trial Offer; the create reference's prerequisite uses a recurring monthly price.",
      "Prerequisite: The Subscription Item create reference lists a PaymentMethod, Customer with attached payment method, Product, Price, and Subscription as prerequisite objects."
    ]
  },
  "why_it_matters": "Configure trial pricing and duration for a subscription item, and set its post-trial billing-cycle behavior.",
  "sources": [
    "https://docs.stripe.com/changelog/dahlia/2026-03-25/trial-offers-on-subscription-items",
    "https://docs.stripe.com/api/product-catalog/trial-offer/create?api-version=2026-03-25.preview",
    "https://docs.stripe.com/api/product-catalog/trial-offer?api-version=2026-03-25.preview",
    "https://docs.stripe.com/api/subscriptions/create?api-version=2026-03-25.preview",
    "https://docs.stripe.com/api/subscription_items/create?api-version=2026-03-25.preview"
  ],
  "rank": 0.97038,
  "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-873c5d231ce2fb7e-0:gate",
    "evidence_hash": "9a9af081bc7acce4252701ddfdfb8a19b360d848d93deabd82a1ee156787bd17"
  },
  "review": {
    "draft_hash": "4e0f27daddd91c94fa372772f3127880da67ffea417402cd974de0207d993078",
    "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.97 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
