Skip to main content

unit-python-sdk

JSON:API-compliant banking API.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.9.0
  • Package version: 0.1.0
  • Generator version: 7.22.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import unit_finance_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import unit_finance_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import unit_finance_sdk
from unit_finance_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.s.unit.sh
# See configuration.py for a list of all supported configuration parameters.
configuration = unit_finance_sdk.Configuration(
    host = "https://api.s.unit.sh"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = unit_finance_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with unit_finance_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = unit_finance_sdk.AccountsApi(api_client)
    account_id = 'account_id_example' # str | 
    add_account_owners_request = unit_finance_sdk.AddAccountOwnersRequest() # AddAccountOwnersRequest | 

    try:
        # Add account owners
        api_response = api_instance.add_account_owners(account_id, add_account_owners_request)
        print("The response of AccountsApi->add_account_owners:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccountsApi->add_account_owners: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.s.unit.sh

Class Method HTTP request Description
AccountsApi add_account_owners POST /accounts/{accountId}/relationships/customers Add account owners
AccountsApi close_account POST /accounts/{accountId}/close Close an account
AccountsApi create_account POST /accounts Create an account
AccountsApi create_account_hold POST /account-holds Create an account hold
AccountsApi freeze_account POST /accounts/{accountId}/freeze Freeze an account
AccountsApi get_account GET /accounts/{accountId} Get an account by id
AccountsApi get_account_balance_history GET /account-end-of-day List account end-of-day balances
AccountsApi get_account_hold_by_id GET /account-holds/{id} Get an account hold by id
AccountsApi get_account_limits GET /accounts/{accountId}/limits Get account limits
AccountsApi get_available_deposit_products GET /accounts/{accountId}/deposit-products Get available deposit products
AccountsApi list_account_holds GET /account-holds List account holds
AccountsApi list_accounts GET /accounts List accounts
AccountsApi release_account_hold POST /account-holds/{id}/release Release an account hold
AccountsApi remove_account_owners DELETE /accounts/{accountId}/relationships/customers Remove account owners
AccountsApi reopen_account POST /accounts/{accountId}/reopen Reopen an account
AccountsApi unfreeze_account POST /accounts/{accountId}/unfreeze Unfreeze an account
AccountsApi update_account PATCH /accounts/{accountId} Update an account
ApplicationsApi cancel_application POST /applications/{id}/cancel Cancel an application
ApplicationsApi create_application POST /applications Create an application
ApplicationsApi get_by_id GET /applications/{id} Get an application
ApplicationsApi list GET /applications List applications
ApplicationsApi update_application PATCH /applications/{id} Update an application
ApplicationsApi update_business_beneficial_owner PATCH /beneficial-owner/{id} Update a business beneficial owner
CardsApi close_card POST /cards/{cardId}/close Close a card
CardsApi create_card POST /cards Create a card
CardsApi freeze_card POST /cards/{cardId}/freeze Freeze a card
CardsApi get_card GET /cards/{cardId} Get a card
CardsApi get_card_limits GET /cards/{cardId}/limits Get card limits
CardsApi get_card_pin_status GET /cards/{cardId}/secure-data/pin/status Get card PIN status
CardsApi list_cards GET /cards List cards
CardsApi replace_card POST /cards/{cardId}/replace Replace a card
CardsApi report_card_lost POST /cards/{cardId}/report-lost Report card lost
CardsApi report_card_stolen POST /cards/{cardId}/report-stolen Report card stolen
CardsApi unfreeze_card POST /cards/{cardId}/unfreeze Unfreeze a card
CardsApi update_card PATCH /cards/{cardId} Update a card
CheckDepositsApi clear_check_deposit POST /check-deposits/{checkDepositId}/clear Clear a check deposit
CheckDepositsApi confirm_check_deposit_details POST /check-deposits/{checkDepositId}/confirm Confirm check deposit details
CheckDepositsApi create_check_deposit POST /check-deposits Create a check deposit
CheckDepositsApi create_check_deposit_send_link POST /white-label/send-link Create a check deposit send link
CheckDepositsApi get_check_deposit GET /check-deposits/{checkDepositId} Get a check deposit by id
CheckDepositsApi get_check_deposit_back_image GET /check-deposits/{checkDepositId}/back Get a check deposit back image
CheckDepositsApi get_check_deposit_front_image GET /check-deposits/{checkDepositId}/front Get a check deposit front image
CheckDepositsApi list_check_deposits GET /check-deposits List check deposits
CheckDepositsApi update_check_deposit PATCH /check-deposits/{checkDepositId} Update a check deposit
CheckDepositsApi upload_check_deposit_back_image PUT /check-deposits/{checkDepositId}/back Upload a check deposit back image
CheckDepositsApi upload_check_deposit_front_image PUT /check-deposits/{checkDepositId}/front Upload a check deposit front image
CounterpartiesApi create_counterparty POST /counterparties Create a counterparty
CounterpartiesApi delete_counterparty DELETE /counterparties/{counterpartyId} Delete a counterparty
CounterpartiesApi get_counterparty GET /counterparties/{counterpartyId} Get a counterparty by id
CounterpartiesApi get_counterparty_balance GET /counterparties/{counterpartyId}/balance Get a counterparty balance by id
CounterpartiesApi list_counterparties GET /counterparties List counterparties
CounterpartiesApi update_counterparty PATCH /counterparties/{counterpartyId} Update a counterparty
CustomersApi archive_customer POST /customers/{customerId}/archive Archive a customer
CustomersApi create_business_wallet_customer POST /customers Create a business wallet customer
CustomersApi get_customer GET /customers/{customerId} Get a customer
CustomersApi list_customers GET /customers List customers
CustomersApi update_business_customer_officer PATCH /customers/{customerId}/officers/{officerId} Update a business customer officer
CustomersApi update_customer PATCH /customers/{customerId} Update a customer
FeesApi create_fee POST /fees Create a fee
FeesApi reverse_fee POST /fees/reverse Reverse a fee
PaymentsApi cancel_payment POST /payments/{paymentId}/cancel Cancel a payment
PaymentsApi clear_ach_debit_payment POST /payments/{paymentId}/clear Clear an ACH debit payment
PaymentsApi create_batch_releases POST /batch-releases Create batch releases
PaymentsApi create_bulk_payment POST /payments/bulk Create a bulk payment
PaymentsApi create_payment POST /payments Create a payment
PaymentsApi create_recurring_payment POST /recurring-payments Create a recurring payment
PaymentsApi delete_recurring_payment DELETE /recurring-payments/{id} Delete a recurring payment
PaymentsApi disable_recurring_payment POST /recurring-payments/{id}/disable Disable a recurring payment
PaymentsApi enable_recurring_payment POST /recurring-payments/{id}/enable Enable a recurring payment
PaymentsApi generate_cash_deposit_barcode POST /cash-deposits/barcodes Generate a cash deposit barcode
PaymentsApi get_cash_deposit_barcode_image GET /cash-deposits/barcodes/{barcodeNumber}/image Get a cash deposit barcode image
PaymentsApi get_expected_ach_completion_date POST /payments/ach/expected-completion-date Get expected ACH completion date
PaymentsApi get_received_payment GET /received-payments/{id} Get a received payment by id
PaymentsApi get_recurring_payment GET /recurring-payments/{id} Get a recurring payment by id
PaymentsApi get_wire_drawdown GET /wire-drawdowns/{id} Get a wire drawdown by id
PaymentsApi list_received_payments GET /received-payments List received payments
PaymentsApi list_recurring_payments GET /recurring-payments List recurring payments
PaymentsApi list_store_locations GET /store-locations List cash deposit store locations
PaymentsApi list_wire_drawdowns GET /wire-drawdowns List wire drawdowns
PaymentsApi send_drawdown_payment POST /wire-drawdowns/{id}/send Send a drawdown payment
PaymentsApi update_payment PATCH /payments/{paymentId} Update a payment
PaymentsApi update_received_payment PATCH /received-payments/{id} Update a received payment
TransactionsApi get_transaction GET /accounts/{accountId}/transactions/{transactionId} Get a transaction
TransactionsApi list_transactions GET /transactions List transactions
TransactionsApi update_transaction PATCH /transactions/{transactionId} Update a transaction
TransactionsApi update_transaction_tags PATCH /accounts/{accountId}/transactions/{transactionId} Update transaction tags

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (JWT)

Author

Metadata

Release files for unit-openapi-python-sdk 0.9.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 unit-openapi-python-sdk 0.9.0
File Size Uploaded Provenance
unit_openapi_python_sdk-0.9.0.tar.gz 242.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for unit-openapi-python-sdk 0.9.0
File Interpreter ABI Platform
unit_openapi_python_sdk-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.2 MB

Release files / unit_openapi_python_sdk-0.9.0.tar.gz

Download URL unit_openapi_python_sdk-0.9.0.tar.gz
Size 242.1 kB
Tags Source
SHA-256 checksum
How to use checksums
664bee7de2bc865d3f17d3f9e80dd7b6b386a7a3a16a37620dae33ed240ee717
BLAKE2b-256 checksum
How to use checksums
ab98e51ec0969a2e8ec6e9a86f37affe450a06eef6167a6f368f7291e3b6778d
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 Sep 17, 2026.

Transparency log

Release files / unit_openapi_python_sdk-0.9.0-py3-none-any.whl

Download URL unit_openapi_python_sdk-0.9.0-py3-none-any.whl
Size 929.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f2ca4995230252301d0b3817764abf3e4700516cf7d9c2f108adce07d55e936
BLAKE2b-256 checksum
How to use checksums
79c24609d9575e40a0f62041febde46c28afe8158030d5e6e97ed86056e952ba
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 Sep 17, 2026.

Transparency log

Security for unit-openapi-python-sdk 0.9.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for unit_openapi_python_sdk-0.9.0.tar.gz

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 Sep 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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