获取余额

检查余额

此 API 用于检查商户余额。它需要一个 key 参数,其中包含 merchant_code

查询参数

  • Name
    key
    Type
    string
    required
    Description

    通过 参数 使用 API 密钥和 API 密钥加密生成的 Key。

cURL
curl --request GET \
--url https://staging.s88pay.net/api/v1/balance/{merchant_code} \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
}'
Processing request...

参数

  • Name
    merchant_code
    Type
    string
    required
    Description
    商户代码。
参数对象
{
"merchant_code": "ABC123"
}

这些参数必须在通过 key 查询发送之前进行 加密


返回

返回一个交易状态对象。如果发生错误,此调用返回 错误

响应
{
"currency_name": "Korean Won",
"currency_code": "KRW",
"balance": "2033968.739",
"frozen_balance": "1997683.660",
"available_balance": "36285.079"
}