Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source-stripe-native: PaymentMethod missing data, long backfills #1922

Open
jonwihl opened this issue Sep 11, 2024 · 1 comment
Open

source-stripe-native: PaymentMethod missing data, long backfills #1922

jonwihl opened this issue Sep 11, 2024 · 1 comment

Comments

@jonwihl
Copy link
Contributor

jonwihl commented Sep 11, 2024

A user has reported that they're only seeing 25%-33% of the expected number of PaymentMethods records in their Postgres materialization.

Also, the user said that the PaymentMethod stream takes a really long time to backfill (multiple days).

@Alex-Bair
Copy link
Contributor

Regarding the really long time to backfill, that's unfortunately the nature of the stream. PaymentMethods is a child stream of the Customers stream. Meaning, we have to get a batch of customer IDs, then ask the API what payment method each customer has. There's no bulk GET API where we can retrieve all payment methods, we have to ask for payment methods associated with a specific customer. Although there are two documented endpoints for retrieving payment methods (/payment_methods and /customer/:id/payment_methods) , they both require a customer ID as either a query param or within the path. I poured over the docs and tested various endpoints, but it looks like this is the only way to backfill PaymentMethods.

For users that have a significant number of customers in Stripe, this backfill process takes a really long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants