Brief Description
- 获取钱包信息接口
Solicited Message
Request URL
javascripthttps://www.xxx.com/h5/member_infoRequest 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' // Define the types of request parameters interface CreateOrderParams { merchant_no: string member_id: string time: string sign: string } // Example function: Send order creation request async function createOrder(params: CreateOrderParams) { try { const response = await axios.post('https://api.example.com/h5/member_info', params) console.log('Success:', response.data) return response.data } catch (error: any) { if (error.response) { // The error response returned by the server side console.error('API Error:', error.response.data) } else { // Network error or other issues console.error('Request Failed:', error.message) } throw error } } // Example call createOrder({ merchant_no: 'M1234567890', member_id: 'user_001', time: Date.now().toString(), sign: 'your_generated_signature_here' })
Request Parameter List
Parameter Name Required Type explain merchant_no ✅ string merchant identification number member_id ✅ string user ID time ✅ string timestamp sign ✅ string sign
Response Message
Response Example
json
{
"code": "0",
"msg": "",
"data": {
"activated": 1,
"balance":100,
"account":"a3fws93jfejfj3493f9jfd"
}
}Response parameter list
Parameter Name Type explain activated ✅ string balance ✅ string account ✅ string
remark
- For more questions regarding 获取钱包信息接口 , please contact the administrator.
- Date updated: 2024-04-24