Skip to main content

Bank BCA API (SNAP) Python SDK

Project description

Author:

Oji Setyawan <ojiset22@outlook.com>

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

  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.

How to use

  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

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:

  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.

Resource

Project details


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)

Uploaded Source

Built Distribution

snap_bca_api-1.0.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

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

Hashes for snap_bca_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0ef2a21165439965d81cb9921e3fc3a64631f84984208531c7f00ec6346f2617
MD5 5c5915086207bba0ba76263ad513e851
BLAKE2b-256 d1752deb69e4ad1c63e4d1a0860941ef163ada39bc10cadc21f993da95f2b196

See more details on using hashes here.

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

Hashes for snap_bca_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d235361e98b22b939fb00ea8a64ed7bf1cf147ea595e683e2e01029d6121fe8
MD5 7886059f2786f565ba810a1a8aff04a7
BLAKE2b-256 cd8d333056891c9843c63c893d1334a90cfa15fb7a1878232fd42c2821e6e9ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page