💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 结算订单/提交订单 **请求URL:** - `/shopapi/order/placeOrder` **请求方式:** - POST **参数:** |参数名 |必选 |类型 |说明 | |:--|:--|:--|:--| | cart_id | 是/否 | array | 购物车id(购物车下单时必选) | | goods | 是/否 | array | 商品信息(购物车下单/砍价下单时可不传) | | order_type | 是 | int |订单类型 0-普通订单 1-拼团订单 2-秒杀订单 3-砍价订单 | | ----goods_num | 是 | int | 商品数量 | | ----item_id | 是 | int | 规格id | | source | 是 | string | 立即购买-buy_now;购物车购买-cart | | action | 是 | string | 请求类型; settle-订单结算详情; buy-提交订单 | | delivery_type | 是 | int | 配送方式;1-快递发货;2-上门自提 | | user_remark | 否 | string | 用户备注| | coupon_list_id | 否 | int | 优惠券领取id | | address_id | 是/否 | int | 用户地址id(快递发货时必选) | | selffetch_shop_id | 是/否 | string | 自提门店ID(门店自提时必选)| | contact | 是/否 | int | 取货人(门店自提时必选) | | mobile | 是/否 | int | 联系电话(门店自提时必选) | | initiate_id | 否 | int | 发起砍价id (砍价下单必填) | | buy_condition | 否 | int | 购买条件(random-任意金额购买 floor-底价购买)(砍价下单必填) | | seckill_id | 否 | int | 秒杀活动id(秒杀活动必填) | | team_id | 否 | int | 拼团活动id(拼团活动必填) | | found_id | 否 | int | 团号id(拼团活动选填) | **返回示例** ``` { "code": 1, "show": 0, "msg": "", "data": { "terminal": 1, "delivery_type": 2, "cart_id": [], "order_type": 0, "coupon_list_id": 0, "total_num": 2, "total_goods_price": 2799, "total_amount": 2799, "order_amount": 2799, "discount_amount": 0, "express_price": 0, "user_money": "10399.00", "user_remark": "", "address": { "id": 1, "user_id": 10, "contact": "林进袁", "mobile": "17509999997", "province_id": 110000, "city_id": 110100, "district_id": 110101, "address": "2343243", "longitude": "0", "latitude": "0", "is_default": 1, "create_time": "2021-08-12 11:53:11", "update_time": "2021-08-12 15:51:40", "delete_time": null, "province": "北京", "city": "北京市", "district": "东城区" }, "goods": [ { "item_id": 67, "item_image": "", "spec_value_str": "8GB+256GB,冰峰黑提", "spec_value_ids": "53,55", "sell_price": "2399.00", "volume": "100.00", "stock": 992, "weight": "100.00", "goods_id": 24, "goods_name": "小米10青春版", "status": 1, "delete_time": null, "image": "https://img0.baidu.com/it/u=2635130093,4202492912&fm=26&fmt=auto&gp=0.jpg", "express_type": 1, "express_money": "0.00", "express_template_id": 0, "is_express": 1, "is_selffetch": 1, "id": 67, "sub_price": 2399, "goods_num": 1 }, { "item_id": 94, "item_image": "", "spec_value_str": "二合一(蓝色)", "spec_value_ids": "50", "sell_price": "400.00", "volume": "10.00", "stock": 92, "weight": "10.00", "goods_id": 23, "goods_name": "哈比树儿童滑滑梯室内汽车滑梯家用玩具宝宝小型秋千组合游乐园", "status": 1, "delete_time": null, "image": "https://img0.baidu.com/it/u=2635130093,4202492912&fm=26&fmt=auto&gp=0.jpg", "express_type": 2, "express_money": "20.00", "express_template_id": 0, "is_express": 1, "is_selffetch": 1, "id": 94, "sub_price": 400, "goods_num": 1 } ], "selffetch_shop_id": "2", "contact": "木子", "mobile": "17306643985" } } ``` **返回参数:** |参数名 |类型 |说明 | |:--|:--|:--| | terminal | int | 下单终端 | | delivery_type | int | 配送方式 | | cart_id | array | 购物车id | | order_type | int | 订单类型 | | coupon_list_id | int | 用户优惠券关联id | | total_num | int | 订单数量 | | total_goods_price | decimal | 订单商品金额 | | total_amount | decimal | 订单金额 | | order_amount | decimal | 应付金额 | | discount_amount | decimal | 优惠券优惠金额 | | express_price | decimal | 物流费 | | user_money | decimal | 用户余额 | | user_remark | string | 用户备注 | | address | array | 地址 | | goods | array | 商品 |