响应结构
<h4>响应将按照固定模板返回</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>响应码</td>
</tr>
<tr>
<td>key</td>
<td>string</td>
<td>企业key(<em>同请求中的参数</em>),参考<a href="https://www.showdoc.cc/ybd?page_id=1864080192995858" title="准备工作">准备工作</a></td>
</tr>
<tr>
<td>seq</td>
<td>string</td>
<td>业务流水号(<em>同请求中的参数</em>)</td>
</tr>
<tr>
<td>ts</td>
<td>string</td>
<td>时间戳,服务器处理请求的时间,格式为“yyyyMMddHHmmss”</td>
</tr>
<tr>
<td>sign</td>
<td>string</td>
<td>响应摘要签名,规则同<a href="https://www.showdoc.cc/ybd?page_id=1865243955181250" title="请求签名">请求签名</a></td>
</tr>
<tr>
<td>msg</td>
<td>object</td>
<td>响应内容(<em>实际业务内容</em>),简单对象或json格式</td>
</tr>
</tbody>
</table>
<blockquote>
<p>msg为实际业务内容,格式为简单对象或json,根据不同接口变化</p>
</blockquote>
<p><code>预检查类异常(如未按请求规范传入header、企业异常、时间戳/签名/幂等验证失败),sign将返回空</code></p>
<h5>响应示例(正常)</h5>
<pre><code class="language-json">{
"code": "900",
"key": "CF6BF781AB82FEF5BFDF96B054ECEB15",
"seq": "S11223344",
"sign": "004886C69F8F33AEC99D035949CD7E3B",
"ts": "20190315104150",
"msg": "{}"
}</code></pre>
<h5>响应示例(异常)</h5>
<pre><code class="language-json">{
"code": "906",
"key": "CF6BF781AB82FEF5BFDF96B054ECEB15",
"seq": "s20190415103000",
"sign": "",
"ts": "20190415104150",
"msg": "{}"
}</code></pre>
<h4>参考</h4>
<blockquote>
<p><a href="https://www.showdoc.cc/ybd?page_id=1863843278019929" title="全局错误码">全局错误码</a></p>
</blockquote>