TarsPay_EN
  1. withdraw
TarsPay_EN
India🇮🇳
  • 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
    • UTR query
      POST
    • Utr replenishment order
      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

Limit information#

Withdraw amount rules
Withdraw channelMinimum single transactionMaximum single transaction
UPI10050,000

Request

Header Params
X-API-KEY
string 
required
The public key applied by the merchant backend
Example:
03f7cd24b7c3cf26aad23c15eb7b36a8ed35d9964d03d1e96da6214c855dd29c32
X-API-NONCE
string 
required
System timestamp accurate to milliseconds
Example:
1704334766256
X-API-SIGNATURE
string 
required
signature
Example:
30440220034dfcd0eba023c19727b252efa1802deed4c7a61d0d92881db7664aaf5b20030220599aff1356193421f88a12028c14c9095ef3b3adbf9c1f4b4f201a88216418fe
Body Params application/json
mchNo
string 
Merchant number
required
mchOrderNo
string 
Merchant order number (guaranteed to be unique)
required
wayCode
string 
Payment code
required
Fixed to fill in UPI
currency
string 
Currency
required
Fixed to fill in INR
amount
string 
Amount
required
notifyUrl
string 
Result notification address
required
customerName
string 
User name
required
customerEmail
string 
User Email
required
customerContact
string 
User Mobile Phone
required
customerAccountNumber
string 
User Payment Account
required
Bank Card Account
ifsc
string 
ifsc
required
address
string  | null 
User Address
optional
bankName
string  | null 
Bank Name
optional
Example
{
    "address": "Mumbai",
    "amount": "100",
    "bankName": "bank of maharashtra",
    "currency": "INR",
    "customerAccountNumber": "123212312312312",
    "customerContact": "9111214256",
    "customerEmail": "g762646676@126.com",
    "customerName": "Sagar Uttam Chavan",
    "ifsc": "ABCD0000000",
    "mchNo": "M1688443660",
    "mchOrderNo": "YDCS202211299",
    "notifyUrl": "https://payment-test.tarspay.com/notify",
    "wayCode": "UPI"
}

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: 03f7cd24b7c3cf26aad23c15eb7b36a8ed35d9964d03d1e96da6214c855dd29c32' \
--header 'X-API-NONCE: 1704334766256' \
--header 'X-API-SIGNATURE: 30440220034dfcd0eba023c19727b252efa1802deed4c7a61d0d92881db7664aaf5b20030220599aff1356193421f88a12028c14c9095ef3b3adbf9c1f4b4f201a88216418fe' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address": "Mumbai",
    "amount": "100",
    "bankName": "bank of maharashtra",
    "currency": "INR",
    "customerAccountNumber": "123212312312312",
    "customerContact": "9111214256",
    "customerEmail": "g762646676@126.com",
    "customerName": "Sagar Uttam Chavan",
    "ifsc": "ABCD0000000",
    "mchNo": "M1688443660",
    "mchOrderNo": "YDCS202211299",
    "notifyUrl": "https://payment-test.tarspay.com/notify",
    "wayCode": "UPI"
}'

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": "YDCS202211299",
        "payOrderId": "P1742732419094282242"
    },
    "msg": "SUCCESS",
    "sign": "304502207c262a5514291f0fba9c677b6e37b0a96a7d38c347ac8d83c1210e5f9cac6039022100c9e32cd82741f8b715972542ff0c4421e7a3873841f5d4012f9e0a7b2080c890"
}
Previous
Utr replenishment order
Next
Query withdraw order
Built with