Brief Description
- 用户充值订单查询
Solicited Message
Request URL
javascripthttps://www.xxx.com/h5/deposit_queryRequest 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 CreateRechargeParams { merchant_no: string order_no: string time: string sign: string } // 发起充值请求 async function createRechargeOrder(params: CreateRechargeParams) { try { const response = await axios.post('https://api.example.com/h5/deposit_query', params) console.log('Recharge 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 createRechargeOrder({ merchant_no: 'M1234567890', order_no: 'ORD20250425001', time: Date.now().toString(), sign: 'your_generated_signature_here' })
Request Parameter List
Parameter Name Required Type explain merchant_no ✅ string merchant identification number order_no ✅ string Merchant Order Number time ✅ string timestamp sign ✅ string sign
Response Message
Response Example
json
{
"code": "0",
"msg": "",
"data": {
"order_no":"asdfasdfasdfasdf",
"amount":"100",
"status":"pending",//pending,success
"trade_no":"sadfasdfqefasdfasdf",
"trade_time":"2014-04-23 12:11:22"
}
}Response parameter list
Parameter Name Type explain order_no string Order ID amount string Order amount status string order status trade_no string Platform order number trade_time string Order completion time(Y-m-d H:i:s)
remark
- For more questions regarding 用户充值订单查询接口 , please contact the administrator.
- Date updated: 2024-04-24