API Reference
enPossible values: Payment providers retrieved successfully.
GET /data/payment-providers?currency=text&transaction_type=text HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
Accept: */*
Payment providers retrieved successfully.
{
"code": 200,
"status": "success",
"message": "Request completed successfully",
"data": {
"payment_providers": [
{
"provider_name": "MTN Mobile Money Uganda",
"provider_code": "mtn_ug",
"transaction_method": "MOBILE_MONEY",
"transaction_method_name": "Mobile Money",
"transaction_type": "Collection",
"transaction_currency": "UGX",
"min_amount": 500,
"max_amount": 3000000,
"max_daily_amount": 7000000,
"is_active": true,
"option_prefixes": [
"77",
"78",
"76",
"39"
]
},
{
"provider_name": "Airtel Money Uganda",
"provider_code": "airtel_ug",
"transaction_method": "MOBILE_MONEY",
"transaction_method_name": "Mobile Money",
"transaction_type": "Collection",
"transaction_currency": "UGX",
"min_amount": 500,
"max_amount": 3000000,
"max_daily_amount": 7000000,
"is_active": true,
"option_prefixes": [
"74",
"75",
"70"
]
}
]
}
}enPossible values: Wallet balances retrieved successfully.
GET /data/wallet-balances HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
secret-key: text
Accept: */*
Wallet balances retrieved successfully.
{
"code": 200,
"status": "success",
"message": "Request completed successfully",
"data": {
"merchant_wallets": [
{
"available_balance": 40000,
"actual_balance": 40000,
"currency": "UGX",
"uncleared_balance": 40000,
"reserve_balance": 0,
"wallet_type": "MERCHANT_COLLECTION"
},
{
"available_balance": 0,
"actual_balance": 0,
"currency": "UGX",
"uncleared_balance": 0,
"reserve_balance": 0,
"wallet_type": "MERCHANT_PAYOUT"
}
]
}
}enPossible values: Transaction retrieved successfully.
GET /data/transaction/verify/{merchant_reference} HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
Accept: */*
Transaction retrieved successfully.
{
"code": 200,
"status": "success",
"message": "Request completed successfully",
"data": {
"id": 20760,
"merchant_reference": "MCTREFT2WMNWZ23SBN6Y",
"internal_reference": "ELEMIRMGRXNNYBWATKJ",
"transaction_type": "COLLECTION",
"request_currency": "UGX",
"transaction_amount": 2000000,
"transaction_currency": "UGX",
"transaction_charge": 60000,
"transaction_account": "256787008803",
"charge_customer": false,
"total_credit": 1940000,
"provider_code": "mtn_ug",
"request_amount": 2000000,
"customer_name": "JOHN DOE",
"transaction_status": "COMPLETED",
"status_message": "Transaction Completed Successfully"
}
}enPossible values: The transaction method to be used.
MOBILE_MONEYPossible values: The provider code as obtained from the payment options
mtn_ugThe unique reference for this request. It must be at least 8 characters long. Alternatively, the value auto can be passed, and a unique reference will be created for you by the API
MCTREF123456The mobile money number of the customer. Mandatory for Mobile Money.
256787701800Should be sent with the value true in order for the API to handle the mobile money payment via hosted page
falseThe 3-character ISO currency code for the request currency
The amount being requested
The description/narration for the transaction. Between 10-30 characters
The name of the customer
The email of the customer
The HTTPs redirect URL to which the API will redirect when the payment is successful/failed
Whether or not the customer should bear the charge for the transaction. By default, this is false to mean that the merchant bears the charge
falseWhether or not the final transaction status can be altered as described in the document
trueCollection initiated successfully.
The request is invalid
Unauthorized
Unprocessable Entity
An error occurred while processing the request
POST /collections/initialize HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
Content-Type: application/json
Accept: */*
Content-Length: 344
{
"transaction_method": "MOBILE_MONEY",
"provider_code": "mtn_ug",
"merchant_reference": "MCTREF123456",
"msisdn": "256787701800",
"mobile_money_hpp": false,
"currency": "text",
"amount": 1,
"description": "text",
"customer_name": "text",
"customer_email": "text",
"redirect_url": "text",
"card_cipher": "text",
"charge_customer": false,
"allow_final_status_change": true
}{
"code": 202,
"status": "accepted",
"message": "Request Accepted",
"data": {
"internal_reference": "ELEMIRMGRXNNYBWATKJ",
"merchant_reference": "MCTREFT2WMNWZ23SBN6Y"
}
}enPossible values: Internal/gateway transaction reference
ELEMIRMGRXNNYBWATKJOTP Auth
123456Authorization request accepted.
The request is invalid
Unauthorized
Unprocessable Entity
An error occurred while processing the request
POST /collections/authorize HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"internal_reference": "ELEMIRMGRXNNYBWATKJ",
"otp": 123456
}{
"code": 202,
"status": "accepted",
"message": "Request Accepted",
"data": {
"internal_reference": "ELEMIRMGRXNNYBWATKJ",
"merchant_reference": "MCTREFT2WMNWZ23SBN6Y",
"payment_url": "https://sandboxpay.elemitech.com/pay/collection/ELEMIRMGRXNNYBWATKJ"
}
}enPossible values: Payout bank codes retrieved successfully.
GET /data/payout-bank-codes?provider_code=text HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
Accept: */*
Payout bank codes retrieved successfully.
{
"code": 200,
"status": "success",
"message": "Request completed successfully",
"data": {
"payout_banks": [
{
"bank_name": "Access Bank Nigeria",
"bank_code": "access_bank_ng",
"is_active": true
},
{
"bank_name": "Guaranty Trust Bank",
"bank_code": "gtbank_ng",
"is_active": true
}
]
}
}enPossible values: The unique reference for this request. It must be at least 8 characters long.
MCTREF123456The transaction method to be used.
MOBILE_MONEYPossible values: The 3-character ISO currency code for the request currency.
UGXThe amount being requested
5000The provider code as obtained from the payment options
mtn_ugThe bank account or mobile money number of the recipient.
17100000034The name of the customer.
John DoeThe description/narration for the transaction. Between 10-30 characters
Payout initiated successfully.
The request is invalid
Unauthorized
Unprocessable Entity
An error occurred while processing the request
POST /payout/send-funds HTTP/1.1
Host: sandbox.elemitech.com
public-key: text
x-api-version: 1
Accept-Language: en
secret-key: text
Content-Type: application/json
Accept: */*
Content-Length: 274
{
"merchant_reference": "MCTREF123456",
"transaction_method": "MOBILE_MONEY",
"currency": "UGX",
"amount": 5000,
"provider_code": "mtn_ug",
"account_number": "17100000034",
"customer_name": "John Doe",
"description": "text",
"extra_params": {
"bank_code": "access_bank_ng",
"branch_code": "046"
}
}{
"code": 202,
"status": "accepted",
"message": "Request Accepted",
"data": {
"internal_reference": "ELEMIRMGRXNNYBWATKJ",
"merchant_reference": "MCTREFT2WMNWZ23SBN6Y"
}
}Last updated