Download Documentation
Keep an offline copy in PDF or plain-text format.
Unified Request Method
All documented SAVEXPAY business requests use a unified JSON request format.
| Item | Value |
|---|---|
| HTTP Method | POST |
| Content Type | application/json |
| Production Endpoint | https://api.savexpay.com/ |
| Business Request Address | Endpoint + <resource path> |
Signature Instructions
Except for the sign parameter, all request parameters participate in signing. Sort parameters in ascending ASCII order, concatenate them in key=value&key=value format, append the secret MD5 key, generate the MD5 signature, and send the resulting sign field with the JSON payload.
Concatenation Example
amount=100.00&merchantId=1001&merchantOrderId=ORD123456&payType=1
Your actual Merchant ID and secret MD5 key are issued separately. Do not place secret credentials in client-side code or public repositories.
Balance Inquiry
api/merchant/merchant/balance| Parameter | Description | Required | Type |
|---|---|---|---|
| merchantId | Merchant ID | true | String |
| sign | Verification signature | true | String |
Response Example
JSON
{
"code": 0,
"msg": "success",
"data": {
"merchantId": "1001",
"balance": "996452.48",
"frozenBalance": "402075.48",
"availableBalance": "594377.00",
"createTime": "1738753896000",
"updateTime": "1738830113000"
}
}Create Collection Order (PayIn)
api/merchant/pay/payIn/public/CreatePayOrder| Parameter | Description | Required | Type |
|---|---|---|---|
| merchantId | Merchant ID | true | String |
| merchantOrderId | Merchant Order ID | true | String |
| payerKey | Unique identifier for the payer (e.g., User ID) | true | String |
| payerName | Payer's Name | true | String |
| amount | Order Amount | true | String |
| payType | 1 Nagad, 2 Bkash, 3 Rocket, 101 Nagad Personal, 102 Bkash Personal | true | Integer |
| callbackUrl | Callback URL | false | String |
| sign | Verification signature | true | String |
Request Example
JSON
{
"merchantId": "1001",
"merchantOrderId": "IN20260930001",
"payerKey": "USER_88201",
"payerName": "John Doe",
"amount": "1000.00",
"payType": 101,
"callbackUrl": "https://yourdomain.com/api/callback/payin",
"sign": "3a8f9c2d1e0b..."
}Check Collection Order
api/merchant/pay/payIn/query/payInOrder| Parameter | Description | Required | Type |
|---|---|---|---|
| merchantId | Merchant ID | true | String |
| merchantOrderId | Merchant Order ID | true | String |
| sign | Verification signature | true | String |
Response Example
JSON
{
"code": 0,
"msg": "success",
"data": {
"merchantId": "1001",
"merchantOrderId": "IN20260930001",
"orderId": "P01738753896000123",
"amount": "1000.00",
"status": 2,
"payType": 101,
"createTime": "1738753896000"
}
}Create Payment Order (Payout)
api/merchant/pay/payOut/withdraw| Parameter | Description | Required | Type |
|---|---|---|---|
| merchantId | Merchant ID | true | String |
| merchantOrderId | Merchant Order Number | true | String |
| account | Target account / Phone number | true | String |
| amount | Payout amount | true | String |
| bankCode | Bank Code (can pass empty string "") | true | String |
| ip | Submission IP Address | true | String |
| name | Target Account Name | true | String |
| payType | 1 Nagad, 2 Bkash, 3 Rocket, 101 Nagad Personal, 102 Bkash Personal | true | Integer |
| callbackUrl | Callback URL | false | String |
| sign | Verification signature | true | String |
Request Example
JSON
{
"merchantId": "1001",
"merchantOrderId": "OUT20260930001",
"account": "01700000000",
"amount": "5000.00",
"bankCode": "",
"ip": "127.0.0.1",
"name": "Receiver Name",
"payType": 102,
"callbackUrl": "https://yourdomain.com/api/callback/payout",
"sign": "5e7d8f9a0c1b..."
}Check Payment Order
api/merchant/pay/payOut/query/payOutOrder| Parameter | Description | Required | Type |
|---|---|---|---|
| merchantId | Merchant ID | true | String |
| merchantOrderId | Merchant Order ID | true | String |
| sign | Verification signature | true | String |
Response Example
JSON
{
"code": 0,
"msg": "success",
"data": {
"merchantId": "1001",
"merchantOrderId": "OUT20260930001",
"orderId": "WD1738753896000",
"amount": "5000.00",
"status": 2,
"payType": 102,
"createTime": "1738753896000"
}
}Callback Explanation & Retry Schedule
Configure callback URLs for both collection (PayIn) and payment (PayOut). SAVEXPAY retries callbacks using the schedule below.
1st10 seconds
2nd30 seconds
3rd1 minute
4th5 minutes
5th10 minutes
6th30 minutes
7th1 hour
8th4 hours
Payment Callback Parameters
| Parameter | Type | Description |
|---|---|---|
| merchantId | String | Merchant ID |
| orderId | String | Platform Order ID |
| transAmt | String | Actual transaction / withdrawal amount |
| avenuesOrderId | String | Avenues Order ID |
| orderStatus | Integer | 1 Pending, 2 Success, 4 Refunded, 5 Failed |
| payType | Integer | 1 Nagad, 2 Bkash, 3 Rocket, 101 Nagad Personal, 102 Bkash Personal |
| standbyObject | String | Extra notes / metadata |
| remark | String | Status remark |
| signType | String | Verification method (MD5) |
| sign | String | Signature result |
Order Status1 Pending · 2 Success · 4 Refunded · 5 Failed
Payment Types1 Nagad · 2 Bkash · 3 Rocket · 101 Nagad Personal · 102 Bkash Personal