ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
接口数据请求说明 根域名:http://www.oxfashion.hk/oxapi.php 请求个接口地址需要以POST方式携带签名数据,下面以postman工具举例说明 请求商品基础数据则如下图 ![](https://img.kancloud.cn/56/9a/569a35ebb8e66824620bcf615bfcd188_2000x776.png) 获取商品库存接口则如下图 ![](https://img.kancloud.cn/42/87/4287831c939d33f7ee1c57ee2bbbd680_1890x702.png) ============================== ## **各接口地址** {}包含部分表示变量 **商品基础数据** http://www.oxfashion.hk/oxapi.php/Index/Index/ **商品仓库查下** http://www.oxfashion.hk/oxapi.php/Index/queryStock/gid/{gid} **时间段内有库存变动的商品sku_id集合** http://www.oxfashion.hk/oxapi.php/Index/queryChangeStockInfo/stime/{stime}/etime/{etime} 变量是时间戳 **跟sku_id获取goods_id** http://www.oxfashion.hk/oxapi.php/Index/queryGidBySkuId/sku_id/{skuid} **根据sku_id获取库存内容** http://www.oxfashion.hk/oxapi.php/Index/queryStockBySpecId/sku_id/{skuid} ## **下单接口** http://www.oxfashion.hk/papi.php/Index/createOrder 请求参数: ``` $params = array( "source_name" => "京东商城", //友商名称 "out_order_sn" => $third_order_sn, //友商订单号 "consignee" => $user_name, // 收件人 "phone_tel" => $user_phone, //收件人电话 "fhr_name" => "xiaoA", //发货人 "fhr_phone" => "1", //发货人手机号 "address" => $address, //收货地址 "zipcode" => "", //邮编 "shipping" => "16", //快递方式 "postscript" => "", // 备注 "sh_id" => 2, //下单仓库 2 香港仓 1大陆仓 "specInfo" => array( array( "goods_id" => $goods_id, //我方商品id "spec_id" => $spec_id, //我方 spec_id "quantity" => $qty //商品数量 ) ) ); ```