💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 创建订单 >[success] **接口测试完整地址** https://service.cuci.cc/shop/api/order/add.html?token=33d7ed591de29e68 +++ post:order/add.html *openid=o38gps0IbHRk1SspMQd1-0h6HEfo#用户openid order_cartids=1#自购物车发起创建订单,需要提交购物车商品ID,多个以英文逗号分割。(order_carid与order_goods必选1) order_goods#订单商品详情信息,组合方式为 商品ID#商品属性#数量;商品ID2#商品属性2#数量2;(order_carid与order_goods必选1) order_title#(可选)订单标题,用于显示在订单列表中 string:express_id=N #(可选)配送方式ID , 与 address_id 绑定,必需一起传入,N 表示无需要配送,0 表示默认配送方式,其它数字表示指定配送方式 int:address_id=0 # ( 可选) 收货地址ID,与 express_id 绑定,必需一起传入 message#(可选)订单备注信息,用户在下单时对订单提出一些要求 coupons_code#(可选)订单优惠券,用户可选择订单使用优惠券抵扣费用 int:integral_num#(可选)积分抵扣,用户可选择使用程序来抵扣费用 <<< 创建成功 { "code": "SUCCESS", "info": "订单创建成功!", "data": { "from": "wechat", "openid": "o38gps0IbHRk1SspMQd1-0h6HEfo", "order_title": "Apple iPhone 6 Plus (A1524) 16GB 深空灰色 移动联通电信4G手机", "order_no": "378443261755432143", "total_fee": 0, "express_fee": 0, "coupons_fee": 0, "integral_fee": 0, "message": "", "coupons_code": "", "integral_num": "", "status": 1, "real_fee": 0, "is_pay": 1, "pay_at": "2016-11-24 14:07:14" } } <<< 失败1 { "code": "SHOP_ORDER_MISSING_PARAMETER", "info": "'丢失必要参数,请参考文档提交数据!'", "data": [] } <<< 失败2 { "code": "SHOP_ORDER_CREAT_ERROR", "info": "提交的订单中没有效商品!", "data": [] } <<< 失败3 { "code": "SHOP_ORDER_LOW_STOCKS", "info": "商品库存不足,请重新提交!", "data": [] } <<< 失败4 { "code": "SHOP_ORDER_EXISTS", "info": "该订单号已经下过订单!", "data": [] } <<< 失败5 { "code": "SHOP_ORDER_EXPRESS_FAILD", "info": "订单物流信息无效!", "data": [] } <<< 失败6 { "code": "SHOP_ORDER_ADDRESS_FAILD", "info": "订单物流信息收货地址无效!", "data": [] } <<< 失败7 { "code": "SHOP_ORDER_CREATE_ERROR", "info": "订单创建失败,请稍候再试!", "data": [] } <<< 授权失败 { "code": "AUTH_TOKEN_FAILD", "info": "应用授权失败,请进行接口授权操作!", "data": [] } +++