获取标签
<p>获取标签</p>
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{host}}/api/open/label</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th>字段名</th>
<th>示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>apikey</td>
<td>6519827339</td>
<td>是</td>
<td>string</td>
<td>apikey</td>
</tr>
<tr>
<td>timestamp</td>
<td>1724288542</td>
<td>是</td>
<td>string</td>
<td>时间戳</td>
</tr>
<tr>
<td>sign</td>
<td>5aa5dcb415a0947b661d92aee98d4837</td>
<td>是</td>
<td>string</td>
<td>签名</td>
</tr>
<tr>
<td>accept</td>
<td>application/json</td>
<td>是</td>
<td>string</td>
<td>accept</td>
</tr>
<tr>
<td>content-type</td>
<td>application/json;charset=UTF-8</td>
<td>是</td>
<td>string</td>
<td>content-type</td>
</tr>
<tr>
<td>lang</td>
<td>en-us</td>
<td>是</td>
<td>string</td>
<td>lang</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
&quot;no&quot;: &quot;DR305578411454219&quot;
}</code></pre>
<h5>请求json字段说明</h5>
<table>
<thead>
<tr>
<th>字段名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>no</td>
<td>是</td>
<td>string</td>
<td>单号,订单运单号或者客户单号</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
&quot;status&quot;: true,
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;标签获取成功&quot;,
&quot;time&quot;: 1751440572,
&quot;data&quot;: {
&quot;order_no&quot;: &quot;DR183548553226791&quot;,
&quot;reference_no&quot;: &quot;BD4-21009112&quot;,
&quot;awb_no&quot;: null,
&quot;label_url&quot;: &quot;http://test-v1-admin.d-rain.cn/uploads/orderLabel/20250702/barcode_6864dcbc0317e.pdf&quot;
},
&quot;log_id&quot;: &quot;ef5d72eaadd4d63186af82480c71df64&quot;
}</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>1:成功 ,0: 失败</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>提示信息</td>
</tr>
<tr>
<td>time</td>
<td>string</td>
<td>无</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>无</td>
</tr>
<tr>
<td>label_url</td>
<td>string</td>
<td>标签地址</td>
</tr>
<tr>
<td>log_id</td>
<td>string</td>
<td>日志ID</td>
</tr>
</tbody>
</table>
<h5>失败返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;标签尚未生成&quot;,
&quot;time&quot;: 1730452020,
&quot;data&quot;: null,
&quot;log_id&quot;: &quot;80684e6b370357d03ebaff9d9b3194ce&quot;
}</code></pre>
<h5>失败返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>string</td>
<td>1:成功 ,0: 失败</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>提示信息</td>
</tr>
<tr>
<td>data</td>
<td>array</td>
<td>数据</td>
</tr>
<tr>
<td>track_id</td>
<td>string</td>
<td>日志ID</td>
</tr>
</tbody>
</table>
<h5>备注</h5>