Skip to content

Brief Description

  • 代付下单查询

Solicited Message

  • Request URL

    javascript
    https://www.xxx.com/gateway/withdraw/query
  • Request Specification

    Basic Information

    • Interface Protocol:HTTPS
    • Data Format:application/json
    • Request Method:POST
  • Request Example

    typescript
    
    // typescript + axios Request Example
    
    import axios from 'axios'
    
    // Define the types of request parameters
    interface CreateOrderParams {
      merchant_no: string
      order_no: 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/gateway/withdraw/query', 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',
      order_no: 'ORD1234567890',
      time: Date.now().toString(),
      sign: 'your_generated_signature_here'
    })

  • Request Parameter List

    Parameter NameRequiredTypeexplain
    merchant_nostringmerchant identification number
    order_nostringMerchant Order Number
    timestringtimestamp
    signstringsign

Response Message

  • Response Example

json

{
  "code": "0",
  "msg": "",
  "data": {
    "order_no": "1731681331",
    "amount": "200.00",
    "status": "success",
    "trade_no": "RR241115223531937981",
    "trade_time": "2024-11-15 22:36:21"
  }
}

  • Response parameter list

    Parameter NameTypeexplain
    order_nostringOrder ID
    amountstringOrder amount
    statusstringorder status
    trade_nostringPlatform order number
    trade_timestringOrder completion time(Y-m-d H:i:s)


remark

  • For more questions regarding 代付下单查询接口 , please contact the administrator.
  • Date updated: 2024-04-24