余额查询 - nxtele/http-api-document GitHub Wiki
简要描述:
- 客户余额获取
请求方式:
- URL:
http://api.nxcloud.com/api/common/getBalance
- Method:
POST
- Content-Type:
application/x-www-form-urlencoded
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appkey | 是 | string | 任意启用的短信应用appkey |
secretkey | 是 | string | 任意启用的短信应用secretkey |
请求示例
curl --location --request POST 'http://api.nxcloud.com/api/common/getBalance' \
--data-urlencode 'appkey=asdf' \
--data-urlencode 'secretkey=qwer'
返回示例
{"code": "0","balance": "3788.32", "credit_balance":"500"}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | string | 结果编码 |
balance | string | 余额 |
credit_balance | string | 信用额度 |
备注
- 错误代码
code | 说明 |
---|---|
0 | 请求成功 |