{"id":15692350,"url":"https://github.com/bifot/node-qiwi","last_synced_at":"2025-05-08T02:33:58.117Z","repository":{"id":95882143,"uuid":"109587671","full_name":"bifot/node-qiwi","owner":"bifot","description":"API for Qiwi Wallet","archived":false,"fork":false,"pushed_at":"2018-06-23T17:23:39.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T20:48:35.562Z","etag":null,"topics":["api","pay","payment","payments","qiwi","wallet"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/node-qiwi","language":"JavaScript","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/bifot.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-05T14:42:53.000Z","updated_at":"2019-08-28T03:45:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"75e5d484-72e0-4d6f-b605-a9c24ade08b5","html_url":"https://github.com/bifot/node-qiwi","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"36358f2022324d18229e1919a6956f9fa4946d1d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifot%2Fnode-qiwi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifot%2Fnode-qiwi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifot%2Fnode-qiwi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bifot%2Fnode-qiwi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bifot","download_url":"https://codeload.github.com/bifot/node-qiwi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252987146,"owners_count":21836296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","pay","payment","payments","qiwi","wallet"],"created_at":"2024-10-03T18:31:59.248Z","updated_at":"2025-05-08T02:33:58.013Z","avatar_url":"https://github.com/bifot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![node-qiwi](https://img.shields.io/npm/v/node-qiwi.svg?style=flat-square)](https://www.npmjs.com/package/node-qiwi/)\n[![node-qiwi](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n\n# node-qiwi\n\nAPI for Qiwi Wallet.\n\n## Install\n\n```sh\n$ npm i node-qiwi -S\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n## Docs\n\n* [constructor(key)](#constructorkey)\n* [.getProfile(settings)](#getprofilesettings) ⇒ `[Promise]`\n* [.getBalance()](#getbalance) ⇒ `[Promise]`\n* [.getHistory(contractId, settings)](#gethistorycontractid-settings) ⇒ `[Promise]`\n* [.getIdentification(contractId, body)](#getidentificationcontractid-body) ⇒ `[Promise]`\n* [.getTransactionsStats(contractId, settings)](#gettransactionsstatscontractid-settings) ⇒ `[Promise]`\n* [.getTransaction(transactionId, settings)](#gettransaction-transactionid-settings) ⇒ `[Promise]`\n* [.sendPayment(amount, account, comment)](#sendpaymentamount-account-comment) ⇒ `[Promise]`\n\n### constructor(key)\n\n| Parameter  | Type      | Requried  | Description  |\n|:-----------:|:---------:|:---------:|:------------:|\n| key        | string    | yes       | Access token for call API methods |\n\n```js\nconst Qiwi = require('node-qiwi')\n\nconst wallet = new Qiwi(process.env.TOKEN)\n```\n\nCreate wallet.\n\n### .getProfile(settings)\n\n| Parameter  | Type      | Requried  | Description  |\n|:-----------:|:---------:|:---------:|:------------:|\n| settings   | object    | no        | Extra settings ([see](https://developer.qiwi.com/ru/qiwi-wallet-personal/#profile)) |\n\n```js\nconst profile = await wallet.getProfile()\n```\n\nGet profile.\n\n### .getBalance()\n\n```js\nconst balance = await wallet.getBalance()\n```\n\nGet balance.\n\n### .getHistory(contractId, settings)\n\n| Parameter  | Type      | Requried  | Description  |\n|:-----------:|:---------:|:---------:|:------------:|\n| contractId | string    | yes       | Wallet's contractId |\n| settings   | object    | no        | Extra settings ([see](https://developer.qiwi.com/ru/qiwi-wallet-personal/#payments_history)) |\n\n```js\nconst history = await wallet.getHistory(contractId)\n```\n\nGet history.\n\n### .getIdentification(contractId, body)\n\n| Parameter  | Type      | Requried  | Description  |\n|:-----------:|:---------:|:---------:|:------------:|\n| contractId | string    | yes       | Wallet's contractId |\n| body       | object    | yes       | Identification's data |\n\n```js\nconst identification = await wallet.getIdentification(contractId, {\n  firstName: 'Иван',\n  lastName: 'Иванов',\n  middleName: 'Иванович',\n  birthDate: '1998-02-11',\n  passport: 4400111222\n})\n```\n\nGet identification.\n\n### .getTransactionsStats(contractId, settings)\n\n| Parameter  | Type      | Requried  | Description  |\n|:-----------:|:---------:|:---------:|:------------:|\n| contractId | string    | yes       | Wallet's contractId |\n| settings   | object    | yes       | Extra settings |\n| settings.startDate | date    | yes       | Start date |\n| settings.endDate | date    | yes       | End date |\n\n```js\nconst stats = await wallet.getTransactionsStats(contractId, {\n  startDate,\n  endDate\n})\n```\n\nGet transaction stats.\n\n### .getTransaction(transactionId, settings)\n\n| Parameter  | Type      | Requried  | Description  |\n|:-----------:|:---------:|:---------:|:------------:|\n| transactionId | string    | yes       | Wallet's contractId |\n| settings   | object    | yes        | Extra settings |\n| settings.type   | string    | yes        | Transaction's type |\n\n```js\nconst transaction = await wallet.getTransaction(transactionId, { type })\n```\n\nGet transaction.\n\n### .sendPayment(amount, account, comment)\n\n| Parameter  | Type          | Requried  | Description  |\n|:-----------:|:-------------:|:---------:|:------------:|\n| amount     | number/string | yes       | Transaction amount     |\n| account    | number/string | yes       | Recipient's account    |\n| comment    | string        | no        | Comment to transaction |\n\n```js\nconst payment = await wallet.sendPayment(1, 37253676697, 'This is comment')\n```\n\nSend payment.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbifot%2Fnode-qiwi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbifot%2Fnode-qiwi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbifot%2Fnode-qiwi/lists"}