Bank BCA API (SNAP) Python SDK
Project description
- Company:
PT Tenten Digital Indonesia
- Version:
- 1.0.0
- License:
GNU GPL v3
Introduction
python module to access SNAP BCA API.
Feature :
check balance.
account statement (history).
How to install
Clone or download this repo https://github.com/tentendigital-id/Snap-BCA-API.git.
Move this entire project to your project’s directory.
How to use
Import library to your project
from snap_bca_api.bca import BCA_SNAP
.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
)
Call
BCA_SNAP
function.
Get balance
get_balance = bca.getBalance(
account_number=ACCOUNT_NUMBER,
partnerReferenceNo=PARTNER_REFERENCE_NO,
)
print(get_balance)
Get statement
get_statement = bca.getStatement(
account_number=ACCOUNT_NUMBER,
partnerReferenceNo=PARTNER_REFERENCE_NO,
fromDateTime=FROM_DATE,
toDateTime=TO_DATE
)
print(get_statement)
Note:
FROM_DATE
andTO_DATE
useyyyy-MM-ddT00:00:00+07:00
format.Maximum date to get from start to end is 31 day.
Resource
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
snap_bca_api-1.0.0.tar.gz
(41.3 kB
view details)
Built Distribution
File details
Details for the file snap_bca_api-1.0.0.tar.gz
.
File metadata
- Download URL: snap_bca_api-1.0.0.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef2a21165439965d81cb9921e3fc3a64631f84984208531c7f00ec6346f2617 |
|
MD5 | 5c5915086207bba0ba76263ad513e851 |
|
BLAKE2b-256 | d1752deb69e4ad1c63e4d1a0860941ef163ada39bc10cadc21f993da95f2b196 |
File details
Details for the file snap_bca_api-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: snap_bca_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d235361e98b22b939fb00ea8a64ed7bf1cf147ea595e683e2e01029d6121fe8 |
|
MD5 | 7886059f2786f565ba810a1a8aff04a7 |
|
BLAKE2b-256 | cd8d333056891c9843c63c893d1334a90cfa15fb7a1878232fd42c2821e6e9ca |