WX Pay EN

WX Pay Document


ORDER LIST

<p><strong>Request location:</strong> </p> <ul> <li><code>/orderquery</code></li> </ul> <p><strong>Request parameters:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">Parameter name</th> <th style="text-align: left;">Status</th> <th style="text-align: left;">Parameters</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Merchant ID</td> <td style="text-align: left;">Str(5)</td> <td style="text-align: left;">uid</td> <td>Merchant ID</td> </tr> <tr> <td style="text-align: left;">Timestamp</td> <td style="text-align: left;">Int</td> <td style="text-align: left;">timestamp</td> <td>GMT timestamp</td> </tr> <tr> <td style="text-align: left;">Digital signature</td> <td style="text-align: left;">Str(32)</td> <td style="text-align: left;">sign</td> <td>32-bit uppercase MD5 signature value</td> </tr> </tbody> </table> <h2>Specific search parameters:</h2> <ul> <li>According to different usage methods, please add the following parameters by yourself and add them to the above parameters.</li> <li>But if you don't use it, please don't bring this parameter.</li> </ul> <table> <thead> <tr> <th style="text-align: left;">Parameter name</th> <th style="text-align: left;">Status</th> <th style="text-align: left;">Parameters</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Order number</td> <td style="text-align: left;">Str(20)</td> <td style="text-align: left;">orderid</td> <td>Order number generated by the merchant platform</td> </tr> <tr> <td style="text-align: left;">Page number</td> <td style="text-align: left;">Int</td> <td style="text-align: left;">page</td> <td>At most 20 data will be returned each time, and the page number will be switched if it exceeds</td> </tr> <tr> <td style="text-align: left;">Rows</td> <td style="text-align: left;">Int</td> <td style="text-align: left;">row</td> <td>The maximum number of rows of data returned each time allows 1 to 1000 rows</td> </tr> <tr> <td style="text-align: left;">Start time</td> <td style="text-align: left;">Str(19)</td> <td style="text-align: left;">start</td> <td>The start time of the query interval</td> </tr> <tr> <td style="text-align: left;">End Time</td> <td style="text-align: left;">Str(19)</td> <td style="text-align: left;">end</td> <td>The cut-off time of the query interval</td> </tr> <tr> <td style="text-align: left;">Time condition</td> <td style="text-align: left;">Int</td> <td style="text-align: left;">date_type</td> <td>Search according to different time types, <strong>0: according to the order creation time, 1: according to the modification time</strong></td> </tr> </tbody> </table> <p><strong>Return Demo</strong></p> <pre><code>{ "status": 10000, "result": { "totalCount": "14", "page": "1", "row": "1", "count": 1, "data": { "0": { "transactionid": "1637571701769611008", "orderid": "992357165692361129645", "channel": "923", "amount": "50000.00", "real_amount": "49000.00", "status": "1", "bdate": "2021-11-22 17:01:32", "cdate": "2021-11-22 17:15:10" } } }, "sign": "********" }</code></pre> <h2>Back to parameters</h2> <table> <thead> <tr> <th style="text-align: left;">Parameter name</th> <th style="text-align: left;">Status</th> <th style="text-align: left;">Parameters</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Status code</td> <td style="text-align: left;">Int</td> <td style="text-align: left;">status</td> <td>For parameter values, check the attachment &quot;Status Code&quot;</td> </tr> <tr> <td style="text-align: left;">Reply information</td> <td style="text-align: left;">object</td> <td style="text-align: left;">result</td> <td>Return a JSON string when the status code is &quot;successful&quot;</td> </tr> <tr> <td style="text-align: left;">Digital signature</td> <td style="text-align: left;">Str(32)</td> <td style="text-align: left;">sign</td> <td>32-bit uppercase MD5 signature value</td> </tr> </tbody> </table> <p><strong>Reply information</strong> </p> <table> <thead> <tr> <th style="text-align: left;">Parameter name</th> <th style="text-align: left;">Status</th> <th style="text-align: left;">Parameters</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">Transaction number</td> <td style="text-align: left;">Long</td> <td style="text-align: left;">transactionid</td> <td>Unique order number generated by the product</td> </tr> <tr> <td style="text-align: left;">Order number</td> <td style="text-align: left;">Str(32)</td> <td style="text-align: left;">orderid</td> <td>Unique order number generated by the merchant platform</td> </tr> <tr> <td style="text-align: left;">Payment Type/ Paid on your behalf Type</td> <td style="text-align: left;">Int</td> <td style="text-align: left;">channel</td> <td>For parameter values, check the appendix &quot;Payment Type&quot; and &quot; Paid on your behalf Type&quot;</td> </tr> <tr> <td style="text-align: left;">Amount</td> <td style="text-align: left;">Float</td> <td style="text-align: left;">amount</td> <td>Amount submitted by the merchant, in the range of two decimal places</td> </tr> <tr> <td style="text-align: left;">Real amount</td> <td style="text-align: left;">Float</td> <td style="text-align: left;">real_amount</td> <td>The actual amount of the merchant process, the range is two decimal places</td> </tr> <tr> <td style="text-align: left;">Status</td> <td style="text-align: left;">int</td> <td style="text-align: left;">status</td> <td>0: Not processed 1: The transaction is successful 2: Processing 3: Transaction failed 4: Operation failed 5: Bill of lading failed</td> </tr> <tr> <td style="text-align: left;">Founding time</td> <td style="text-align: left;">Str(19)</td> <td style="text-align: left;">bdate</td> <td>Transaction order creation time</td> </tr> <tr> <td style="text-align: left;">Modified time</td> <td style="text-align: left;">Str(19)</td> <td style="text-align: left;">cdate</td> <td>Last modification time of transaction order</td> </tr> </tbody> </table> <p><strong>Friendly remainder</strong> </p> <ul> <li>If only uid, timestamp and sign are added, the first page of the hour and 20 data will be searched by default</li> <li>Only adding orderid (in the case of non-empty string) will ignore the parameters of time, page number, and number of rows (just bring in uid, timestamp, sign, orderid), and only search for specific transaction orders</li> <li>All time-related formats are:(Y-m-d h:i:s)2020-01-01 00:00:00</li> <li>The reply data in the return parameter is composed of ordered objects.</li> </ul>

页面列表

ITEM_HTML