{"id":37372893,"url":"https://github.com/vickzkater/nodejs-bca-api","last_synced_at":"2026-01-16T05:00:58.110Z","repository":{"id":44219545,"uuid":"191526853","full_name":"vickzkater/nodejs-bca-api","owner":"vickzkater","description":"NodeJS wrapper for BCA API (Bank Central Asia) - last tested June 2019","archived":false,"fork":false,"pushed_at":"2023-03-03T00:56:28.000Z","size":66,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2023-03-05T07:48:21.491Z","etag":null,"topics":["bank","bca","bca-api","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vickzkater.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-12T08:08:37.000Z","updated_at":"2023-03-05T07:48:21.492Z","dependencies_parsed_at":"2023-01-25T17:00:55.703Z","dependency_job_id":null,"html_url":"https://github.com/vickzkater/nodejs-bca-api","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/vickzkater/nodejs-bca-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickzkater%2Fnodejs-bca-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickzkater%2Fnodejs-bca-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickzkater%2Fnodejs-bca-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickzkater%2Fnodejs-bca-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vickzkater","download_url":"https://codeload.github.com/vickzkater/nodejs-bca-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickzkater%2Fnodejs-bca-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: 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":["bank","bca","bca-api","nodejs"],"created_at":"2026-01-16T05:00:38.241Z","updated_at":"2026-01-16T05:00:58.083Z","avatar_url":"https://github.com/vickzkater.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### NodeJS Wrapper for BCA API\nWrapper is based on BCA API documentation which can be found on https://developer.bca.co.id/documentation/\n\n### Config\nTo be able to use the wrapper, make sure you have all of these configurations:\n- client_id\n- client_secret\n- api_key\n- api_secret\n\nWhich can be retrieved after signing up and login to https://developer.bca.co.id/sign-in\n\nConfig can be used when initiating one of the classes, for example:\n```\nconst bca = new BCA({\n  api_host: 'https://sandbox.bca.co.id',\n  api_port: 443,\n  client_id: 'YOUR_CLIENT_ID',\n  client_secret: 'YOUR_CLIENT_SECRET',\n  api_key: 'YOUR_API_KEY',\n  api_secret: 'YOUR_API_SECRET',\n  origin: 'YOUR_SITE_URL',\n})\n```\n\n### Services\nFollowing the documentation, each service can be used separately. It consists of:\n- BusinessBanking\n- Fire\n- GeneralInformation\n- Sakuku\n- VirtualAccount\n\nWhich can be used by initiating a new class for each service, for example:\n```\nconst businessBanking = new BusinessBanking({\n  api_host: 'https://sandbox.bca.co.id',\n  api_port: 443,\n  client_id: 'YOUR_CLIENT_ID',\n  client_secret: 'YOUR_CLIENT_SECRET',\n  api_key: 'YOUR_API_KEY',\n  api_secret: 'YOUR_API_SECRET',\n  origin: 'YOUR_SITE_URL',\n});\n\n// Corporate transfer within BCA\nbusinessBanking.corporateTransfer({\n  CorporateID: 'BCAAPI2016',\n  SourceAccountNumber : '0201245680',\n  TransactionID : '00000001',\n  ReferenceID : '12345/PO/2016',\n  CurrencyCode : 'IDR',\n  Amount : '100000.00',\n  BeneficiaryAccountNumber : '0201245681',\n  Remark1 : 'Transfer Test',\n  Remark2 : 'Online Transfer',\n});\n```\n\n### Token\nToken is cached based on `expires_in` specified in https://developer.bca.co.id/documentation/#oauth2-0\n\nYou can also decide on how you want to cache it on your own. Just make sure that you call `clearCache()` method\n\n```\nfire.clearCache();\n```\n\n### Don't forget to install required node modules using `npm install`\n\n### Test\nTo make sure that your config is set correctly, run `npm run test` and make sure that you your config on `originalConfig` variable defined in `tests/index.js`\n\n### Sample\nFor sample, you can check `sample.js` but set the config first\n```\nconst config = {\n  api_host: 'https://sandbox.bca.co.id',\n  api_port: 443,\n  client_id: 'YOUR_CLIENT_ID',\n  client_secret: 'YOUR_CLIENT_SECRET',\n  api_key: 'YOUR_API_KEY',\n  api_secret: 'YOUR_API_SECRET',\n  origin: 'YOUR_SITE_URL',\n};\n```\n\n### Notes\nIf in development using sandbox, you will get error response when using function `domesticTransfer`\n\n```\nError Response:\nErrorCode: 'ESB-82-004'\nErrorMessage: 'Invalid TransactionDate'\n```\n\nIt is a `false positive`, so don't worry. But if you using `real API config, it works`.\n\nThis error cause by Sandbox only accept specific time, not using the real time.\n\n### Credits\nCode base from https://github.com/niveksalim/nodebca\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickzkater%2Fnodejs-bca-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvickzkater%2Fnodejs-bca-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickzkater%2Fnodejs-bca-api/lists"}