Skip to content

tentendigital-id/Snap-BCA-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SNAP BCA API

Author: Oji Setyawan <ojiset22@outlook.com>
Company:PT Tenten Digital Indonesia
Version: 1.0.0
License:GNU GPL v3

python module to access SNAP BCA API.

Feature :

  • check balance.
  • account statement (history).
  1. Clone or download this repo https://github.com/tentendigital-id/Snap-BCA-API.git.
  2. Move this entire project to your project's directory.
  1. Import library to your project from snap_bca_api.bca import BCA_SNAP.
  2. Initiate config your BCA API
bca = BCA_SNAP(
    client_id=client_id,
    client_secret=client_secret,
    private_key=private_key,
    channel_id=channel_id,
    partner_id=partner_id,
    host=host,
    debug=False
)
  1. Call BCA_SNAP function.
get_balance = bca.getBalance(
    account_number=ACCOUNT_NUMBER,
    partnerReferenceNo=PARTNER_REFERENCE_NO,
)
print(get_balance)
get_statement = bca.getStatement(
    account_number=ACCOUNT_NUMBER,
    partnerReferenceNo=PARTNER_REFERENCE_NO,
    fromDateTime=FROM_DATE,
    toDateTime=TO_DATE
)
print(get_statement)

Note:

  1. FROM_DATE and TO_DATE use yyyy-MM-ddT00:00:00+07:00 format.
  2. Maximum date to get from start to end is 31 day.

About

Bank BCA API (SNAP) Python SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages