{"id":28385320,"url":"https://github.com/ahtung/bunq.rb","last_synced_at":"2026-02-26T16:53:07.263Z","repository":{"id":56877642,"uuid":"83083974","full_name":"ahtung/bunq.rb","owner":"ahtung","description":"A ruby gem for the Bunq API","archived":false,"fork":false,"pushed_at":"2020-03-18T10:14:32.000Z","size":400,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-12T00:53:37.378Z","etag":null,"topics":["gem","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahtung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-24T21:24:53.000Z","updated_at":"2019-03-21T13:06:22.000Z","dependencies_parsed_at":"2022-08-20T23:10:31.868Z","dependency_job_id":null,"html_url":"https://github.com/ahtung/bunq.rb","commit_stats":null,"previous_names":["ahtung/bunq_rb"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/ahtung/bunq.rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahtung%2Fbunq.rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahtung%2Fbunq.rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahtung%2Fbunq.rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahtung%2Fbunq.rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahtung","download_url":"https://codeload.github.com/ahtung/bunq.rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahtung%2Fbunq.rb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29865399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T16:38:37.846Z","status":"ssl_error","status_checked_at":"2026-02-26T16:37:58.932Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","ruby"],"created_at":"2025-05-30T10:30:35.871Z","updated_at":"2026-02-26T16:53:07.226Z","avatar_url":"https://github.com/ahtung.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BunqRb\n\n[![Build Status](https://travis-ci.org/ahtung/bunq_rb.svg?branch=master)](https://travis-ci.org/ahtung/bunq_rb)\n[![Gem Version](https://badge.fury.io/rb/bunq_rb.svg)](https://badge.fury.io/rb/bunq_rb)\n[![Maintainability](https://api.codeclimate.com/v1/badges/8e9c963093297534c4bb/maintainability)](https://codeclimate.com/github/ahtung/bunq_rb/maintainability)\n[![Coverage Status](https://coveralls.io/repos/github/ahtung/bunq_rb/badge.svg?branch=master)](https://coveralls.io/github/ahtung/bunq_rb?branch=master)\n\n- [Documentation](https://doc.bunq.com/)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bunq_rb'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bunq_rb\n\n## Usage\n\nFirst configure the gem\n\n```\nBunqRb.configure do |config|\n  config.api_key    = ENV.fetch(\"API_KEY\")\n  config.key        = key # OpenSSL::PKey::RSA.new 2048\n  config.url        = \"https://sandbox.public.api.bunq.com\"\n  config.page_size  = 200\nend\n```\n\n## Quickstart\n\n### Openning a session\n\nhttps://github.com/ahtung/bunq_rb/blob/feature/readme/spec/scenarios/create_session_spec.rb\n\n### Making apayment request\n\nhttps://github.com/ahtung/bunq_rb/blob/feature/readme/spec/scenarios/make_a_payment_request_spec.rb\n\n### Creating a tab payment\n\nhttps://github.com/ahtung/bunq_rb/blob/feature/readme/spec/scenarios/creating_a_tab_payment_spec.rb\n\n## Calls\n\n### SETUP\n\n#### Installation\n\n##### POST\n\n```ruby\ninstallation, token, server_public_key = BunqRb::Installation.create(client_public_key: BunqRb.configuration.key.public_key)\n```\n\n##### GET\n\n```ruby\ninstallation = BunqRb::Installation.find(2348)\n```\n\n##### LIST\n\n```ruby\ninstallations = BunqRb::Installation.all\n```\n\n#### Installation server public key\n\n##### LIST\n\n```ruby\ninstallation = BunqRb::Installation.find(2348)\nserver_public_key = installation.server_public_key\n```\n\n#### Device\n\n##### GET\n\n```ruby\ndevice = BunqRb::Device.find(2348)\n```\n\n##### LIST\n\n```ruby\ndevices = BunqRb::Device.all\n```\n\n#### Device server\n\n##### POST\n\n```ruby\ndevice_server = BunqRb::DeviceServer.create(\n  description: \"Dunya\",\n  secret: BunqRb.configuration.api_key,\n  permitted_ips: []\n)\n```\n\n##### GET\n\n```ruby\ndevice_server = BunqRb::DeviceServer.find(1434035)\n```\n\n##### LIST\n\n```ruby\ndevice_servers = BunqRb::DeviceServer.all\n```\n\n#### Permitted IP\n\n##### GET\n\n```ruby\nuser_id = 1\ncredential_password_id = 11\npermitted_ip_id = 42\ndevice_servers = BunqRb::PermittedIp.find(user_id, credential_password_id, permitted_ip_id)\n```\n\n##### LIST\n\n\n```ruby\nuser_id = 1\ncredential_password_id = 11\ndevice_servers = BunqRb::PermittedIp.all(user_id, credential_password_id)\n```\n\n##### POST\n\nTODO\n\n##### PUT\n\n#### User credential password IP\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Session\n\n##### DELETE\n\nTODO\n\n#### SessionServer\n\n##### POST\n\nTODO\n\n### PAYMENTS\n\n#### Payment\n\n##### POST\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\n```ruby\nuser = BunqRb::User.find(1)\nmonetary_account = user.monetary_accounts.first\npayments = monetary_account.payments\n```\n\n#### Payment Batch\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n### REQUESTS\n\n#### Request Inquiry\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Request Inquiry Batch\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Request Response\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### bunq.me Tab\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\n```ruby\nuser_id = 1\nmonetary_account_id = 1933\nbunq_me_tabs = BunqRb::BunqMeTab.all(user_id, monetary_account_id)\n\n# OR\n\nuser = BunqRb::User.find(1)\nmonetary_accounts = user.monetary_accounts\nbunq_me_tabs = monetary_accounts.first.bunq_me_tabs\n```\n\n### DRAFT PAYMENTS\n\n#### Draft Payment\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n### SCHEDULED PAYMENTS\n\n#### Schedule Payment\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n##### DELETE\n\nTODO\n\n#### Schedule Payment Batch\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### DELETE\n\nTODO\n\n#### Schedule Instance\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Schedule\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Schedule User\n\n##### LIST\n\nTODO\n\n### TAB PAYMENTS\n\n#### Tab Usage Single\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n##### DELETE\n\nTODO\n\n#### Tab Usage Multiple\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n##### DELETE\n\nTODO\n\n#### Tab Item\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n##### DELETE\n\nTODO\n\n#### Tab Item Batch\n\n##### POST\n\nTODO\n\n#### Tab\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Tab QR Code Content\n\n##### LIST\n\nTODO\n\n#### Tab Result Inquiry\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Tab Result Response\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n### CARD PAYMENTS\n\n#### Mastercard Action\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n### IDEAL PAYMENTS\n\n#### Token QR Request Ideal\n\n##### POST\n\nTODO\n\n### USER\n\n#### User\n\n##### GET\n\n```ruby\nuser = BunqRb::User.find(1)\n```\n\n##### LIST\n\n```ruby\nusers = BunqRb::User.all\n```\n\n#### User Person\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n#### User Company\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n### MONETARY ACCOUNTS\n\n#### Monetary Account\n\n##### GET\n\nTODO\n\n##### LIST\n\n```ruby\nuser = BunqRb::User.find(1)\nmonetary_accounts = user.monetary_accounts\n```\n\n#### Monetary Account Bank\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n### CASH REGISTERS\n\n#### Cash Register\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ncash_register_id = 42\ncash_registers = BunqRb::CashRegister.find(user_id, monetary_account_id, cash_register_id)\n```\n\n##### LIST\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ncash_registers = BunqRb::CashRegister.all(user_id, monetary_account_id)\n```\n\n#### Cash Register QR Code\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Cash Register QR Code Content\n\n##### LIST\n\nTODO\n\n### CONNECTS\n\n#### Share Invite Bank Inquiry\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Share Invite Bank Response\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Share Invite Bank Amount Used\n\n##### DELETE\n\nTODO\n\n#### Draft Share Invite Bank\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Draft Share Invite Bank QR Code Content\n\n##### LIST\n\nTODO\n\n### CARDS\n\n#### Card\n\n##### PUT\n\nTODO\n\n##### GET\n\n```ruby\nuser_id = 1\ncard_id = 82082\ncard = BunqRb::Card.find(user_id, card_id)\n```\n\n##### LIST\n\n```ruby\nuser_id = 1\ncards = BunqRb::Card.all(user_id)\n\n# OR\n\nuser = BunqRb::User.find(1)\ncards = user.cards\n```\n\n#### Card Debit\n\n##### POST\n\nTODO\n\n#### Card Name\n\n##### LIST\n\n```ruby\nuser_id = 1\ncards = BunqRb::CardName.all(user_id)\n\n# OR\n\nuser = BunqRb::User.find(1)\ncards = user.card_names\n```\n\n#### Card Generated CVC2\n\n##### POST\n\nTODO\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n### CHAT\n\n#### Payment Chat\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Request Inquiry Chat\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Request Response Chat\n\n##### POST\n\nTODO\n\n##### PUT\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Chat Conversation\n\n##### GET\n\nTODO\n\n##### LIST\n\nTODO\n\n#### Chat Message\n\n##### LIST\n\nTODO\n\n#### Chat Message Attachment\n\n##### POST\n\nTODO\n\n#### Chat Message Text\n\n##### POST\n\nTODO\n\n### CALLBACKS\n\n#### Certificate Pinned\n\n##### POST\n\nTODO\n\n### ATTACHMENTS\n\n#### Avatar\n\n##### POST\n\n```ruby\navatar = BunqRb::Avatar.create(\n  attachment_public_uuid: \"d93e07e3-d420-45e5-8684-fc0c09a63686\"\n)\n```\n\n##### GET\n\n```ruby\navatar = BunqRb::Avatar.find(1019)\n```\n\n#### Attachment Public\n\n##### POST\n\n```ruby\nimage_path = File.expand_path(File.join(File.dirname(__FILE__), \"../fixtures/images/baz.jpg\"))\nimage = Faraday::UploadIO.new(image_path, 'image/jpeg')\nattachment = BunqRb::AttachmentPublic.create(image)\n```\n\n##### GET\n\n```ruby\navatar = BunqRb::AttachmentPublic.find(1019)\n```\n\n#### Attachment Public Content\n\n##### LIST\n\nTODO\n\n#### Attachment Monetary Account\n\n##### POST\n\n```ruby\nimage_path = File.expand_path(File.join(File.dirname(__FILE__), \"../fixtures/images/baz.jpg\"))\nimage = Faraday::UploadIO.new(image_path, 'image/jpeg')\nattachment = BunqRb::AttachmentMonetaryAccount.create(image)\n```\n\n#### Attachment Tab\n\n##### POST\n\nTODO\n\n##### GET\n\nTODO\n\n#### Attachment Tab Content\n\n##### LIST\n\nTODO\n\n#### Tab Attachment Tab\n\n##### GET\n\nTODO\n\n#### Tab Attachment Tab Content\n\n##### LIST\n\nTODO\n\n#### Attachment Conversation\n\n##### POST\n\nTODO\n\n##### GET\n\nTODO\n\n#### Attachment Conversation Content\n\n##### LIST\n\nTODO\n\n### INVOICES\n\n#### Invoice\n\n##### GET\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ninvoice = BunqRb::Invoice.find(user_id, monetary_account_id, 42)\n```\n\n##### LIST\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ninvoices = BunqRb::Invoice.all(user_id, monetary_account_id)\n```\n\n#### Invoice By User\n\n##### GET\n\n```ruby\nuser_id = 1\ninvoice = BunqRb::InvoiceByUser.find(user_id, 42)\n```\n\n##### LIST\n\n```ruby\nuser_id = 1\ninvoices = BunqRb::InvoiceByUser.all(user_id)\n```\n\n### EXPORT STATEMENTS\n\n#### Customer Statement Export\n\n##### POST\n\nTODO\n\n##### GET\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ninvoice = BunqRb::CustomerStatementExport.find(user_id, monetary_account_id, 42)\n```\n\n##### LIST\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ninvoices = BunqRb::CustomerStatementExport.all(user_id, monetary_account_id)\n```\n\n##### DELETE\n\n```ruby\nuser_id = 1\nmonetary_account_id = 11\ninvoice = BunqRb::CustomerStatementExport.delete(user_id, monetary_account_id, 42)\n```\n\n#### Customer Statement Export Content\n\n##### LIST\n\nTODO\n\n#### Export Annual Overview\n\n##### POST\n\nTODO\n\n##### GET\n\n```ruby\nuser_id = 1\ninvoice = BunqRb::ExportAnnualOverview.find(user_id, 42)\n```\n\n##### LIST\n\n```ruby\nuser_id = 1\ninvoices = BunqRb::ExportAnnualOverview.all(user_id)\n```\n\n#### Export Annual Overview Content\n\n##### LIST\n\nTODO\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ahtung/bunq_rb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahtung%2Fbunq.rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahtung%2Fbunq.rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahtung%2Fbunq.rb/lists"}