{"id":20904703,"url":"https://github.com/sage/sbca_api_python_sample","last_synced_at":"2026-04-25T13:37:40.175Z","repository":{"id":137384092,"uuid":"551382945","full_name":"Sage/sbca_api_python_sample","owner":"Sage","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-13T16:09:46.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-02-15T06:15:01.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sage.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-14T09:47:07.000Z","updated_at":"2022-10-16T16:04:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"739a6473-be10-49d6-8738-e2d18e11291f","html_url":"https://github.com/Sage/sbca_api_python_sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sage/sbca_api_python_sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Fsbca_api_python_sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Fsbca_api_python_sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Fsbca_api_python_sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Fsbca_api_python_sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sage","download_url":"https://codeload.github.com/Sage/sbca_api_python_sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sage%2Fsbca_api_python_sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32264431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":[],"created_at":"2024-11-18T13:18:33.523Z","updated_at":"2026-04-25T13:37:40.149Z","avatar_url":"https://github.com/Sage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sage Business Cloud Accounting API starter sample application (Python)\n\nThe Sage Business Cloud Accounting simple Python sample is an starter application written to demonstrate a method of consuming the Accounting API v3.1.\n\n## Prerequisites\n\nPrior to using this sample application there are a few things you need to ensure you have set up and ready:\n\n* A Sage Accounting trial business, which can be created using the links available in the documentation [quick start guide](https://developer.sage.com/accounting/quick-start/set-up-the-basics/#set-up-a-developer-trial). There is an option to upgrade to a free of charge developer account [here](https://developer.sage.com/accounting/quick-start/upgrade-your-account/). We have a range of variants and regions to choose from.\n\n* A Sage developer account used to register an application, set your callback url(s), and obtain your client credentials (client_id \u0026 client_secret). You can sign up [here](https://developerselfservice.sageone.com/), with a guide available [here](https://developer.sage.com/accounting/guides/getting-started/developer_signup/).\n\n* A registered application using the app registry above. We have a guide on that process available [here](https://developer.sage.com/accounting/guides/getting-started/client_app_registration/).\n\n### Optional\n\n* For UK businesses we also offer a Postman collection that will create some sample data in your test account. More on this process is available on the [developer portal](https://developer.sage.com/accounting/quick-start/preparing-to-create-test-data/). We are looking to add testing datasets for other regions in the future.\n\n## Configuration\n\n* Install the latest version of [python3](https://www.python.org/downloads/).\n* Create and activate a virtual environment - [offical Python docs](https://docs.python.org/3/library/venv.html).\n* Ensure pip is installed and using the following command in your virtual environment install all required packages:\n\n```terminal\npip install -r requirements.txt\n```\n\n* Update the config.py with your registered application credentials (Client ID, Client Secret and Redirect URL), and set or generate a new (16-24 character) Flask session key, updating the details in the configuration.\n\nYou can use the os package via os.urandom(24) (passing in the number of characters you require)\nFor example in a python terminal:\n\n```terminal\n\u003e\u003e\u003e import os\n\u003e\u003e\u003e os.urandom(24)\n\u003e\u003e\u003e b'\"\\xf7\\xb5\\..........\\xa5\\x0e'\n```\n\nOnce your session key and credentials are set in the config.py, setup is complete.\n\n## Usage\n\nStart the sample app using:\n\n```terminal\npython -m flask run\n```\n\n## Feedback\n\nThis sample is only one of many ways to work with our API, and so we welcome feedback. Please let us know on our [developer community](https://developer-community.sage.com/forum/4-sage-business-cloud-accounting/) your thoughts, and get involved in the discussion.\n\n## Copyright\n\n© 2022 The Sage Group plc or its licensors. All rights reserved.\n\n## Licence\n\nLicensed under the [Apache-2.0 licence](https://github.com/Sage/sbca_api_python_sample/blob/master/LICENCE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsage%2Fsbca_api_python_sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsage%2Fsbca_api_python_sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsage%2Fsbca_api_python_sample/lists"}