Skip to main content

SNAP BCA API

Author:

Oji Setyawan <ojiset22@outlook.com>

Company:

PT Tenten Digital Indonesia

Version:

$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

Metadata

Release files for snap-bca-api 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snap-bca-api 1.0.0
File Size Uploaded
snap_bca_api-1.0.0.tar.gz 41.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snap-bca-api 1.0.0
File Interpreter ABI Platform
snap_bca_api-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.0 kB

Release files / snap_bca_api-1.0.0.tar.gz

Download URL snap_bca_api-1.0.0.tar.gz
Size 41.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0ef2a21165439965d81cb9921e3fc3a64631f84984208531c7f00ec6346f2617
BLAKE2b-256 checksum
How to use checksums
d1752deb69e4ad1c63e4d1a0860941ef163ada39bc10cadc21f993da95f2b196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / snap_bca_api-1.0.0-py3-none-any.whl

Download URL snap_bca_api-1.0.0-py3-none-any.whl
Size 28.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d235361e98b22b939fb00ea8a64ed7bf1cf147ea595e683e2e01029d6121fe8
BLAKE2b-256 checksum
How to use checksums
cd8d333056891c9843c63c893d1334a90cfa15fb7a1878232fd42c2821e6e9ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page