v1.0
Pay-in / Payout / Query / Balance
中文EN

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

FieldTypeRequiredDescription
signtypeStringYesSignature type, always MD5
signStringYesSignature string (uppercase)
transdataObjectYesBusiness parameter object
JSONRequest envelope
{
  "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

  1. Contact support to obtain the API domain, merchant_code and MD5 secret key.
  2. The notify_url must be publicly reachable. You MUST return the string success after receiving a notification, otherwise the system will retry.
  3. All amounts are integers (no decimals; in the major currency unit of each country); for Bangladesh the unit is the taka (BDT).
  4. Every endpoint path is appended to the API domain, e.g. https://{API_DOMAIN}/pay.

Endpoint Overview

FunctionMethodPathAvailability
Create Pay-inPOST/payBD
Query Pay-inPOST/queryPayOrderBD
Resubmit OrderPOST/updateOrderBD
Check Wallet AccountPOST/checkWalletAccountBD
Create PayoutPOST/v2/withdrawBD
Query PayoutPOST/v2/queryWithdrawOrderBD
Balance QueryPOST/v2/queryBalanceBD
Pay-in CallbackPOSTMerchant notify_urlBD
Payout CallbackPOSTMerchant notify_urlBD

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

  1. Sort all non-empty fields in transdata in ascending ASCII order;
  2. Join them as key=value pairs separated by &;
  3. Append &key=${secret_key} at the end;
  4. Compute MD5 and convert the result to uppercase;
  5. 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)

TEXTascending ASCII, joined by &, key appended
merchant_code=test1111&notify_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)

JAVAMd5Utils
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

CountryCode country_codeCurrency
BangladeshBDBDT

Order Status

Pay-in order status order_status

StatusDescription
payingPaying
successSuccess
failedOrder failed

Payout order status order_status

StatusDescription
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).

POSTCreate Pay-in

POST/payCreate a pay-in order

Request Parameters (transdata)

FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesCountry code, fixed BD
order_noStringYesMerchant order number, must be unique
order_amountStringYesOrder amount (integer, no decimals; unit BDT)
pay_typeStringYesPayment type, see table below
notify_urlStringYesAsync callback URL
return_urlStringNoRedirect URL after successful payment

Payment type pay_type

ValueDescription
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
{
  "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

FieldTypeDescription
codeStringResponse code, 0 = success, otherwise failed
messageStringResponse message
statusBooleantrue = success / false = failure
order_noStringMerchant order number
plat_order_noStringPlatform order number
merchant_codeStringMerchant code
country_codeStringCountry code
pay_typeStringChannel type
order_amountStringOrder amount
mc_order_change_feeStringMerchant order rate fee
mc_order_single_feeStringMerchant order single fee
pay_urlStringPayment URL (cashier)

Success Response Example

200/pay · Response
{
  "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
{
  "code": "500",
  "message": "pay_type not supported",
  "status": false
}

POSTQuery Pay-in

POST/queryPayOrderQuery pay-in order status

Request Parameters (transdata)

FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesFixed BD
order_noStringYesMerchant order number

Request Example

POST/queryPayOrder · Request
{
  "signtype": "MD5",
  "sign": "1B3C9378F53CE47A54325F8F2E506130",
  "transdata": {
    "country_code": "BD",
    "merchant_code": "M2512166666666666",
    "order_no": "20261009000001"
  }
}

Response Parameters

FieldTypeDescription
code / message / statusString / BooleanResponse code / message / status
order_no / plat_order_noStringMerchant / platform order number
merchant_code / country_code / pay_typeStringMerchant / country / channel type
order_amountStringActual paid amount (final settlement amount)
origin_order_amountStringOriginal order amount
mc_order_change_fee / mc_order_single_feeStringRate fee / single fee
order_statusStringOrder status, see "Order Status"
signStringSignature
txn_idStringTransaction reference

Response Example

200/queryPayOrder · Response
{
  "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"
}

POSTPay-in Callback

POSTMerchant notify_urlSystem 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.

FieldTypeDescription
codeIntegerResponse code: 0 success, otherwise failure
messageStringResponse message, default success
statusBooleanRequest status, default true
order_noStringMerchant order number
plat_order_noStringPlatform order number
merchant_codeStringMerchant code
country_codeStringCountry code
pay_typeStringChannel type
order_amountStringActual paid amount (final settlement amount)
origin_order_amountStringOriginal order amount
mc_order_change_feeStringMerchant order floating fee
mc_order_single_feeStringMerchant order single fee
order_statusStringOrder status, see "Order Status"
txn_idStringTransaction reference

Callback Example

POSTnotify_url · Callback
{
  "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

POSTResubmit Order

POST/updateOrderResubmit a pay-in order (submit reference)
FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesFixed BD
order_noStringYesMerchant order number
txn_idStringYesTransaction reference
languageStringNoLanguage 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

FieldTypeDescription
codeIntegerResponse code, 0 success, otherwise failed
messageStringResponse message
statusBooleanRequest status
order_noStringMerchant order number
plat_order_noStringPlatform order number
merchant_codeStringMerchant code
country_codeStringCountry code
order_amountStringOrder amount (final settlement amount)
origin_order_amountStringOriginal order amount
order_statusStringOrder status, see "Order Status"

Failed Response Parameters

FieldTypeDescription
codeIntegerError code, non-0 means failed
msgStringFailure reason
dataObjectData body, null on failure

Request Example

POST/updateOrder · Request
{
  "signtype": "MD5",
  "sign": "883F5FD2631227449B0F5E62695B2E7A",
  "transdata": {
    "country_code": "BD",
    "merchant_code": "M2512166666666666",
    "order_no": "20261009000001",
    "txn_id": "TXN2026100900001",
    "language": "zh"
  }
}

Response Example

200/updateOrder · Success
{
  "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
{
  "code": 500,
  "msg": "交易ID已经被使用,请核实!!!",
  "data": null
}

POSTCheck Wallet Account

POST/checkWalletAccountCheck whether a Bangladesh wallet phone number belongs to us

Request Parameters (transdata)

FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesCountry code, fixed BD
phoneStringYesWallet phone number (account) to check
wallet_typeStringYesWallet 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
{
  "signtype": "MD5",
  "sign": "3B7E1C9A54D2F6081E4A9C7B2D5F8031",
  "transdata": {
    "merchant_code": "M2512166666666666",
    "country_code": "BD",
    "phone": "01712345678",
    "wallet_type": "bkash"
  }
}

Response Parameters

FieldTypeDescription
codeIntegerResponse code, 0 means the request succeeded (it does not mean the account belongs to us)
messageStringResult message describing whether the wallet account belongs to us
statusBooleanCheck result: true belongs to us / false does not belong

Response Example

200/checkWalletAccount · Response
{
  "code": 0,
  "message": "01712345678 (bkash) belongs to us",
  "status": true
}
200/checkWalletAccount · Response (not ours)
{
  "code": 0,
  "message": "01712345678 (bkash) does not belong to us",
  "status": false
}

POSTCreate Payout

POST/v2/withdrawInitiate a payout (withdrawal)
FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesFixed BD
order_noStringYesMerchant order number, must be unique
order_amountStringYesOrder amount (integer, no decimals; unit BDT)
pay_typeStringYesPayout type, see table below
bank_codeStringYesBank code (bkash / nagad)
bank_card_noStringYesPayee phone (11 digits starting with 0)
notify_urlStringYesCallback URL
bene_nameStringYesPayee name
test_orderStringNoIf present, treated as a test order (no auto review)

Payout Type / Bank Code

ValueDescription
bkashbkash wallet payout
nagadnagad wallet payout

Response Parameters

FieldTypeDescription
codeStringResponse code, 0 success, otherwise failed
messageStringResponse message
statusBooleanRequest status, true success / false failed
order_noStringMerchant order number
plat_order_noStringPlatform order number
merchant_codeStringMerchant code
country_codeStringCountry code
pay_typeStringChannel type
bank_codeStringBank/wallet code
order_amountStringOrder amount
mc_order_change_feeStringMerchant rate fee
mc_order_single_feeStringMerchant per-order fee

Request Example

POST/v2/withdraw · Request
{
  "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
{
  "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.

POSTQuery Payout

POST/v2/queryWithdrawOrderQuery payout order status

Request Parameters (transdata)

FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesFixed BD
order_noStringYesMerchant order number

Request / Response Example

POST/v2/queryWithdrawOrder · Request
{
  "signtype": "MD5",
  "sign": "7AD06A8F89BAE4F602DA90B3F51369B1",
  "transdata": {
    "country_code": "BD",
    "merchant_code": "M2512166666666666",
    "order_no": "W20261009000001"
  }
}

Response Parameters

FieldTypeDescription
codeStringResponse code, 0 = success
messageStringResponse message
statusBooleanRequest status
order_noStringMerchant order number
plat_order_noStringPlatform order number
merchant_codeStringMerchant code
country_codeStringCountry code
pay_typeStringChannel type
bank_codeStringBank / channel code
order_amountStringOrder amount
mc_order_change_feeStringMerchant order floating fee
mc_order_single_feeStringMerchant order single fee
order_statusStringOrder status, see "Order Status"
txn_idStringTransaction reference
signStringSignature
200/v2/queryWithdrawOrder · Response
{
  "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"
}

POSTBalance Query

POST/v2/queryBalanceQuery account balance

Request Parameters (transdata)

FieldTypeRequiredDescription
merchant_codeStringYesMerchant code
country_codeStringYesFixed BD

Request / Response Example

POST/v2/queryBalance · Request
{
  "signtype": "MD5",
  "sign": "96CAB8A72F673C84905DF12C8E2113A1",
  "transdata": {
    "country_code": "BD",
    "merchant_code": "M2512166666666666"
  }
}

Response Parameters

FieldTypeDescription
codeStringResponse code, 0 = success
messageStringResponse message
statusBooleanRequest status
<country_code> (e.g. BD)ObjectBalance object for that country, containing the fields below
balanceStringTotal balance
canPayoutBalanceStringAvailable for payout
payoutingAmountStringAmount paying out
freezeAmountStringFrozen amount
currencyStringCurrency
200/v2/queryBalance · Response
{
  "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.

POSTPayout Callback

POSTMerchant notify_urlPayout result notification
FieldTypeDescription
codeIntegerResponse code: 0 success, otherwise failure
messageStringResponse message, default success; may carry the failure reason on failure
statusBooleanRequest status, default true
order_noStringMerchant order number
plat_order_noStringPlatform order number
merchant_codeStringMerchant code
country_codeStringCountry code
pay_typeStringChannel type
bank_codeStringBank / channel code
order_amountStringPayout amount
mc_order_change_feeStringMerchant order floating fee
mc_order_single_feeStringMerchant order single fee
txn_idStringTransaction reference
order_statusStringOrder 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

POSTnotify_url · Callback
{
  "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