【208】取打款历史记录
<p>[TOC]</p>
<h5>接口状态</h5>
<ul>
<li><code>正常</code></li>
</ul>
<h5>框架版本</h5>
<ul>
<li><code>≥ 2.2.8.0</code></li>
</ul>
<h5>更新时间</h5>
<ul>
<li><code>2025/05/31</code></li>
</ul>
<h5>调用额度</h5>
<ul>
<li><code>免额度</code></li>
</ul>
<h5>简要描述</h5>
<ul>
<li>取打款历史记录</li>
</ul>
<h5>DLL调用例子</h5>
<pre><code>Api_GetPaymentHistory(&quot;$userNick$&quot;,&quot;2218165087899&quot;,1,10)</code></pre>
<h5>易语言模块调用例子</h5>
<pre><code>SaiNiu.Api.取打款历史记录(&quot;$userNick$&quot;,&quot;2218165087899&quot;,1,10)</code></pre>
<h5>POST调用例子</h5>
<pre><code>http://127.0.0.1:3030/SaiNiuApi/Api</code></pre>
<pre><code>&amp;post=GetPaymentHistory&amp;data={&quot;userNick&quot;:&quot;$userNick$&quot;,&quot;buyurUid&quot;:&quot;2218165087899&quot;,&quot;pageNo&quot;:1,&quot;pageSize&quot;:10}</code></pre>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">是否必填</th>
<th style="text-align: left;">说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userNick</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">千牛账号,为方便测试$userNick$表示取随机队列账号</td>
<td>tb123456</td>
</tr>
<tr>
<td style="text-align: left;">buyurUid</td>
<td style="text-align: left;">文本型</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">买家Uid</td>
<td>2218165087899</td>
</tr>
<tr>
<td style="text-align: left;">pageNo</td>
<td style="text-align: left;">整数型</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">第N页 默认1</td>
<td>1</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">整数型</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">每页数量,默认10</td>
<td>10</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{&quot;code&quot;:200,&quot;data&quot;:{&quot;errorCode&quot;:0,&quot;result&quot;:{&quot;totalCount&quot;:9,&quot;transferSendRecordList&quot;:[{&quot;amount&quot;:12,&quot;amountToYuan&quot;:&quot;0.12&quot;,&quot;outTransactionId&quot;:&quot;6bc043ce-b780-c2b0-553b-39a1569260cf&quot;,&quot;customSendType&quot;:&quot;退差价&quot;,&quot;outPayId&quot;:&quot;20250522020070011500340011122037&quot;,&quot;notes&quot;:&quot;钱款已入账支付宝,请查收&quot;,&quot;encryptReceiverId&quot;:&quot;RAzN8HWVGW5aSRgf1gN6sm5MDWzncVLGcqnM3aebaJB4mDKdE7c&quot;,&quot;sendType&quot;:1,&quot;orderAmountToYuan&quot;:&quot;&quot;,&quot;gmtCreate&quot;:&quot;2025-05-22 00:31:00&quot;,&quot;receiverAlipayAccount&quot;:&quot;180******40&quot;,&quot;status&quot;:&quot;成功&quot;,&quot;receiverNick&quot;:&quot;t***&quot;,&quot;recordId&quot;:10118991015863,&quot;subAccountName&quot;:&quot;tb9403060_2011&quot;},{&quot;amount&quot;:1,&quot;amountToYuan&quot;:&quot;0.01&quot;,&quot;customSendType&quot;:&quot;退差价&quot;,&quot;orderId&quot;:&quot;2243857621150089978&quot;,&quot;notes&quot;:&quot;钱款已入账支付宝,请查收&quot;,&quot;encryptReceiverId&quot;:&quot;RAzN8HWVGW5aSRgf1gN6sm5MDWzncVLGcqnM3aebaJB4mDKdE7c&quot;,&quot;sendType&quot;:1,&quot;orderAmountToYuan&quot;:&quot;5&quot;,&quot;gmtCreate&quot;:&quot;2024-08-01 15:41:19&quot;,&quot;orderAmount&quot;:500,&quot;outPayId&quot;:&quot;20240801020070011500340099371766&quot;,&quot;outTransactionId&quot;:&quot;04d1d444-0164-4798-bb90-c408b77349b9&quot;,&quot;receiverAlipayAccount&quot;:&quot;180******40&quot;,&quot;status&quot;:&quot;成功&quot;,&quot;receiverNick&quot;:&quot;t***&quot;,&quot;recordId&quot;:10086827085409,&quot;remark&quot;:&quot;退差&quot;,&quot;subAccountName&quot;:&quot;tb9403060_2011&quot;}]}},&quot;ret&quot;:[&quot;SUCCESS::调用成功&quot;]}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">整数型</td>
<td>返回结果,成功=200,失败≠200</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">文本型</td>
<td>调用结果</td>
</tr>
<tr>
<td style="text-align: left;">reg</td>
<td style="text-align: left;">文本型</td>
<td>结果说明,调用成功或失败原因</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>