- Symptom
- unknown flag: --api-versionLocal webhook payloads differ in shape from what the production endpoint receivesPassing --stripe-version to stripe trigger does not change the forwarded event
- Cause
- The listen command can only render events in the account default API version, or the latest one with --latest. The version used for trigger or other API requests does not control how events are formatted.
- Fix
- Use --latest when your code targets the newest version, or upgrade the account default. For an exact older version, tunnel to a real webhook endpoint created with that api_version.
- Apply
stripe listen --latest --forward-to localhost:4242/webhooks- Affected
- Stripe CLI, all versions through October 2026; the request for a version flag on listen is still open
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders