{"id":23511630,"url":"https://github.com/vtopc/go-monobank","last_synced_at":"2025-10-28T20:06:11.276Z","repository":{"id":36667428,"uuid":"195278723","full_name":"vtopc/go-monobank","owner":"vtopc","description":"Golang client for personal and corporate Monobank API.","archived":false,"fork":false,"pushed_at":"2024-04-11T19:13:13.000Z","size":88,"stargazers_count":22,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T03:09:26.649Z","etag":null,"topics":["api","fintech","go","golang","golang-library","jars","monobank","monobank-api","monobank-client","monobank-sdk","rest","rest-api","rest-client","sdk","sdk-go","sdk-golang","ukraine"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vtopc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml.example","license":"LICENSE","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,"zenodo":null},"funding":{"custom":["https://send.monobank.com.ua/123"]}},"created_at":"2019-07-04T17:18:30.000Z","updated_at":"2025-02-27T07:39:28.000Z","dependencies_parsed_at":"2024-04-11T19:57:18.132Z","dependency_job_id":"e4c0fb6c-7e84-4b4c-8490-30df6fccdd8c","html_url":"https://github.com/vtopc/go-monobank","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/vtopc/go-monobank","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtopc%2Fgo-monobank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtopc%2Fgo-monobank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtopc%2Fgo-monobank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtopc%2Fgo-monobank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vtopc","download_url":"https://codeload.github.com/vtopc/go-monobank/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vtopc%2Fgo-monobank/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264638255,"owners_count":23642132,"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","fintech","go","golang","golang-library","jars","monobank","monobank-api","monobank-client","monobank-sdk","rest","rest-api","rest-client","sdk","sdk-go","sdk-golang","ukraine"],"created_at":"2024-12-25T12:15:40.908Z","updated_at":"2025-10-08T20:03:46.905Z","avatar_url":"https://github.com/vtopc.png","language":"Go","funding_links":["https://send.monobank.com.ua/123"],"categories":[],"sub_categories":[],"readme":"# go-monobank\n\n[![Godoc Reference][godoc-img]][godoc-url] [![CI][ci-img]][ci-url] [![codecov][codecov-img]][codecov-url]\n\nMonobank REST API client.\n\n## Features\n- Personal API(with Token authorization).\n- API for providers(corporate) with authorization.\n- Webhooks(including API for providers).\n- Jars(only in Personal API).\n\n## Installation\n```shell\ngo get github.com/vtopc/go-monobank@latest\n```\nThis will update yours go.mod file.\n\n## Usage examples\nNOTE: Do not forget to check errors.\n\n#### Public client\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n\n    \"github.com/vtopc/go-monobank\"\n)\n\nfunc main() {\n    // Create public client.\n    client := monobank.NewClient(nil)\n\n    response, _ := client.Currency(context.Background())\n    fmt.Println(response)\n}\n```\n\n#### Personal client\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"os\"\n\n    \"github.com/vtopc/go-monobank\"\n)\n\nfunc main() {\n    token := os.Getenv(\"TOKEN\")\n\n    // Create authorized client.\n    client := monobank.NewPersonalClient(nil).WithAuth(monobank.NewPersonalAuthorizer(token))\n\n    response, _ := client.ClientInfo(context.Background())\n    fmt.Println(response)\n}\n```\n\n#### Corporate client\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n\n    \"github.com/vtopc/go-monobank\"\n)\n\nvar secKey []byte // put here you private key\n\nconst webhook = \"https://example.com/webhook\"\n\nfunc main() {\n    // Create auth creator.\n    authMaker, _ := monobank.NewCorpAuthMaker(secKey)\n\n    // Create authorized client.\n    client, _ := monobank.NewCorporateClient(nil, authMaker)\n\n    // If the user is not authorized yet, do next:\n    resp, _ := client.Auth(context.Background(), webhook, monobank.PermSt, monobank.PermPI)\n\n    // Send `resp.AcceptURL` to the user and wait until it will authorize your client\n    // in Monobank app on mobile, you will get GET request on `webhook` when it will be done.\n    // See Documentation for details.\n    // Store `resp.RequestID` somewhere.\n    requestID := resp.RequestID\n\n    // If user authorized already:\n    response, _ := client.ClientInfo(context.Background(), requestID)\n    fmt.Println(response)\n}\n```\n\n## Documentation\n- [Official](https://api.monobank.ua/docs/)\n- [Unofficial](https://gist.github.com/Sominemo/8714a82e26a268c30e4a332b0b2fd943)\n\n## Similar projects\n- https://github.com/shal/mono (last update 16.05.2020)\n- https://github.com/artemrys/go-monobank-api (no corporate API)\n\n## TODO\n- More unit tests\n\n[godoc-img]: https://godoc.org/github.com/vtopc/go-monobank?status.svg\n[godoc-url]: https://godoc.org/github.com/vtopc/go-monobank\n\n[ci-img]: https://github.com/vtopc/go-monobank/workflows/CI/badge.svg\n[ci-url]: https://github.com/vtopc/go-monobank/actions?query=workflow%3A%22CI%22\n\n[codecov-img]: https://codecov.io/gh/vtopc/go-monobank/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/vtopc/go-monobank\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtopc%2Fgo-monobank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvtopc%2Fgo-monobank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvtopc%2Fgo-monobank/lists"}