PostHog / PostHog/posthog

Feature Request: Allow users to set their Stripe API version

Open
#50,866 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/data-warehouse team/data-warehouse
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Feature request

Is your feature request related to a problem?

We currently have a relatively old version of the Stripe API hardcoded: https://github.com/PostHog/posthog/blob/b49cf7ce821aaf411405d033270b12945af29239/posthog/temporal/data_imports/sources/stripe/stripe.py#L66.

This can lead to inconsistent results, as the schema may change across versions, leading to discrepancies with what users see in other systems outside PostHog.

Describe the solution you'd like

Let users set their desired Stripe API version.

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/52385 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/54200)

Debug info
Kind: bug

Target area: data_warehouse

Report event: http://go/ticketByUUID/4d6c9d95-bff3-4e1c-aab1-19770ca3b8cf

Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019cb899-2172-7814-86f8-0e50a2d22a66?t=3967

Exceptions: https://us.posthog.com/project/2/error_tracking?filterGroup=%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22key%22%3A%22%24session_id%22%2C%22value%22%3A%5B%22019cb899-2172-7814-86f8-0e50a2d22a66%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22event%22%7D%5D%7D%5D%7D

Location: https://us.posthog.com/project/240542/ai?chat=eeb22e84-1d7b-4cc3-955d-a84787f1dd62

Persons-on-events mode for project: person_id_override_properties_on_events

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading posthog/temporal/data_imports/sources/stripe/stripe.py around line 66 to understand where the API version is hardcoded and how Stripe imports are configured. Trace the relevant user-facing configuration path, then verify that a selected version is used for imports instead of the fixed version and that existing behavior remains unchanged by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, data-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.