Skip to main content
The Zentra Python SDK provides convenient access to the Zentra API from applications written in the Python language. The reviewed public HTTP surface for this SDK is transfers, webhooks, virtual accounts, payments, cards, and tenant-enabled identity. Customers, wallets, and other generated helpers may still exist for compatibility or draft use cases, but they are not the default reviewed public API path.

Configuration

Initialize the client with your API key. You can find your API keys in the Developer Console.

Resources

The SDK maps to reviewed API resources as follows:
  • client.payments: Payment processing
  • client.transfers: Bank transfers
  • client.virtual_accounts: Virtual bank accounts
  • client.cards: Card issuing
  • client.identity: KYC verification
  • client.webhooks: Webhook handling

Examples

Create a Transfer

Create Charge

Verify Webhook Signature

Securely verify incoming webhooks from Zentra:

Error Handling

The SDK raises exceptions for API errors:

Async Support

For concurrent workloads, run the sync client in background tasks:

Source Code

Only use the official library. The source code is available on GitHub.

GitHub Repo

View source code

PyPI

Download package