5.1 获取缴费链接(华农收银台缴费)
<p>[TOC]</p>
<p>请求模式:渠道方→华农阿凡达平台</p>
<p>接口描述:适用于保险公司收保费的场景</p>
<p>测试接口地址:<a href="https://porsche-avatar.chinahuanong.com.cn/avatar/general/payUrl">https://porsche-avatar.chinahuanong.com.cn/avatar/general/payUrl</a></p>
<p>生产接口地址:<a href="https://avatar.chinahuanong.com.cn/avatar/general/payUrl">https://avatar.chinahuanong.com.cn/avatar/general/payUrl</a></p>
<h3>请求头</h3>
<p><code>head</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>渠道代码</td>
<td>policySource</td>
<td>varchar</td>
<td>Y</td>
<td>保险公司分配给 渠道方的渠道编码</td>
</tr>
<tr>
<td>请求时间</td>
<td>reqTime</td>
<td>DateTime</td>
<td>Y</td>
<td>格式为:yyyy-MM-dd HH:mm:ss。</td>
</tr>
<tr>
<td>接口类型</td>
<td>interfaceType</td>
<td>varchar</td>
<td>Y</td>
<td>针对每个接口,使用接口的API信息</td>
</tr>
<tr>
<td>订单号</td>
<td>orderNo</td>
<td>varchar</td>
<td>Y</td>
<td>贯穿保单始终的订单号, 要求必须唯一,会进行幂等检查</td>
</tr>
<tr>
<td>唯一标识符</td>
<td>uuid</td>
<td>varchar</td>
<td>Y</td>
<td>单次请求唯一标识符,任一次请求不允许相同</td>
</tr>
</tbody>
</table>
<h3>请求体</h3>
<p><code>payInfo</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>投保单号</td>
<td>proposalNo</td>
<td>varchar</td>
<td>CY</td>
<td>保单唯一标识信息</td>
</tr>
<tr>
<td>支付成功跳转地址</td>
<td>redirectUrl</td>
<td>varchar</td>
<td>Y</td>
<td></td>
</tr>
<tr>
<td>支付失败条款地址</td>
<td>errorUrl</td>
<td>varchar</td>
<td>CY</td>
<td>如未传入 则失败时跳转到成功链接</td>
</tr>
<tr>
<td>首期扣款标识</td>
<td>deductFirstFlag</td>
<td>Boolean</td>
<td>CY</td>
<td>微信扣费、分期必传,不传默认为 true<br>true:签约并扣首期<br> false:只签约<br>(功能开发中)</td>
</tr>
<tr>
<td>微信openid</td>
<td>openId</td>
<td>varchar</td>
<td>CY</td>
<td>小程序支付必传</td>
</tr>
<tr>
<td>小程序appid</td>
<td>miniAppId</td>
<td>varchar</td>
<td>CY</td>
<td>小程序支付必传</td>
</tr>
<tr>
<td>小程序标识</td>
<td>miniAppFlag</td>
<td>varchar</td>
<td>CY</td>
<td>1-是 0-否</td>
</tr>
<tr>
<td>app urlschema</td>
<td>schemaUrl</td>
<td>varchar</td>
<td>CY</td>
<td>app支付传,否则无法唤起app</td>
</tr>
</tbody>
</table>
<h3>响应头</h3>
<p><code>head</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>渠道代码</td>
<td>policySource</td>
<td>varchar</td>
<td>Y</td>
<td>保险公司分配给 渠道方的渠道编码</td>
</tr>
<tr>
<td>响应时间</td>
<td>respTime</td>
<td>DateTime</td>
<td>Y</td>
<td></td>
</tr>
<tr>
<td>接口类型</td>
<td>interfaceType</td>
<td>varchar</td>
<td>CY</td>
<td>针对每个接口,使用接口的API信息</td>
</tr>
<tr>
<td>订单号</td>
<td>orderNo</td>
<td>varchar</td>
<td>Y</td>
<td>贯穿保单始终的订单号, 要求必须唯一,会进行幂等检查</td>
</tr>
<tr>
<td>唯一标识符</td>
<td>uuid</td>
<td>varchar</td>
<td>Y</td>
<td>单次请求唯一标识符,任一次请求不允许相同</td>
</tr>
</tbody>
</table>
<h3>响应体</h3>
<p><code>respBody</code></p>
<table>
<thead>
<tr>
<th>字段名称</th>
<th>字段代码</th>
<th>类型</th>
<th>是否必传</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>投保单号</td>
<td>proposalNo</td>
<td>varchar</td>
<td>Y</td>
<td></td>
</tr>
<tr>
<td>处理状态码</td>
<td>dealCode</td>
<td>varchar</td>
<td>Y</td>
<td>处理结果状态码</td>
</tr>
<tr>
<td>处理结果描述</td>
<td>dealDesc</td>
<td>varchar</td>
<td>Y</td>
<td>处理结果描述</td>
</tr>
<tr>
<td>支付连接</td>
<td>payUrl</td>
<td>varchar</td>
<td>Y</td>
<td>针对渠道方, 相当于见费出单模式</td>
</tr>
<tr>
<td>时间戳</td>
<td>timeStamp</td>
<td>Long</td>
<td>CY</td>
<td>唤起小程序支付所需参数</td>
</tr>
<tr>
<td>随机字符串</td>
<td>nonceStr</td>
<td>varchar</td>
<td>CY</td>
<td>唤起小程序支付所需参数</td>
</tr>
<tr>
<td>微信参数</td>
<td>prepayId</td>
<td>varchar</td>
<td>CY</td>
<td>唤起小程序支付所需参数</td>
</tr>
<tr>
<td>签名类型</td>
<td>signType</td>
<td>varchar</td>
<td>CY</td>
<td>唤起小程序支付所需参数</td>
</tr>
<tr>
<td>签名</td>
<td>paySign</td>
<td>varchar</td>
<td>CY</td>
<td>唤起小程序支付所需参数</td>
</tr>
</tbody>
</table>
<h3>报文示例</h3>
<h4>请求</h4>
<pre><code class="language-json">{
&quot;head &quot;: {
&quot;interfaceType&quot;: &quot;payUrl&quot;,
&quot;orderNo&quot;: &quot;P2212181104155571815&quot;,
&quot;policySource&quot;: &quot;HN_NY&quot;,
&quot;reqTime&quot;: 1671332656035,
&quot;uuid&quot;: &quot;HN_NY4505_1671332656035&quot;
},
&quot;payInfo&quot;: {
&quot;proposalNo&quot;: &quot;Y51012740220000025171&quot;,
&quot;errorUrl&quot;: &quot;https://fca.chinahuanong.com.cn/chic-plus/payBack/sync?tradeNo=P2212181104155571815&quot;,
&quot;redirectUrl&quot;: &quot;https://fca.chinahuanong.com.cn/chic-plus/payBack/sync?tradeNo=P2212181104155571815&quot;
}
}
</code></pre>
<h4>返回</h4>
<pre><code class="language-json">{
&quot;head&quot;: {
&quot;interfaceType&quot;: &quot;payUrl&quot;,
&quot;orderNo&quot;: &quot;P2212181104155571815&quot;,
&quot;policySource&quot;: &quot;HN_NY&quot;,
&quot;respTime&quot;: 1671332656219,
&quot;uuid&quot;: &quot;HN_NY4505_1671332656035&quot;
},
&quot;respBody&quot;: {
&quot;dealCode&quot;: &quot;1&quot;,
&quot;dealDesc&quot;: &quot;成功&quot;,
&quot;payUrl&quot;: &quot;https://pay.chinahuanong.com.cn/payPage?data=kVBsSsqYAYR8Xw13kKQ%2BRA%2Fg4xh8hFxBirK%2FAjOB%2FSXS5zPoJ4DGb2zJo%2B0hJuwY&amp;secret=h9zauGzeL2hYSzsn3MzYnq2hWZdN7WDIx%2FkRCd%2BHDnqUusbAr0uDIEl%2B4IfWMXaMhkAGpglL1qjM%0AzKAeNuY%2FBTdjzG2Sq2AXZTmeX72NsrpiUeuysqx1whVphyJvjibwYo8euh%2BZhM%2FEYCP2jvucOAA9%0AlyQ29%2BkollyzsF00yJ0%3D&amp;merchantCode=100003&amp;pcPay=1&quot;
}
}
</code></pre>