# Inquiry Order List

Interface should be called on the server side, seeHattori API

# Interface Dxplaination

# Interface name

queryOrderList

# Functional description

  • Service providers can query the order list of purchased goods through this interface.

# Calling mode

# HTTPS call


POST https://api.weixin.qq.com/wxa/charge/service-provider/order/query_list?access_token=ACCESS_TOKEN 

# Request parameters

attribute type Required Introductions
access_Token string yes Interface invokes the certificate, which is URL Parameters, non Body Parameters. access_Token is available throughgetAccessTokenInterface is obtained.
spuId string yes CommoditySPU ID
offset number yes Paging offset, starting with 0
limit number yes Maximum number of pages, 20

# Return parameters

attribute type Introductions
errcode number Error code
errmsg string Error message
初始值 number Total number of results of this query
orderList array List of orders, for specific definitions seeOrder defined in the Inquiry Order Details interface

# Call Example

Example Dxplaination: HTTPS calls

# Sample Request Data

POST https://api.weixin.qq.com/wxa/charge/service-provider/order/query_list?access_token=ACCESS_TOKEN
{
  "offset": 0,
  "limit": 10,
  "spuId": "10000000"
} 

# Return Data Example

{
  "errcode": 0,
  "orderList": [
    {
      "orderId": "DD2981741311549200000",
      "status": 2,
      "createTime": 1687265841964,
      "updateTime": 1687267671475,
      "orderPrice": "1",
      "payInfo": {
        "applyPayTime": 1687265845,
        "finishPayTime": 1687265856
      },
      "orderProductInfo": {
        "spSpuId": "10000111",
        "spSkuId": "20000176",
        "skuCnt": 1,
        "spBizId": 100100,
        "spuName": spu name",
        "skuName": sku name",
        "validityBeginTime": 1687265856,
        "validity": 1718801856
      },
      "invoiceInfo": {
        "invoiceStatus": 2,
        "invoiceApplyTime": 1687265870
      },
      "usage": {
        "used": "0",
        初始值 "1000"
      }
    }
  ],
  "total": 6
}

# Error code

Error code Error code Solutions
10120002 Parameter error Check the parameters
10120405 Method not available Use the correct method to request against the document