多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 订单接口分为 实物订单,虚拟订单,门店自提订单和 分销一键代发商品订单 1. 实物订单 ### +++ get:http://url/index.php?ctl=Buyer_Order&met=addOrder&typ=json *receiver_name=收货人的姓名# *receiver_address=收货人的详细地址 # *receiver_phone=收货人电话# *int:address_id=收货地址ID# *invoice=发票信息#格式: 普通发票 个人 明细 *array:cart_id=购物车ID# *array:shop_id=店铺ID# *array:remark=备注信息# *array:increase_arr=加价购信息# *array:voucher_id=代金券ID# *int:pay_way_id=支付方式# *int:invoice_id=发票ID# *invoice_title=发票抬头# *invoice_content=发票内容#明细,耗材,办公用品等 *from=来源#pc , wap *json:rpacket_id=红包ID# <<< success 成功: { "status": "200", "data": { "uorder":"U1234567890","order_id":"DD-10004-5-102-20170823185024-0001" }, "msg":"success" } 失败: { "status": "250", "data": { }, "msg":"failure" } +++ 2. 虚拟订单 ### +++ get:http://url/index.php?ctl=Buyer_Order&met=addVirtualOrder&typ=json *goods_id=商品ID# *goods_num=商品数量 # *buyer_phone=收货人电话# *remark=备注信息# *array:increase_arr=加价购信息# *array:increase_goods_id=加价购商品ID# *array:voucher_id=代金券ID# *int:pay_way_id=支付方式# *from=来源#pc , wap *int:rpt=红包ID# <<< success 成功: { "status": "200", "data": { "uorder":"U1234567890" }, "msg":"success" } 失败: { "status": "250", "data": { }, "msg":"failure" } +++ 3. 门店自提订单 ### +++ get:http://url/index.php?ctl=Buyer_Order&met=addChainOrder&typ=json *int:chain_id=门店ID# *int:goods_id=商品ID # *mob_phone=发票信息#格式: 普通发票 个人 明细 *remark=备注信息# *array:increase_goods_id=加价购商品ID# *array:voucher_id=代金券ID# *int:pay_way_id=支付方式# *true_name=真实姓名# <<< success 成功: { "status": "200", "data": { "uorder":"U1234567890" }, "msg":"success" } 失败: { "status": "250", "data": { }, "msg":"failure" } +++ 4. 分销一件代发商品和拼团商品订单 ### +++ get:http://url/index.php?ctl=Buyer_Order&met=addGoodsOrder&typ=json *int:goods_id=商品ID# *int:goods_num=商品数量# *array:remark=备注信息# *int:pay_way_id=支付方式# *invoice=发票信息#格式: 普通发票 个人 明细 *int:invoice_id=发票ID# *invoice_title=发票抬头# *invoice_content=发票内容#明细,耗材,办公用品等 *from=来源#pc , wap *int:address_id=收货地址ID# *token=加密参数#从商品的确认订单接口中获取 *int:pt_detail_id=拼团detail_id# *goods_type=商品类型#pintuan或者alone *int:mark_id=拼团的团id# <<< success 成功: { "status": "200", "data": { "uorder":"U1234567890" }, "msg":"success" } 失败: { "status": "250", "data": { "code":"1" }, "msg":"订单提交失败" } +++