Skip to main content

openhub-bo-accounts

Cuentas de comercio en Red Enlace (ATC) OpenHub, Bolivia (ATC.API.CUENTA.DIGITAL): consulta y alta de cuentas, cambio de estado, saldos y movimientos para conciliar los cobros QR y los pagos.

pip install openhub-bo[accounts]
from datetime import date, timedelta
from openhub_bo.core import Session
from openhub_bo.accounts import AccountsClient, NewAccount, StatusChange, AccountStatus

with Session("CLIENT_ID", "CLIENT_SECRET") as session:
    accounts = AccountsClient(session)
    nit = "1000000019"

    for acc in accounts.list_accounts(nit).accounts:
        print(acc.number, acc.alias, acc.status)

    for b in accounts.balances(nit, ["7014227171"]):  # hasta 10 cuentas
        print(b.account_number, b.available, b.held)

    today = date.today()
    rec = accounts.reconcile(nit, date_from=today - timedelta(days=7), date_to=today)  # máx. 7 días
    payins = accounts.credits(
        nit, "7014227171", date_from=today - timedelta(days=30), date_to=today
    )
    qr_total = sum(m.amount for m in payins if m.operation_type == "PAYIN QR")

    accounts.create_accounts(
        nit, establishment_id=111369, accounts=[NewAccount("CAJA 5", "COMERCIALES")]
    )
    accounts.set_account_status(
        nit, [StatusChange("7011113693", AccountStatus.BLOCKED, "Sospecha de fraude")]
    )

Límites verificados en el sandbox: conciliación hasta 7 días (la documentación dice 31), créditos/débitos hasta 31 días, saldos hasta 10 cuentas. Cerrar una cuenta (CLOSED) exige saldo 0 y es irreversible. Errores: ApiError.code 17 (comercio no encontrado), 15 (cuenta no encontrada), 99 (sin cuentas habilitadas), 02 (validación; un ApiFieldError por mensaje).

Async: AsyncAccountsClient. Tests sin red: openhub_bo.accounts.testing.MockAccounts.

Metadata

Release files for openhub-bo-accounts 0.1.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 openhub-bo-accounts 0.1.0
File Size Uploaded
openhub_bo_accounts-0.1.0.tar.gz 55.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for openhub-bo-accounts 0.1.0
File
openhub_bo_accounts-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
openhub_bo_accounts-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
openhub_bo_accounts-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
openhub_bo_accounts-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
openhub_bo_accounts-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
openhub_bo_accounts-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
openhub_bo_accounts-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 3.9 MB

Release files / openhub_bo_accounts-0.1.0.tar.gz

Download URL openhub_bo_accounts-0.1.0.tar.gz
Size 55.5 kB
Tags Source
SHA-256 checksum
How to use checksums
532e4d3a764d0363cca30c0240acc7cbf096f72eeaa3b11639698dcabda7333d
BLAKE2b-256 checksum
How to use checksums
820d097cc109f1f60da8f77e6838c94a937446ffeb2bd7ac7280a9c59f00b745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-win_amd64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-win_amd64.whl
Size 387.3 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e073ffc2109bf2288672c25f4f3b7f803a0d9f48c36e840e6980b526776ab0ac
BLAKE2b-256 checksum
How to use checksums
a686e98aa5d530142952d036757d8c4f70fe5a8fc8fd6c7ae0c08a828bbe3458
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 747.1 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
973851e4673f4e527ec87562d7a506134fd976e72f6f99202f57f72c89ac4e61
BLAKE2b-256 checksum
How to use checksums
dcb39e3b67a87a4239ed9e0eb4d5fe0569555451301e348f8d999b3684b9ccc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-musllinux_1_2_aarch64.whl
Size 703.8 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
5a78350296f6cb8be4c67a9b490e7e7fd778f56f8b176f4357e032b6a63c6799
BLAKE2b-256 checksum
How to use checksums
75fc3ba1ef1795e49f9795a46eef880808cf48757a3fd8b60723610be84cef77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 538.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9d189a4f5c61b9b4541321cd2d3b13813bc701e5ffe3ec4b296098e61eeaa8da
BLAKE2b-256 checksum
How to use checksums
11af9c279d72b6a62f02e60793cb26c8026783ee87a5f12642b8f6fe3807bf56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 533.8 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
e570479cba94033159efb7ae87f26cfb02b3d6ed7e787d865f560157cad38fa9
BLAKE2b-256 checksum
How to use checksums
83d9b5fc79461565de803ee2abe08f715769674f4d4a32be45d7528d775e6014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 482.1 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8645187106f53254f10e0f2bc6d51c4baf9995805f3ab4377b03681554f4f4d9
BLAKE2b-256 checksum
How to use checksums
cb3547164b263a0cb255759f83727c2fa1c90a7cb0995a48e26e2c60414de6a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / openhub_bo_accounts-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL openhub_bo_accounts-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 491.6 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ebd02380eb04d24c5de620fe5659d16d425acad7ea97283852e45f85fb2e1adc
BLAKE2b-256 checksum
How to use checksums
35a8135d5aee9f3d4e9e3c4946cc02b7f6a2abd36ce4d864cc5264d19102d9d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

8 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