TarsPay_EN
  1. deposit
TarsPay_EN
Pakistan🇵🇰
  • 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#

Amount collection rules
Agency collection channelsMinimum single transactionMaximum single transaction
jazzcash10050,000
easypaisa10050,000

Request

Header Params

Body Params application/json

Example
{
    "amount": "20",
    "currency": "PKR",
    "customerContact": "03001234567",
    "customerEmail": "caizhuch1199w@gmail.com",
    "customerName": "GDW",
    "mchNo": "M1677225721",
    "mchOrderNo": "BJST73520250300058",
    "notifyUrl": "http://47.241.33.220:8896/tarspay/notify",
    "returnUrl": "https://47.241.33.220:8896/notify/return",
    "wayCode": "easypaisa"
}

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:  0221f85d6a09945403ef161b5200f4df152935a748ce2b9f291bb2d351d709b6a0' \
--header 'X-API-NONCE:  1704250498993' \
--header 'X-API-SIGNAT URE: 304502203968d3ce6a4c275816fbf71feee790ca4dfb192df71d49e10d631436 8470bf79022100b9cacaf8df3fd302bd408b2f0e75c9a54069b3994748b6a31aac1dd3928ff0a6' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "20",
    "currency": "PKR",
    "customerContact": "03001234567",
    "customerEmail": "caizhuch1199w@gmail.com",
    "customerName": "GDW",
    "mchNo": "M1677225721",
    "mchOrderNo": "BJST73520250300058",
    "notifyUrl": "http://47.241.33.220:8896/tarspay/notify",
    "returnUrl": "https://47.241.33.220:8896/notify/return",
    "wayCode": "easypaisa"
}'

Responses

🟢200成功
application/json
Body

Example
{
    "code": 0,
    "data": {
        "amount": "20",
        "body": "Test",
        "countryCode": "pk",
        "currency": "PKR",
        "customerContact": "3001234567",
        "expiredTime": 1742282136,
        "mchOrderNo": "BJST648202503000207",
        "orderState": 1,
        "originalAccountNumber": "123456789",
        "payDataType": "payurl",
        "payOrderId": "P1901532855833436162",
        "payUrl": "https://checkout-s2.pk-bpay.com/pay-v2.php/630848dff40a0f72ce09e448084acdc954b441a3c04b2",
        "payWays": {
            "ewallet": [
                {
                    "countryCode": "pk",
                    "createdAt": 0,
                    "id": 114,
                    "payWay": "easypaisa",
                    "payWayLogo": "https://defipay.oss-ap-southeast-1.aliyuncs.com/easypaisa.png",
                    "payWayType": "ewallet",
                    "skipMode": 2,
                    "state": 1,
                    "updatedAt": 0
                }
            ]
        },
        "requestUrl": "https://www.tarspay.com/notify/return",
        "subject": "Buycar"
    },
    "msg": "SUCCESS",
    "sign": ""
}
Modified at 2025-05-27 11:03:55
Previous
Attachment Code Table
Next
Query deposit order status
Built with