#digdug-ach-duplicates
1 messages · Page 1 of 1 (latest)
Hello! Is there a reason you're listing sources and not payment methods?
That is the method provided for listing bank accounts
We are trying to list and remove duplicates
That's if you're using the legacy bank accounts APIs - if you're using us_bank_account payment methods then you should use the PaymentMethod API (https://stripe.com/docs/api/payment_methods/customer_list?lang=node)
I see and is removing a bank account any different?
If it's a payment method then you'd detach it - https://stripe.com/docs/api/payment_methods/detach?lang=node
does this remove the payment method from the console? The problem we are having is duplicate bank account
our CEO does not want to see duplicated bank accounts for our customers
What do you mean by the "console"? Detaching a payment method from the customer will remove it as an optino for future payment (you can't use it for new payments anymore)
I mean we have duplicate bank accounts in our dashboard under our customers when they use the hosted invoice url to make a payment with us_bank_account
when i use listpayments i get this {
id: 'pm_1NMCeQAZGuuqb7RSE2teoxRE',
object: 'payment_method',
billing_details: [Object],
created: 1687536958,
customer: 'cus_O726PPG4DEAej2',
livemode: false,
metadata: {},
type: 'us_bank_account',
us_bank_account: [Object]
}
I am unsure of where to get "object id" if you want to point me in the direction
Okay so the object id here is pm_1NMCeQAZGuuqb7RSE2teoxRE so it starts with pm_ and it's a PaymentMethod object
So what you want to use is change your code, don't list "sources" like you were talking about and use https://stripe.com/docs/api/payment_methods/customer_list instead
right. I am able to list those
My questions is how to delete the duplicates
we do not want to see a bunch of duplicate bank accounts in our dashboard
Right. Before you were added I asked if detaching would remove them from the dashboard
then you were added in
This whole request stems from us seeing duplicate accounts in the dashboard. Does detaching remove those
yes
Awesome. Will try that out. Thank you kindly
Am i able to access the fingerprint from listPayments
yes when you use that API you get a list of PaymentMethods objects. Each one will look like what is documented at https://stripe.com/docs/api/payment_methods/object and they will have the fingerprint you are after
Awesome. Thanks again for your help koopa
sure thing, try it and let me know how it goes
Hi again. Are you sure detach removes this paymentmethod from the dashboard?
We are still seeing duplicates in the dashboard after running detach on each of them