Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.58 KB

README.md

File metadata and controls

67 lines (42 loc) · 1.58 KB

logo-main

LICENSE Supported Versions PyPI Version

Python client library for interacting with CentApp API.

You can find more information on the official CentApp website.

README also available in:

Installing

CentApp SDK is available on PyPI:

$ python -m pip install centapp

CentApp SDK officially supports Python 3.7+.

API Version and Reference

Base api url: https://cent.app/api/v1

API reference and official docs: https://cent.app/en/reference/api

The list of available modules:

  • /api/v1/bill/
  • /api/v1/payment/
  • /api/v1/merchant/
  • /api/v1/payout/

API Examples

You can find more examples in examples folder.

Bill creation example:

from centapp import centapp

token = ''
amount = 100
shop_id = ''

cent_app = centapp.CentApp(token)
res = cent_app.bill().create(amount, shop_id)
print(res)

Merchant balance example:

from centapp import centapp

token = ''

cent_app = centapp.CentApp(token)
res = cent_app.merchant().balance()
print(res)