Brief Description
- 余额查询接口
Solicited Message
Request URL
javascripthttps://www.xxx.com/gateway/balanceRequest Specification
Basic Information
- Interface Protocol:
HTTPS - Data Format:
application/json - Request Method:
POST
- Interface Protocol:
Request Example
typescript// typescript + axios Request Example import axios from 'axios' // 请求参数类型定义 interface CreateOrderParams { merchant_no: string time: string sign: string } // 创建订单请求 async function createOrder(params: CreateOrderParams) { try { const response = await axios.post('https://api.example.com/gateway/balance', params) console.log('Success:', response.data) return response.data } catch (error: any) { if (error.response) { console.error('API Error:', error.response.data) } else { console.error('Request Failed:', error.message) } throw error } } // Example call createOrder({ merchant_no: 'M1234567890', time: Date.now().toString(), sign: 'your_generated_signature_here' })
Request Parameter List
Parameter Name Required Type explain merchant_no ✅ string merchant identification number time ✅ string timestamp sign ✅ string sign
Response Message
Response Example
json
{
"code": "0",
"msg": "",
"data": {
"balance": "90062.0000",
"freeze": "1000.0000"
}
}Response parameter list
Parameter Name Type explain balance string User balance freeze string account frozen
remark
- For more questions regarding 余额查询接口 , please contact the administrator.
- Date updated: 2024-04-24