📖
mobilemoney.js documentation
  • welcome to mobilemoney.js
  • Introduction
  • Quick Start
  • Getting Help
  • Reference
    • API Reference
      • Client
        • Collection
        • Disbursements
      • Body details
Powered by GitBook
On this page
  • Client
  • export Client()
  • Error
  • export MomoException
  • export HTTPError
  • export Unauthorized
  • export MomoServerError
  • export InvalidData
  • export NotFound
  • export Conflict
  • export InvalidUniqueIDVersion
  • export InvalidBasicToken
  • export InvalidBearerToken
  1. Reference

API Reference

PreviousGetting HelpNextClient

Last updated 2 years ago

The following section outlines the API of mobilemoney.js.

Client

export Client()

Methods

Error

The following error are thrown by the library.

Please note that every request are susceptible to throw all these exception. Make sure to handle it well.

export MomoException

The base Exception for mobilemoney.py

export HTTPError

Exception that’s raised when an HTTP request operation fails.

export Unauthorized

Exception that’s raised for when status code 401 occurs.

subclass of HTTPError

export MomoServerError

Exception that’s raised for when status code 500 occurs.

subclass of HTTPError

export InvalidData

Exception that’s raised for when status code 400 occurs.

subclass of HTTPError

export NotFound

Exception that’s raised for when status code 404 occurs.

subclass of HTTPError

export Conflict

Exception that’s raised for when status code 409 occurs.

subclass of HTTPError

export InvalidUniqueIDVersion

Exception that's raised for when UUID is not a valid version 4.

subclass of Error

export InvalidBasicToken

Exception that's raised for a invalid Basic token type.

subclass of Error

export InvalidBearerToken

Exception that's raised for a invalid Bearer token type.

subclass of Error

def

def

async

async

async

def

def

def

def

Client
collection()
disbursements()
createApiUser()
getApiUser()
createApiKey()
getReferenceId()
isSandbox()
basicToken()
bearerToken()