运营商-售货机接口文档

undefined


模板商品新增

<h5>简要描述</h5> <ul> <li>无</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{service}}/goods/template-goods-add</code> </li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>Header</h5> <table> <thead> <tr> <th style="text-align: left;">字段名</th> <th style="text-align: left;">示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">token</td> <td style="text-align: left;">{{token}}</td> <td>是</td> <td>string</td> <td>无</td> </tr> </tbody> </table> <h5>请求Body参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">57</td> <td>是</td> <td>string</td> <td>模板主键id</td> </tr> <tr> <td style="text-align: left;">goods_id</td> <td style="text-align: left;">59</td> <td>是</td> <td>string</td> <td>商品主键Id</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ "code": 10000, "data": [ { "id": 29, "detect_api_id": 19, "name": "Perrier巴黎水多口味瓶装330ml",商品名称 "sku": "DMG20210711152656",sku "banner": "//asset.dmg.com/goods/635257160b795.png",图片 "image_files": "", "remark": "", "status": 1, "sell_price": 0.01,售价 "cost_price": 0.01,成本价 "discount_price": 0, "create_time": 1536739882.0796, "update_time": 1666340630, "xlf_shop_category_id": null, "xlf_shop_brand_id": null, "nex_good_id": null, "is_verify": 0, "reject_reason": null, "temp_sell_price": 0, "temp_cost_price": 0, "template_goods_id": 394 模板商品主键 } ], "msg": "Success" } </code></pre>

页面列表

ITEM_HTML