This is a payment pending using Mobile Money API and Credit Card. This API allows merchant to get payment information of the consumer which have its own account and money manage by the solution. The merchant can receive its money if only the consumer agreed [1st case].

Base URL: https://api.apibuilder.io

Contact: Steve Mbakop mard@mardets.com

License: MIT

account

Path: /accounts

POST /accounts/create

Used to create an account.

Parameters
NameTypeDescription
accountid requiredlongForm
ownerid requiredstringForm
total_amount requireddoubleForm
currency requiredstringForm
Responses
CodeTypeDescription
200account
409unit
PUT /accounts/update/:accountid

Used to update an account.

Parameters
NameTypeDescription
accountid requiredlongPath
ownerid requiredstringForm
total_amount requireddoubleForm
currency requiredstringForm
Responses
CodeTypeDescription
200account
409unit
DELETE /accounts/delete/:accountid

Delete some account.

Parameters
NameTypeDescription
accountid requiredlongPath
Responses
CodeTypeDescription
204unit
401unit
404unit
GET /accounts/:accountid

Find account by its id

Parameters
NameTypeDescription
accountid requiredlongPath
ownerid requiredstringQuery
total_amount requireddoubleQuery
currency requiredstringQuery
Responses
CodeTypeDescription
200account
404unit
GET /accounts/list

Find all the accounts.

Parameters
NameTypeDescription
accountid requiredlongQuery
ownerid requiredstringQuery
total_amount requireddoubleQuery
currency requiredstringQuery
Responses
CodeTypeDescription
200[account]
404unit

payment

Path: /payments

POST /payments/create

Used to create a payment.

Parameters
NameTypeDescription
payid requiredlongForm
payment_method requiredstringForm
actorid requiredstringForm
ref_accountid requiredlongForm
operatorid requiredstringForm
amount requireddoubleForm
phone requiredlongForm
pin requiredintegerForm
Responses
CodeTypeDescription
200payment
409unit
PUT /payments/update/:payid

Used to update a payment.

Parameters
NameTypeDescription
payid requiredlongPath
payment_method requiredstringForm
actorid requiredstringForm
ref_accountid requiredlongForm
operatorid requiredstringForm
amount requireddoubleForm
phone requiredlongForm
pin requiredintegerForm
Responses
CodeTypeDescription
200payment
409unit
DELETE /payments/delete/:payid

Delete some payment.

Parameters
NameTypeDescription
payid requiredlongPath
Responses
CodeTypeDescription
204unit
401unit
404unit
GET /payments/:payid

Find payment by its id.

Parameters
NameTypeDescription
payid requiredlongPath
payment_method requiredstringQuery
actorid requiredstringQuery
ref_accountid requiredlongQuery
operatorid requiredstringQuery
amount requireddoubleQuery
phone requiredlongQuery
pin requiredlongQuery
Responses
CodeTypeDescription
200payment
404unit
GET /payments/:ref_accountid

Find payment by id accountid

Parameters
NameTypeDescription
ref_accountid requiredlongPath
payid requiredlongQuery
payment_method requiredstringQuery
actorid requiredstringQuery
operatorid requiredstringQuery
amount requireddoubleQuery
phone requiredlongQuery
pin requiredintegerQuery
Responses
CodeTypeDescription
200payment
404unit
GET /payments/list

List all the payments

Parameters
NameTypeDescription
payid requiredlongQuery
payment_method requiredstringQuery
actorid requiredstringQuery
ref_accountid requiredlongQuery
operatorid requiredstringQuery
amount requireddoubleQuery
phone requiredlongQuery
pin requiredlongQuery
Responses
CodeTypeDescription
200[payment]
404unit

user

Path: /users

GET /users

Search for a specific user.

Parameters
NameTypeDescription
username requiredstringQuery Find user with this username. Exact match
email requiredstringQuery Find user with this email address. Case in-sensitive. Exact match
signed_up requiredstringQuery Find users with the specified date.
Responses
CodeTypeDescription
200[user]
GET /users/:username

Returns information about the user with this username.

Parameters
NameTypeDescription
username requiredstringPath
Responses
CodeTypeDescription
200unit
404unit
POST /users/login

Used to authenticate a user with an email address and password. Successful authentication returns an instance of the user model. Failed authorizations of any kind are returned as a generic error with code user_authorization_failed.

Parameters
NameTypeDescription
email requiredstringForm
password requiredstringForm
Responses
CodeTypeDescription
200user
409unit
POST /users/register

Used to register an user.

Parameters
NameTypeDescription
username requiredstringForm
email requiredstringForm
password requiredstringForm
Responses
CodeTypeDescription
200user
409unit

validation

Public resource that can accept JSON input and returns a validation object describing any validation errors.

Path: /validations

POST /validations
Body
string
Responses
CodeTypeDescription
200validation