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

Create a deposit order

POST
/api/pay/unifiedOrder

Limit information#

Deposit amount rules
Deposit channelMinimum single transactionMaximum single transaction
BANK4030,000
EWALLET40500

Request

Header Params

Body Params application/json

Example
{
    "amount": "100",
    "currency": "MYR",
    "customerAccountNumber": "123456789",
    "customerContact": "13116709877",
    "customerEmail": "g13116709877@163.com",
    "customerName": "DW",
    "mchNo": "M1688457769",
    "mchOrderNo": "ML202211111111773",
    "notifyUrl": "http://47.241.33.220:8896/tarspay/notify",
    "returnUrl": "https://www.tarspay.com/notify/return",
    "wayCode": "CASHIER"
}

Request Code 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/pay/unifiedOrder' \
--header 'X-API-KEY: 03828e8e30fb0a705776e32302d7f54a8037ae3926220bbc19c588eedc3b26ec12' \
--header 'X-API-NONCE: 1704180814988' \
--header 'X-API-SIGNATURE: 304402207113128d16fc37707fdc8095b878e70d2d9799b4a14402a6244065a208a99968022004e1b9bead988594c715a40b5fc87642e0f738ff0f97c167c1cab20d5c5a3783' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "100",
    "currency": "MYR",
    "customerAccountNumber": "123456789",
    "customerContact": "13116709877",
    "customerEmail": "g13116709877@163.com",
    "customerName": "DW",
    "mchNo": "M1688457769",
    "mchOrderNo": "ML202211111111773",
    "notifyUrl": "http://47.241.33.220:8896/tarspay/notify",
    "returnUrl": "https://www.tarspay.com/notify/return",
    "wayCode": "CASHIER"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "code": 0,
    "data": {
        "amount": "130",
        "countryCode": "my",
        "currency": "MYR",
        "customerContact": "9843734111",
        "expiredTime": 1659320053,
        "mchOrderNo": "D1659318251029",
        "orderState": 1,
        "payDataType": "payurl",
        "payOrderId": "P1553919495852986369",
        "payUrl": "https://payment.tarspay.com/tarspayToC/#/order/in/P1553919495852986369",
        "payWays": {
            "PFX": [
                {
                    "countryCode": "my",
                    "payWay": "PFX",
                    "payWayLogo": "https://tarspay.oss-ap-southeast-1.aliyuncs.com/tarspay_v_1.0/upi.svg",
                    "payWayType": "bank",
                    "skipMode": 2
                }
            ]
        }
    },
    "msg": "SUCCESS",
    "sign": "304402203e74cff204c473a6fac79522065af5d62e603f3c0218110e8e09951e7b6e1c050220281a39dc609b1e347d0eddc6b9c717a98907606156ff62b0b2b4d4ddec745d12"
}
Modified at 2025-04-24 11:15:16
Previous
Attachment Code Table
Next
Query deposit order status
Built with