lib/gocardless_pro/services/bank_details_lookups_service.rb
# Performs a bank details lookup. As part of the lookup, a modulus check and
# reachability check are performed.
#
# If your request returns an [error](#api-usage-errors) or the
# `available_debit_schemes`
# attribute is an empty array, you will not be able to collect payments from the
# specified bank account. GoCardless may be able to collect payments from an
# account
# even if no `bic` is returned.
#
# Bank account details may be supplied using [local
# details](#appendix-local-bank-details) or an IBAN.
#
# _Note:_ Usage of this endpoint is monitored. If your organisation relies on
# GoCardless for
# modulus or reachability checking but not for payment collection, please get in
# touch.
# Example URL: /bank_details_lookups
# @param options [Hash] parameters as a hash, under a params key.
Performs a bank details lookup. As part of the lookup, a modulus check and
reachability check are performed.

If your request returns an [error](#api-usage-errors) or the
`available_debit_schemes`
attribute is an empty array, you will not be able to collect payments from the
specified bank account. GoCardless may be able to collect payments from an
account
even if no `bic` is returned.

Bank account details may be supplied using [local
details](#appendix-local-bank-details) or an IBAN.

_ Usage of this endpoint is monitored. If your organisation relies on
GoCardless for
modulus or reachability checking but not for payment collection, please get in
touch.
Performs a bank details lookup . As part of the lookup a modulus check and reachability check are performed . If your request returns an [ error ] ( #api - usage - errors ) or the ` available_debit_schemes ` attribute is an empty array you will not be able to collect payments from the specified bank account . GoCardless may be able to collect payments from an account even if no ` bic ` is returned . Bank account details may be supplied using [ local details ] ( #appendix - local - bank - details ) or an IBAN . _ Usage of this endpoint is monitored . If your organisation relies on GoCardless for modulus or reachability checking but not for payment collection please get in touch .
def create(options = {})
        path = '/bank_details_lookups'
        params = options.delete(:params) || {}
        options[:params] = {}
        options[:params][envelope_key] = params
        options[:retry_failures] = true
        response = make_request(:post, path, options)
        return if response.body.nil?
        Resources::BankDetailsLookup.new(unenvelope_body(response.body), response)
      end
def create ( options = { } ) path = '/bank_details_lookups' params = options . delete ( :params ) || { } options [ :params ] = { } options [ :params ] [ envelope_key ] = params options [ :retry_failures ] = true response = make_request ( :post , path , options ) return if response . body . nil? Resources :: BankDetailsLookup . new ( unenvelope_body ( response . body ) , response ) end
Performs a bank details lookup.
Performs a bank details lookup .
options
parameters as a hash, under a params key.
parameters as a hash under a params key .