Driftwatch

Stripe / Stripe API /

Breakingdirection flip: their tools call this safe

type can now return "customer_update"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects type on portal_flows_flow reachable from 1 operation.

New value: customer_update.

can now return "customer_update"

Who is affected

Code that reads Stripe's portal_flows_flow objects, used by 1 Stripe operation.

Before and after

WhereBeforeAfter
portal_flows_flow.type"payment_method_update", "subscription_cancel", "subscription_update", "subscription_update_confirm""customer_update", "payment_method_update", "subscription_cancel", "subscription_update", "subscription_update_confirm"

Code that breaks

switch (response.type) {
  // existing branches …
  // no branch for "customer_update"
  default:
    throw new Error("unexpected type");
}

Based on Stripe’s published API specification. How severity is decided.