3社保流水.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8">
  5. <style type="text/css">
  6. <!--
  7. @import url(md.css);
  8. -->
  9. </style>
  10. </head>
  11. <body>
  12. <h3>社保流水</h3>
  13. <h1>1. 流水列表接口</h1>
  14. <blockquote>
  15. <p>流水列表数据,共有两个接口,未付款的接口和已付款的接口。</p>
  16. </blockquote>
  17. <h3>1.1 未付款的接口请求</h3>
  18. <ul>
  19. <li><p>URI</p>
  20. <pre><code>/sbl/order/wage/list0/v1 POST //未付款的接口
  21. </code></pre></li>
  22. <li><p>未付款的接口参数:</p>
  23. <pre><code>String key; // 当前用户的登录标识
  24. </code></pre></li>
  25. </ul>
  26. <h3>1.2 已付款的接口请求</h3>
  27. <ul>
  28. <li><p>URI</p>
  29. <pre><code>/sbl/order/wage/list1/v1 POST //已付款的接口
  30. </code></pre></li>
  31. <li><p>已付款的接口参数:</p>
  32. <pre><code>String key; // 当前用户的登录标识
  33. </code></pre></li>
  34. </ul>
  35. <h3>1.3 响应数据是一样的</h3>
  36. <blockquote>
  37. <p>返回登录是否有效; <br>
  38. 返回流水的列表数据。</p>
  39. </blockquote>
  40. <ul>
  41. <li><p>响应状态码</p>
  42. <pre><code>200 处理成功,带有列表数据.
  43. 10004 登录超时.
  44. </code></pre></li>
  45. <li><p>响应字段</p>
  46. <pre><code>/** 单号 */
  47. private String order_no;
  48. /** 核算(操作)月份 */
  49. private int opt_month;
  50. /** 服务费 */
  51. private double charge;
  52. /** 流水金额 */
  53. private double wage;
  54. /** 支付金额 */
  55. private double total_fee;
  56. /** 最晚支付日期 */
  57. private String pay_date;
  58. /** 支付状态 */
  59. private int pay_status;
  60. /** 生成时间 */
  61. private String gen_time;
  62. /** 支付时间 */
  63. private String pay_time; // 用户付款成功后,才有时间值
  64. /** 返还时间 */
  65. private String hf_time; // 专员做了返还,才有时间值
  66. /** 参保用户的ID */
  67. private int sbu_id;
  68. /** 参保用户 */
  69. private String uname;
  70. /** 城市名称 */
  71. private String city;
  72. </code></pre></li>
  73. <li><p>支付状态码 (pay_status) </p>
  74. <pre><code>1 待支付
  75. 2 支付成功
  76. 4 返还成功
  77. 11 全额退款
  78. </code></pre></li>
  79. <li><p>响应数据范例</p>
  80. <pre><code>{
  81. &quot;msg&quot;: &quot;&quot;,
  82. &quot;data&quot;: [{
  83. &quot;order_no&quot;: &quot;0110010000000023201812&quot;,
  84. &quot;opt_month&quot;: 201812,
  85. &quot;charge&quot;: 35.0,
  86. &quot;wage&quot;: 2900.0,
  87. &quot;total_fee&quot;: 2935.0,
  88. &quot;pay_date&quot;: &quot;2018-12-14&quot;,
  89. &quot;pay_status&quot;: 2,
  90. &quot;gen_time&quot;: &quot;2018-12-11 16:26:16&quot;,
  91. &quot;pay_time&quot;: &quot;2018-12-11 17:26:16&quot;,
  92. &quot;hf_time&quot;: null,
  93. &quot;sbu_id&quot;: 23,
  94. &quot;uname&quot;: &quot;囡囡&quot;,
  95. &quot;city&quot;: &quot;广州&quot;
  96. }],
  97. &quot;code&quot;: 200
  98. }
  99. </code></pre></li>
  100. </ul>
  101. <hr>
  102. <h1>2. 流水单支付接口</h1>
  103. <blockquote>
  104. <p>在流水列表数据里,传递 <code>order_no</code> 字段的值到接口,获取支付前的数据。</p>
  105. </blockquote>
  106. <h3>2.1 接口请求</h3>
  107. <ul>
  108. <li><p>URI</p>
  109. <pre><code>/sbl/order/wage/pay/v1 POST
  110. </code></pre></li>
  111. <li><p>接口参数:</p>
  112. <pre><code>String key; // 当前用户的登录标识
  113. String order_no; // 流水单号
  114. int pay_channel; // 支付渠道标识(类同社保支付)
  115. </code></pre></li>
  116. </ul>
  117. <h3>2.2 响应数据</h3>
  118. <blockquote>
  119. <p>响应支付准备的数据,分 微信 与 支付宝</p>
  120. </blockquote>
  121. <ul>
  122. <li><p>支付宝下单的响应</p>
  123. <pre><code> {
  124. &quot;msg&quot;: &quot;&quot;,
  125. &quot;data&quot;: &quot;partner=\&quot;2088021344618397\&quot;
  126. &amp;seller_id=\&quot;service@shanp.com\&quot;
  127. &amp;out_trade_no=\&quot;W11524372652587\&quot;
  128. &amp;subject=\&quot;“我的社保-” 支付\&quot;
  129. &amp;body=\&quot;社保流水&quot;
  130. &amp;total_fee=\&quot;0.04\&quot;
  131. &amp;notify_url=\&quot;http://192.168.2.199/pay/ali/app/notify/v1\&quot;
  132. &amp;service=\&quot;mobile.securitypay.pay\&quot;
  133. &amp;payment_type=\&quot;1\&quot;
  134. &amp;_input_charset=\&quot;utf-8\&quot;
  135. &amp;it_b_pay=\&quot;30m\&quot;
  136. &amp;sign=\&quot;this is sign str base64\&quot;
  137. &amp;sign_type=\&quot;RSA2\&quot;&quot;,
  138. &quot;code&quot;: 200
  139. }
  140. </code></pre></li>
  141. <li><p>微信支付下单的响应</p>
  142. <pre><code class="json">{<span class="attribute">
  143. "data</span>": <span class="value">{<span class="attribute">
  144. "order_no</span>": <span class="value"><span class="string">"W11524372652587"</span></span>,<span class="attribute">
  145. "wx</span>": <span class="value">{<span class="attribute">
  146. "appid</span>": <span class="value"><span class="string">"wxb7ae6e9f32e0bdb2"</span></span>,<span class="attribute">
  147. "noncestr</span>": <span class="value"><span class="string">"08xVtTSFCuYsZmhF"</span></span>,<span class="attribute">
  148. "timestamp</span>": <span class="value"><span class="string">"1441879029"</span></span>,<span class="attribute">
  149. "partnerid</span>": <span class="value"><span class="string">"1268473701"</span></span>,<span class="attribute">
  150. "prepayid</span>": <span class="value"><span class="string">"wx201509101757102b1fd039c50530073556"</span></span>,<span class="attribute">
  151. "sign</span>": <span class="value"><span class="string">"6F2371A7C9917D866485C5E7BA97D1DB"</span></span>,<span class="attribute">
  152. "package</span>": <span class="value"><span class="string">"Sign=WXPay"</span>
  153. }</span>,<span class="attribute">
  154. "msg</span>": <span class="value"><span class="string">""</span></span>,<span class="attribute">
  155. "code</span>": <span class="value"><span class="number">200</span>
  156. }
  157. </span></span></span></span></span></code></pre></li>
  158. </ul>
  159. <hr>
  160. <script src="md.js"></script>
  161. </body>
  162. </html>