多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 提交订单 ### 订单接口分为 实物订单,虚拟订单,门店自提订单和 分销一键代发商品订单 1. 实物订单 ### +++ get:[http://url/index.php?ctl=Buyer\_Order&met=addOrder&typ=json](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 成功: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"200"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token4">"uorder"</span><span class="token1">:</span><span class="token4">"U1234567890"</span><span class="token1">,</span><span class="token4">"order_id"</span><span class="token1">:</span><span class="token4">"DD-10004-5-102-20170823185024-0001"</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"success"</span> ``` ``` } 失败: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"250"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"failure"</span> ``` ``` } +++ 2. 虚拟订单 ### +++ get:[http://url/index.php?ctl=Buyer\_Order&met=addVirtualOrder&typ=json](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 成功: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"200"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token4">"uorder"</span><span class="token1">:</span><span class="token4">"U1234567890"</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"success"</span> ``` ``` } 失败: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"250"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"failure"</span> ``` ``` } +++ 3. 门店自提订单 ### +++ get:[http://url/index.php?ctl=Buyer\_Order&met=addChainOrder&typ=json](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 成功: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"200"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token4">"uorder"</span><span class="token1">:</span><span class="token4">"U1234567890"</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"success"</span> ``` ``` } 失败: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"250"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"failure"</span> ``` ``` } +++ 4. 分销一件代发商品和拼团商品订单 ### +++ get:[http://url/index.php?ctl=Buyer\_Order&met=addGoodsOrder&typ=json](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 成功: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"200"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token4">"uorder"</span><span class="token1">:</span><span class="token4">"U1234567890"</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"success"</span> ``` ``` } 失败: { ``` <pre class="calibre14">``` <span class="token4">"status"</span><span class="token1">:</span> <span class="token4">"250"</span><span class="token1">,</span> <span class="token4">"data"</span><span class="token1">:</span> <span class="token1">{</span> <span class="token4">"code"</span><span class="token1">:</span><span class="token4">"1"</span> <span class="token1">}</span>, <span class="token4">"msg"</span><span class="token1">:</span><span class="token4">"订单提交失败"</span> ``` ``` } +++