TarsPay_EN
  1. account
TarsPay_EN
Pakistan🇵🇰
  • 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
  • withdraw
    • Create withdraw order
      POST
    • Query withdraw order
      POST
  • account
    • Query balance
      POST
  • CallBack
    • Callback notification interface (customized by the merchant)
      POST
  1. account

Query balance

POST
/api/balanceInfo

Request

Header Params
X-API-KEY
string 
required
the public key applied for by the merchant backend
Example:
0221f85d6a09945403ef161b5200f4df152935a748ce2b9f291bb2d351d709b6a0
X-API-NONCE
string 
required
the system timestamp is accurate to milliseconds
Example:
1704250498993
X-API-SIGNAT URE
string 
required
signature
Example:
304502203968d3ce6a4c275816fbf71feee790ca4dfb192df71d49e10d631436 8470bf79022100b9cacaf8df3fd302bd408b2f0e75c9a54069b3994748b6a31aac1dd3928ff0a6
Body Params application/json
mchNo
string 
Merchant ID
required
Example
{
    "mchNo": "M1688443982"
}

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/balanceInfo' \
--header 'X-API-KEY:  0221f85d6a09945403ef161b5200f4df152935a748ce2b9f291bb2d351d709b6a0' \
--header 'X-API-NONCE:  1704250498993' \
--header 'X-API-SIGNAT URE: 304502203968d3ce6a4c275816fbf71feee790ca4dfb192df71d49e10d631436 8470bf79022100b9cacaf8df3fd302bd408b2f0e75c9a54069b3994748b6a31aac1dd3928ff0a6' \
--header 'Content-Type: application/json' \
--data-raw '{
    "mchNo": "M1688443982"
}'

Responses

🟢200成功
application/json
Body
code
integer 
required
data
object 
required
machNo
string 
Merchant ID
required
availableAmount
string 
Available Balance
required
frozenAmount
string 
Freeze Balance
required
msg
string 
required
Example
{
    "code": 0,
    "data": {
        "availableAmount": "11783",
        "frozenAmount": "0",
        "mchNo": "M1688443982"
    },
    "msg": "SUCCESS"
}
Previous
Query withdraw order
Next
Callback notification interface (customized by the merchant)
Built with