#Gautam-ach-fingerprint
1 messages · Page 1 of 1 (latest)
Hello, there is a field within the bank account object called fingerprint where it is unique for each bank account https://stripe.com/docs/api/customer_bank_accounts/object#customer_bank_account_object-fingerprint, hope you find this useful
Thanks for your answers ..fingerprint will help us to understand the unique bank account ..but if don't want to create bank account object if customer has already one with same details how we can avoid that..In addition to that if there is way to get all ach details for a customers so manually I can verify the name ,routing number and last4 before hitting the stripe to create bank account
The fingerprint field only supports payment methods including bank account and card, there is no unique identifier or fingerprint for the customer object.
There is a way to list all customers for your account [0] and check within your code to verify if there are specific fields you would like to match before creating their payment method.
[0] https://stripe.com/docs/api/customers/list
Sorry , actually I want to retrieve all bank accounts details associated to a customer
not all customers
something like this
const paymentMethods = await stripe.customers.listPaymentMethods(
'cus_9a8lCWQ8lW1SU3',
{type: 'card'}
); But insteda of card I need bank account
Yes, the payment methods for a customer can be found within the sources field within the Customer object: https://stripe.com/docs/api/customers/object#customer_object-sources