Axispay API Reference
Merchant Integration Guide · Pay-in / Payout / Query / Balance · English
Method: POST JSON
Signature: MD5
Encoding: UTF-8
Countries: BD
Overview
All Axispay endpoints use POST with a JSON body. Business parameters are placed inside the
transdata object, while sign and signtype are placed at the top level.
Responses are JSON as well.
Envelope Structure
Field Type Required Description
signtypeString Yes Signature type, always MD5
signString Yes Signature string (uppercase)
transdataObject Yes Business parameter object
JSON Request envelope Copy
{
"signtype": "MD5",
"sign": "72550F03C5DA4BD6666666666F75",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666",
"order_no": "33333333333",
"order_amount": "470",
"pay_type": "bkash",
"notify_url": "https://merchant.example.com/notify"
}
}
Preparation
Contact support to obtain the API domain , merchant_code and MD5 secret key .
The notify_url must be publicly reachable. You MUST return the string success after receiving a notification, otherwise the system will retry.
All amounts are integers (no decimals; in the major currency unit of each country) ; for Bangladesh the unit is the taka (BDT).
Every endpoint path is appended to the API domain, e.g. https://{API_DOMAIN}/pay.
Endpoint Overview
Function Method Path Availability
Create Pay-in POST /payBD
Query Pay-in POST /queryPayOrderBD
Resubmit Order POST /updateOrderBD
Check Wallet Account POST /checkWalletAccountBD
Create Payout POST /v2/withdrawBD
Query Payout POST /v2/queryWithdrawOrderBD
Balance Query POST /v2/queryBalanceBD
Pay-in Callback POST Merchant notify_url BD
Payout Callback POST Merchant notify_url BD
Signature
The system uses MD5 signatures. To obtain the secret key: log in to the merchant portal → avatar (top-right) → "Personal Center" → "Merchant Information" tab → click Show MD5 Key in the secret key row → enter your Google Code to reveal it (sub-merchants have no access).
Steps
Sort all non-empty fields in transdata in ascending ASCII order;
Join them as key=value pairs separated by &;
Append &key=${secret_key} at the end;
Compute MD5 and convert the result to uppercase ;
Put the result into the top-level sign field with signtype=MD5.
Verification fields should be gathered dynamically : verify using all request/response parameters rather than a fixed field list. The rule stays the same, but the fields involved may change between versions.
String to Sign (Example)
TEXT ascending ASCII, joined by &, key appended Copy
merchant_code=test1111¬ify_url=1&order_amount=50&order_no=541445444144414&order_time=20201102081725&pay_type=india-upi&product_code=test001&product_name=ttt001&return_url=1&user_no=51070173&key=dsfkgjslgfkslfda
MD5 the string above and uppercase it to obtain sign.
Signature Utility (Java)
JAVA Md5Utils Copy
public class Md5Utils {
/** Sort transdata keys ascending, skip empty values and sign, append key, then MD5 uppercase */
public static String sign(JSONObject object, String secretKey) {
String waitSignStr = sortByASCll(object) + "&key=" + secretKey;
return hash(waitSignStr).toUpperCase();
}
public static String sortByASCll(JSONObject object) {
String[] keys = object.keySet().toArray(new String[0]);
Arrays.sort(keys);
StringBuilder sb = new StringBuilder();
for (String key : keys) {
if ("sign".equals(key)) continue;
Object v = object.get(key);
if (v != null && !StringUtils.isBlank(v.toString())) {
sb.append(key).append("=").append(v).append("&");
}
}
sb.deleteCharAt(sb.length() - 1);
return sb.toString();
}
}
Country Codes
Country Code country_code Currency
Bangladesh BDBDT
Order Status
Pay-in order status order_status
Status Description
payingPaying
successSuccess
failedOrder failed
Payout order status order_status
Status Description
payoutingPayouting
successPaid out
failedPayout failed
🇧🇩 Bangladesh (BD)
Important: The pay-in callback is triggered with the player's actual paid amount ; handle accordingly (settlement is based on order_amount returned by the callback/query).
POST Create Pay-in
POST /pay Create a pay-in order
Request Parameters (transdata)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Country code, fixed BD
order_noString Yes Merchant order number, must be unique
order_amountString Yes Order amount (integer, no decimals; unit BDT)
pay_typeString Yes Payment type, see table below
notify_urlString Yes Async callback URL
return_urlString No Redirect URL after successful payment
Payment type pay_type
Value Description
bkashbkash agent wallet
nagadnagad agent wallet
bkash-nativeNative bkash
nagad-nativeNative nagad
upay-nativeNative upay
bkash-merchantbkash merchant wallet
bkash-send-moneybkash personal account
nagad-send-moneynagad personal account
Request Example
POST /pay · Request Copy
{
"signtype": "MD5",
"sign": "16D87A1823FEF736009CC956FE876834",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666",
"order_no": "20261009000001",
"order_amount": "470",
"pay_type": "bkash",
"notify_url": "https://merchant.example.com/notify",
"return_url": "https://merchant.example.com/return"
}
}
Response Parameters
Field Type Description
codeString Response code, 0 = success, otherwise failed
messageString Response message
statusBoolean true = success / false = failure
order_noString Merchant order number
plat_order_noString Platform order number
merchant_codeString Merchant code
country_codeString Country code
pay_typeString Channel type
order_amountString Order amount
mc_order_change_feeString Merchant order rate fee
mc_order_single_feeString Merchant order single fee
pay_urlString Payment URL (cashier)
Success Response Example
200 /pay · Response Copy
{
"code": "0",
"message": "success",
"status": true,
"order_no": "20261009000001",
"plat_order_no": "C25188004564564562",
"merchant_code": "M2512166666666666",
"country_code": "BD",
"pay_type": "bkash",
"order_amount": "470",
"mc_order_change_fee": "6.580000",
"mc_order_single_fee": "0.000000",
"pay_url": "https://cashier.axispay.com/pay/9f3a1c7e/bkash"
}
Failure Response Example
200 /pay · Response Copy
{
"code": "500",
"message": "pay_type not supported",
"status": false
}
POST Query Pay-in
POST /queryPayOrder Query pay-in order status
Request Parameters (transdata)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Fixed BD
order_noString Yes Merchant order number
Request Example
POST /queryPayOrder · Request Copy
{
"signtype": "MD5",
"sign": "1B3C9378F53CE47A54325F8F2E506130",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666",
"order_no": "20261009000001"
}
}
Response Parameters
Field Type Description
code / message / statusString / Boolean Response code / message / status
order_no / plat_order_noString Merchant / platform order number
merchant_code / country_code / pay_typeString Merchant / country / channel type
order_amountString Actual paid amount (final settlement amount)
origin_order_amountString Original order amount
mc_order_change_fee / mc_order_single_feeString Rate fee / single fee
order_statusString Order status, see "Order Status"
signString Signature
txn_idString Transaction reference
Response Example
200 /queryPayOrder · Response Copy
{
"code": "0",
"message": "success",
"status": true,
"order_no": "20261009000001",
"plat_order_no": "C25188004564564562",
"merchant_code": "M2512166666666666",
"country_code": "BD",
"pay_type": "bkash",
"order_amount": "470.000000",
"origin_order_amount": "470.000000",
"mc_order_change_fee": "6.580000",
"mc_order_single_fee": "0.000000",
"order_status": "success",
"txn_id": "TXN2026100900001",
"sign": "7F3A9C21B84D5E6F0A1B2C3D4E5F6071"
}
POST Pay-in Callback
POST Merchant notify_url System posts the payment result as JSON
Read callback fields from the transdata object; verification follows the same rule as ordering. You MUST return the string success .
Field Type Description
codeInteger Response code: 0 success, otherwise failure
messageString Response message, default success
statusBoolean Request status, default true
order_noString Merchant order number
plat_order_noString Platform order number
merchant_codeString Merchant code
country_codeString Country code
pay_typeString Channel type
order_amountString Actual paid amount (final settlement amount)
origin_order_amountString Original order amount
mc_order_change_feeString Merchant order floating fee
mc_order_single_feeString Merchant order single fee
order_statusString Order status, see "Order Status"
txn_idString Transaction reference
Callback Example
POST notify_url · Callback Copy
{
"sign": "169071F3858ECF55AE7EC4DEE30BCD4A",
"transdata": {
"code": 0,
"message": "success",
"status": true,
"order_no": "11134534535945",
"plat_order_no": "C25188004564564562",
"merchant_code": "M250396456456456",
"country_code": "BD",
"pay_type": "bkash",
"order_amount": "1500.000000",
"origin_order_amount": "1500.000000",
"mc_order_change_fee": "21.000000",
"mc_order_single_fee": "0.000000",
"order_status": "success",
"txn_id": "TXN2026100900001"
}
}
Response string: success
POST Resubmit Order
POST /updateOrder Resubmit a pay-in order (submit reference)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Fixed BD
order_noString Yes Merchant order number
txn_idString Yes Transaction reference
languageString No Language for the returned message, default Chinese
To prevent financial loss, wait for the callback after a successful resubmission. Do NOT change the order status yourself.
Response Parameters
Field Type Description
codeInteger Response code, 0 success, otherwise failed
messageString Response message
statusBoolean Request status
order_noString Merchant order number
plat_order_noString Platform order number
merchant_codeString Merchant code
country_codeString Country code
order_amountString Order amount (final settlement amount)
origin_order_amountString Original order amount
order_statusString Order status, see "Order Status"
Failed Response Parameters
Field Type Description
codeInteger Error code, non-0 means failed
msgString Failure reason
dataObject Data body, null on failure
Request Example
POST /updateOrder · Request Copy
{
"signtype": "MD5",
"sign": "883F5FD2631227449B0F5E62695B2E7A",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666",
"order_no": "20261009000001",
"txn_id": "TXN2026100900001",
"language": "zh"
}
}
Response Example
200 /updateOrder · Success Copy
{
"code": 0,
"country_code": "BD",
"merchant_code": "M2512166666666666",
"message": "订单已成功",
"order_amount": "470.00",
"order_no": "20261009000001",
"order_status": "success",
"origin_order_amount": "470.00",
"plat_order_no": "C2524749924564983809",
"status": true
}
200 /updateOrder · Failure Copy
{
"code": 500,
"msg": "交易ID已经被使用,请核实!!!",
"data": null
}
POST Check Wallet Account
POST /checkWalletAccount Check whether a Bangladesh wallet phone number belongs to us
Request Parameters (transdata)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Country code, fixed BD
phoneString Yes Wallet phone number (account) to check
wallet_typeString Yes Wallet type: bkash / nagad / rocket
The envelope still requires signtype (always MD5) and sign; the signature rules are the same as for other endpoints.
Request Example
POST /checkWalletAccount · Request Copy
{
"signtype": "MD5",
"sign": "3B7E1C9A54D2F6081E4A9C7B2D5F8031",
"transdata": {
"merchant_code": "M2512166666666666",
"country_code": "BD",
"phone": "01712345678",
"wallet_type": "bkash"
}
}
Response Parameters
Field Type Description
codeInteger Response code, 0 means the request succeeded (it does not mean the account belongs to us)
messageString Result message describing whether the wallet account belongs to us
statusBoolean Check result: true belongs to us / false does not belong
Response Example
200 /checkWalletAccount · Response Copy
{
"code": 0,
"message": "01712345678 (bkash) belongs to us",
"status": true
}
200 /checkWalletAccount · Response (not ours) Copy
{
"code": 0,
"message": "01712345678 (bkash) does not belong to us",
"status": false
}
POST Create Payout
POST /v2/withdraw Initiate a payout (withdrawal)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Fixed BD
order_noString Yes Merchant order number, must be unique
order_amountString Yes Order amount (integer, no decimals; unit BDT)
pay_typeString Yes Payout type, see table below
bank_codeString Yes Bank code (bkash / nagad)
bank_card_noString Yes Payee phone (11 digits starting with 0)
notify_urlString Yes Callback URL
bene_nameString Yes Payee name
test_orderString No If present, treated as a test order (no auto review)
Payout Type / Bank Code
Value Description
bkashbkash wallet payout
nagadnagad wallet payout
Response Parameters
Field Type Description
codeString Response code, 0 success, otherwise failed
messageString Response message
statusBoolean Request status, true success / false failed
order_noString Merchant order number
plat_order_noString Platform order number
merchant_codeString Merchant code
country_codeString Country code
pay_typeString Channel type
bank_codeString Bank/wallet code
order_amountString Order amount
mc_order_change_feeString Merchant rate fee
mc_order_single_feeString Merchant per-order fee
Request Example
POST /v2/withdraw · Request Copy
{
"signtype": "MD5",
"sign": "ED32FD03BF1028ED8172895246502B69",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666",
"order_no": "W20261009000001",
"order_amount": "1000",
"pay_type": "bkash",
"bank_code": "bkash",
"bank_card_no": "01712345678",
"bene_name": "zhangsan",
"notify_url": "https://merchant.example.com/notify"
}
}
Response Example
200 /v2/withdraw · Response Copy
{
"code": "0",
"message": "success",
"status": true,
"order_no": "W20261009000001",
"plat_order_no": "H2518800312530018523",
"merchant_code": "M2512166666666666",
"country_code": "BD",
"pay_type": "bkash",
"bank_code": "bkash",
"order_amount": "1000",
"mc_order_change_fee": "40.00",
"mc_order_single_fee": "6.00"
}
⚠ Important (avoid financial loss): When a payout order fails (timeout or unclear failure), you MUST first query the order status via the query endpoint. Only when it is not found or its status is failed may you resubmit to another channel.
POST Query Payout
POST /v2/queryWithdrawOrder Query payout order status
Request Parameters (transdata)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Fixed BD
order_noString Yes Merchant order number
Request / Response Example
POST /v2/queryWithdrawOrder · Request Copy
{
"signtype": "MD5",
"sign": "7AD06A8F89BAE4F602DA90B3F51369B1",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666",
"order_no": "W20261009000001"
}
}
Response Parameters
Field Type Description
codeString Response code, 0 = success
messageString Response message
statusBoolean Request status
order_noString Merchant order number
plat_order_noString Platform order number
merchant_codeString Merchant code
country_codeString Country code
pay_typeString Channel type
bank_codeString Bank / channel code
order_amountString Order amount
mc_order_change_feeString Merchant order floating fee
mc_order_single_feeString Merchant order single fee
order_statusString Order status, see "Order Status"
txn_idString Transaction reference
signString Signature
200 /v2/queryWithdrawOrder · Response Copy
{
"code": "0",
"message": "success",
"status": true,
"order_no": "W20261009000001",
"plat_order_no": "H2518800312530018523",
"merchant_code": "M2512166666666666",
"country_code": "BD",
"pay_type": "bkash",
"bank_code": "bkash",
"order_amount": "1000.000000",
"mc_order_change_fee": "40.00",
"mc_order_single_fee": "6.00",
"order_status": "success",
"txn_id": "PTXN2026100900001",
"sign": "A1B2C3D4E5F60718293A4B5C6D7E8F90"
}
POST Balance Query
POST /v2/queryBalance Query account balance
Request Parameters (transdata)
Field Type Required Description
merchant_codeString Yes Merchant code
country_codeString Yes Fixed BD
Request / Response Example
POST /v2/queryBalance · Request Copy
{
"signtype": "MD5",
"sign": "96CAB8A72F673C84905DF12C8E2113A1",
"transdata": {
"country_code": "BD",
"merchant_code": "M2512166666666666"
}
}
Response Parameters
Field Type Description
codeString Response code, 0 = success
messageString Response message
statusBoolean Request status
<country_code> (e.g. BD)Object Balance object for that country, containing the fields below
balanceString Total balance
canPayoutBalanceString Available for payout
payoutingAmountString Amount paying out
freezeAmountString Frozen amount
currencyString Currency
200 /v2/queryBalance · Response Copy
{
"code": "0",
"message": "success",
"status": true,
"BD": {
"balance": "6000000",
"canPayoutBalance": "70",
"payoutingAmount": "10000",
"freezeAmount": "400",
"currency": "BDT"
}
}
Balance fields: {country_code}.balance total, .canPayoutBalance available for payout, .payoutingAmount paying out, .freezeAmount frozen, .currency currency.
POST Payout Callback
POST Merchant notify_url Payout result notification
Field Type Description
codeInteger Response code: 0 success, otherwise failure
messageString Response message, default success; may carry the failure reason on failure
statusBoolean Request status, default true
order_noString Merchant order number
plat_order_noString Platform order number
merchant_codeString Merchant code
country_codeString Country code
pay_typeString Channel type
bank_codeString Bank / channel code
order_amountString Payout amount
mc_order_change_feeString Merchant order floating fee
mc_order_single_feeString Merchant order single fee
txn_idString Transaction reference
order_statusString Order status, see "Order Status"
A payout callback is sent when the payout succeeds or fails ; order_status is success or failed. On failure message may be failed or the failure reason — use order_status as the final result.
Callback Example
POST notify_url · Callback Copy
{
"sign": "FBA18DCC461E20C4C3AD16BC809B7271",
"transdata": {
"code": 0,
"message": "success",
"status": true,
"order_no": "W57745865534534533",
"plat_order_no": "H2518800312530018523",
"merchant_code": "M24972552183546456",
"country_code": "BD",
"pay_type": "bengalCommon",
"bank_code": "bkash",
"order_amount": "1000.000000",
"mc_order_change_fee": "40.00",
"mc_order_single_fee": "6.00",
"txn_id": "PTXN2026100900001",
"order_status": "success"
}
}
Response string: success
Axispay API Reference (English) · Signatures/domains used in examples are illustrative; always use the domain and key you obtained. 中文版