IFSC Lookup API - Ruby Gem
IFSC Lookup is a simple tool for getting information on IFSC codes. It returns information on various IFSC codes.
Installation
Add this line to your application's Gemfile:
gem 'apiverve_ifsclookup'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install apiverve_ifsclookup
Getting Started
Get your API key at APIVerve
Basic Usage
require 'apiverve_ifsclookup'
# Initialize the client
client = APIVerve::Ifsclookup::Client.new(api_key: "YOUR_API_KEY")
# Make a request
response = client.execute({ ifsc: "SBIN0005943" })
# Print the response
puts response
Error Handling
begin
response = client.execute({ ifsc: "SBIN0005943" })
puts response["data"]
rescue APIVerve::Ifsclookup::ValidationError => e
puts "Validation error: #{e.errors.join(', ')}"
rescue APIVerve::Ifsclookup::APIError => e
puts "API error: #{e.}"
puts "Status code: #{e.status_code}"
end
Debug Mode
# Enable debug logging
client = APIVerve::Ifsclookup::Client.new(
api_key: "YOUR_API_KEY",
debug: true
)
Example Response
{
"status": "ok",
"error": null,
"data": {
"bank": "State Bank of India",
"ifsc": "SBIN0005943",
"branch": "KASTURBA GANDHI MARG,NEW DELHI",
"contact": "",
"city": "NEW DELHI",
"district": "NEW DELHI",
"state": "DELHI",
"imps": true,
"rtgs": true,
"neft": true,
"upi": true,
"micr": "110002062",
"swift": ""
}
}
Documentation
For more information, visit the API Documentation.
Support
- Website: https://apiverve.com/marketplace/ifsclookup?utm_source=ruby&utm_medium=readme
- Email: hello@apiverve.com
License
This gem is available under the MIT License.