Skip to main content
The Monei Python SDK mirrors the Node.js SDK feature-for-feature. All service methods use snake_case naming. Requires Python ≥ 3.9.
The Python SDK is currently in beta. The Node.js SDK is the primary SDK and is recommended for production use today. Join our Discord to get early access and share feedback.

Installation

pip install monei-sdk
Or with Poetry:
poetry add monei-sdk

Initialization

import os
from monei import MoneiSDK

monei = MoneiSDK(api_key=os.getenv("MONEI_API_KEY"))

Configuration Options

OptionTypeRequiredDescription
api_keystrYesYour API key from the Monei dashboard
base_urlstrNoOverride the base URL (useful for sandbox)

Authentication Helpers

# Switch to bearer token (user-scoped operations)
monei.set_bearer_token("eyJhbGci...")

# Remove bearer token (fall back to API key)
monei.remove_bearer_token()

# Swap the API key
monei.set_api_key("new-api-key")

SDK Services Overview

AttributeWhat it does
monei.userFetch and update the authenticated user
monei.wallet_accountWallet info and virtual accounts
monei.depositNaira wallet deposits
monei.payoutBank & peer transfers
monei.wallet_utilityBank lookup & account verification
monei.payment_methodSaved payment methods
monei.evmEVM blockchain operations
monei.solanaSolana blockchain operations
monei.exchangeToken swaps (EVM & Solana)
monei.billsAirtime, data, electricity, cable TV
monei.transactionsTransaction history & lookup
monei.billsDiscoveryBillDiscoveryServiceFecth available biller items
monei.offrampPayoutsOfframpPayoutServiceOfframp bank lookup & Verification
monei.billsPayBillPayServicePayment for bills
monei.offrampLedgerOfframpLedgerServiceOfframp transaction history & lookup
monei.billsRecordsBillRecordsServiceBills history & lookup
monei.offrampExchangeOfframpExchangeServiceSwap crypto to fiat
monei.billsValidationBillValidateServiceValidate bills
monei.businessBusinessServicebusiness customer operations