Dwolla / dwolla-v2-ruby

Official Ruby Wrapper for Dwolla's API v2
https://developers.dwolla.com/
MIT License
22 stars 17 forks source link

get customers by email #32

Closed genarolaunchlabs closed 3 years ago

genarolaunchlabs commented 6 years ago

is there a way to get a customer by its email?

newellista commented 4 years ago
        request = {
          :email => email
        }

        response = dwolla_client.get "customers", request

is how I do it.

ShreyaThapa commented 3 years ago

With the addition of the email query string parameter, you can retrieve a Customer by email in the following manner:

# GET api.dwolla.com/customers?email=foo%40bar.com
$dwolla.get "customers", email: "foo@bar.com"