Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.monei.cc/llms.txt

Use this file to discover all available pages before exploring further.

Overview

All SDK methods raise a MoneiError on failure. Always wrap calls in try/except:
from monei import MoneiClient, MoneiError

try:
    tx = monei.payout.bank_transfer({...})
except MoneiError as err:
    print(err.status_code)   # HTTP status code
    print(err.message)       # Human-readable error
    print(err.code)          # Machine-readable error code

Common Error Codes

CodeHTTP StatusMeaning
UNAUTHORIZED401Missing or invalid API key / bearer token
FORBIDDEN403Insufficient permissions or KYC tier too low
NOT_FOUND404Resource does not exist
VALIDATION_ERROR422Invalid request body
INSUFFICIENT_FUNDS400Wallet balance too low
RATE_LIMITED429Too many requests — back off and retry
INTERNAL_ERROR500Something went wrong on our end