{
  "slug": "stripe-invoice-and-credit-note-retrieval-expands-tax-rate-details-tax-rate-26dd8f304697",
  "title": "Stripe invoice and credit note retrieval expands tax_rate_details.tax_rate",
  "tools": [
    "stripe"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-22T00:00:00.000Z",
  "announced_at": "2026-04-22T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When implementing invoice or credit note tax breakdowns on API version `2026-04-22.dahlia`, retrieve the resource with `expand[]=tax_rate_details.tax_rate` to receive the full Tax Rate object inline. The field applies to invoice and credit note total taxes and line taxes, and to invoice and credit note line items.",
    "examples": [
      "curl -G https://api.stripe.com/v1/invoices/<invoice_id> -u \"$STRIPE_SECRET_KEY:\" -d 'expand[]=tax_rate_details.tax_rate'",
      "curl -G https://api.stripe.com/v1/credit_notes/<credit_note_id> -u \"$STRIPE_SECRET_KEY:\" -d 'expand[]=tax_rate_details.tax_rate'"
    ],
    "gotchas": [
      "expand[]: Expansion request parameter; set its value to `tax_rate_details.tax_rate` to expand that property.",
      "tax_rate_details.tax_rate: Expandable Tax Rate property on invoice total taxes and line taxes, invoice line item taxes, credit note total taxes, and credit note line item taxes.",
      "Prerequisite: Use API version `2026-04-22.dahlia` or later for this change. For REST requests, set the `Stripe-Version` header to `2026-04-22.dahlia`.",
      "Prerequisite: Authenticate API requests with a Stripe secret key.",
      "Applies to Invoice total_taxes and line taxes, Invoice Line Item taxes, Credit Note total_taxes, and Credit Note Line Item taxes."
    ]
  },
  "why_it_matters": "When implementing invoice or credit note tax breakdowns, retrieve the full tax rate details with the resource.",
  "before": "Previously, `tax_rate` returned the Tax Rate ID as a string, requiring additional API calls to retrieve the full Tax Rate object.",
  "sources": [
    "https://docs.stripe.com/changelog/dahlia/2026-04-22/adds-expandable-tax-rate-property-to-tax-rate-details",
    "https://docs.stripe.com/api/invoices/retrieve?api-version=2026-04-22.dahlia",
    "https://docs.stripe.com/api/credit_notes/retrieve?api-version=2026-04-22.dahlia"
  ],
  "rank": 0.93029,
  "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-1c4ea4be5e93a059-0:gate",
    "evidence_hash": "6d4a786789446a562a43a843b1543e5718bbeec4146000e5776ca5a6d7274978"
  },
  "review": {
    "draft_hash": "46f21605ae260c97be35a7757463fce4825eb9ec9b41fc868e6ac46d1176c3be",
    "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.93 >= 0.9; 2 needed) and Jev gave 0.74 (>= 0.6 needed)."
  }
}
