获取所有商品
<h5>接口描述</h5>
<ul>
<li>接口方向:接入方 → 本平台</li>
<li>限速控制:5秒1次</li>
<li>查询所有的商品</li>
</ul>
<h4>请求URL</h4>
<ul>
<li>[<a href="https://juling.funshion.com/ps/open/goods/all">https://juling.funshion.com/ps/open/goods/all</a>] </li>
<li>接口域名固定,不支持其他域名</li>
</ul>
<h4>请求方式</h4>
<ul>
<li>POST/GET</li>
<li>Content-Type: application/json;charset=utf-8</li>
</ul>
<h4>请求参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必填</th>
<th>示例</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>userid</td>
<td>是</td>
<td>10001</td>
<td>商户ID联系站长获取</td>
</tr>
<tr>
<td>timestamp</td>
<td>是</td>
<td>1689544765</td>
<td>现行10位时间戳,有效期300秒</td>
</tr>
<tr>
<td>limit</td>
<td>否</td>
<td>10</td>
<td>单页数量,默认10,最大50</td>
</tr>
<tr>
<td>page</td>
<td>否</td>
<td>1</td>
<td>当前页,默认1</td>
</tr>
<tr>
<td>goodstype</td>
<td>否</td>
<td>1</td>
<td>商品类型,0=卡密 1=直冲</td>
</tr>
<tr>
<td>groupid</td>
<td>否</td>
<td>255</td>
<td>分组ID</td>
</tr>
<tr>
<td>goodsname</td>
<td>否</td>
<td>爱奇艺</td>
<td>商品名称关键词</td>
</tr>
<tr>
<td>goodsid</td>
<td>否</td>
<td>5895</td>
<td>单个商品直接传商品ID字符串,订阅多个商品传商品ID数组(单次最多支持100条),参考请求示例</td>
</tr>
<tr>
<td>sign</td>
<td>是</td>
<td>ffjutjghfdgedf5eggdgdgghr</td>
<td>签名,<a href="https://www.showdoc.com.cn/juling001/11558619435396525">点我查看签名计算规则</a></td>
</tr>
</tbody>
</table>
<h4>请求示例</h4>
<pre><code>{
&quot;userid&quot;: &quot;1004&quot;,
&quot;page&quot;: 1,
&quot;limit&quot;: 10,
&quot;timestamp&quot;: 1740444871,
&quot;sign&quot;: &quot;cdda835f7a9303c842c8ba98c238949c&quot;
}</code></pre>
<h4>多个商品ID请求示例</h4>
<pre><code>{
&quot;userid&quot;: &quot;1004&quot;,
&quot;timestamp&quot;: 1736748963,
&quot;goodsid&quot;: [
&quot;4585&quot;,
&quot;4584&quot;
],
&quot;sign&quot;: &quot;3928914b84bb4c68a5b3806450425521&quot;
}</code></pre>
<h4>响应信息</h4>
<pre><code>{
&quot;code&quot;: 1,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: [
{
&quot;goodsid&quot;: 682513,
&quot;imgurl&quot;: &quot;&quot;,
&quot;goodsname&quot;: &quot;taobao直接下单&quot;,
&quot;goodsprice&quot;: &quot;13.0000&quot;,
&quot;goodsstatus&quot;: 1,
&quot;goodstype&quot;: 1,
&quot;stock&quot;: 1,
&quot;groupid&quot;: 7381,
&quot;marketprice&quot;: &quot;0.0000&quot;,
&quot;attach&quot;: [
{
&quot;title&quot;: &quot;喜马拉雅账号&quot;,
&quot;tip&quot;: &quot;请输入喜马拉雅绑定手机号码&quot;
}
]
},
{
&quot;goodsid&quot;: 772378,
&quot;imgurl&quot;: &quot;&quot;,
&quot;goodsname&quot;: &quot;QB测试&quot;,
&quot;goodsprice&quot;: &quot;1.0000&quot;,
&quot;goodsstatus&quot;: 1,
&quot;goodstype&quot;: 1,
&quot;stock&quot;: 49990,
&quot;groupid&quot;: 7381,
&quot;marketprice&quot;: &quot;0.0000&quot;,
&quot;attach&quot;: [
{
&quot;title&quot;: &quot;QQ&quot;,
&quot;tip&quot;: &quot;&quot;
}
]
},
&quot;nowpage&quot;: &quot;1&quot;,
&quot;allpage&quot;: 2,
&quot;count&quot;: 18
}</code></pre>
<h4>响应参数</h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>示例</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>1</td>
<td><a href="https://www.showdoc.com.cn/2592446100589081/11529649354692263">详见全局结果代码说明</a></td>
</tr>
<tr>
<td>msg</td>
<td>签名错误</td>
<td>提示信息</td>
</tr>
<tr>
<td>nowpage</td>
<td>1</td>
<td>当前页</td>
</tr>
<tr>
<td>allpage</td>
<td>2</td>
<td>总页数</td>
</tr>
<tr>
<td>count</td>
<td>18</td>
<td>总数量</td>
</tr>
<tr>
<td>data.goodsid</td>
<td>4584</td>
<td>商品ID</td>
</tr>
<tr>
<td>data.imgurl</td>
<td><a href="http://xx/"><a href="http://xx">http://xx</a></a></td>
<td>商品LOGO</td>
</tr>
<tr>
<td>data.goodsname</td>
<td>测试产品代理商测试</td>
<td>商品名称</td>
</tr>
<tr>
<td>data.goodsprice</td>
<td>5</td>
<td>商品单价,单位元</td>
</tr>
<tr>
<td>data.goodsstatus</td>
<td>1</td>
<td>商品状态 0=下架 1=出售</td>
</tr>
<tr>
<td>data.groupid</td>
<td>252</td>
<td>分组ID</td>
</tr>
<tr>
<td>data.stock</td>
<td>32</td>
<td>库存</td>
</tr>
<tr>
<td>data.goodstype</td>
<td>1</td>
<td>商品类型 0=卡密 1=直冲</td>
</tr>
<tr>
<td>data.marketprice</td>
<td>10</td>
<td>市场价格</td>
</tr>
<tr>
<td>data.attach</td>
<td></td>
<td>充值字段</td>
</tr>
<tr>
<td>data.attach.title</td>
<td>充值帐号</td>
<td>充值字段标题</td>
</tr>
<tr>
<td>data.attach</td>
<td>请输入您的充值帐号</td>
<td>充值字段提示信息</td>
</tr>
</tbody>
</table>