TarsPay_EN
  1. withdraw
TarsPay_EN
Bangladesh🇧🇩
  • Indonesia🇮🇩
  • India🇮🇳
  • Thailand🇹🇭
  • Philippines🇵🇭
  • Malaysia🇲🇾
  • Vietnam🇻🇳
  • Egypt🇪🇬
  • Bangladesh🇧🇩
  • Kenya🇰🇪
  • Pakistan🇵🇰
  • Brazil🇧🇷
  • Mexico🇲🇽
  • Ban_TEST
  • Access Guide
  • Core Business Process Description
  • Attachment Code Table
  • deposit
    • Create a deposit order
      POST
    • Query deposit order status
      POST
    • Query TrxId
      POST
    • Reprocess TrxId
      POST
  • withdraw
    • Create withdraw order
      POST
    • Query withdraw order
      POST
  • account
    • Query balance
      POST
  • CallBack
    • Callback notification interface (customized by the merchant)
      POST
  1. withdraw

Create withdraw order

POST
/api/payOut/unifiedOrder

Quota Information#

Withdraw Channel Rules*
wayCodeMinimum Single TransactionMaximum Single Transaction
EWALLET_BKASH10050,000
EWALLET_NAGAD10050,000

Request

Header Params
X-API-KEY
string 
optional
the public key applied for by the merchant backend
Example:
0221f85d6a09945403ef161b5200f4df152935a748ce2b9f291bb2d351d709b6a0
X-API-NONCE
string 
optional
the system timestamp is accurate to milliseconds
Example:
1704182130212
X-API-SIGNA TURE
string 
required
signature
Example:
304402200f978377ba9538594d77bb82e4eacabf41dbe500a6ccf8e4b31114e 257ff60d102204fffdad3331cd90493f6ff16a045508d184d567f1aabf1debd2a8d8d4b2345d0
Body Params application/json
mchNo
string 
Merchant number
required
mchOrderNo
string 
Merchant Order Number (Guaranteed Unique)
required
wayCode
string 
wayCode
required
EWALLET_BKASH、EWALLET_NAGAD
currency
string 
Currency type
required
BDT
amount
string 
Amount
required
Must be an integer
notifyUrl
string 
Result notification address
required
walletId
string 
Wallet ID
required
Wallet ID, format: starts with 0, total of 11 digits
Example
{
  "amount": "100",
  "currency": "BDT",
  "mchNo": "M1688443982",
  "mchOrderNo": "BJL7220230300929",
  "notifyUrl": "http://www.yourcompany.com/notify",
  "wayCode": "EWALLET_BKASH",
  "walletId": "01123456789"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/payOut/unifiedOrder' \
--header 'X-API-KEY:  0221f85d6a09945403ef161b5200f4df152935a748ce2b9f291bb2d351d709b6a0' \
--header 'X-API-NONCE:  1704182130212' \
--header 'X-API-SIGNA TURE: 304402200f978377ba9538594d77bb82e4eacabf41dbe500a6ccf8e4b31114e 257ff60d102204fffdad3331cd90493f6ff16a045508d184d567f1aabf1debd2a8d8d4b2345d0' \
--header 'Content-Type: application/json' \
--data-raw '{
  "amount": "100",
  "currency": "BDT",
  "mchNo": "M1688443982",
  "mchOrderNo": "BJL7220230300929",
  "notifyUrl": "http://www.yourcompany.com/notify",
  "wayCode": "EWALLET_BKASH",
  "walletId": "01123456789"
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
data
object 
required
mchOrderNo
string 
Merchant Order Number
required
payOrderId
string 
Platform Order Number
required
msg
string 
required
Example
{
    "code": 0,
    "data": {
        "mchOrderNo": "MJL7220230300929",
        "payOrderId": "P1681112064487976961"
    },
    "msg": "SUCCESS",
    "sign": "304502203526e91debfaa0a85d8c7746844502dc989d7b4fde24d68bce8443b1c5e87cc0022100f7cbedee2886ab57919d3bea1502536ede930afb7c78e212626ba3812794246e"
}
Previous
Reprocess TrxId
Next
Query withdraw order
Built with