💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 订单 #### 订单列表 ``` <pre class="calibre14">``` get:/index.php?ctl=Api_Trade_Order&met=getOrderList&typ=json int:page=1#页数 int:rows=100#每页显示条数 string:sidx#排序字段 string:sord=asc#排序方式.asc,desc string:action#virtual - 虚拟订单,chain - 门店自提订单 string:order_id#订单id string:buyer_name#买家账号 string:shop_name#店铺名称 string:payment_date_f#付款起始时间 string:payment_date_t#付款结束时间 int:sub_site_id=0#城市分站id int:user_id#买家id <<< success { "cmd_id":-140, "status":200, "msg":"success", "data":{ "page":1, "total":91, "totalsize":"91", "records":"91", "items":[ { "order_id":"DD-10004-1-102-20190419172339-0001", //订单号 "shop_id":"1", //店铺id "shop_name":"店铺名称1", //店铺名称 "buyer_user_id":"10003", //买家id "buyer_user_name":"qdhuang", //买家账号 "seller_user_id":"10004", //卖家id "seller_user_name":"keynote", //卖家账号 "order_date":"2019-04-19", //订单日期 "order_create_time":"2019-04-19 17:23:39", //订单生成时间 "order_receiver_name":"qdhuang", //收货人的姓名 "order_receiver_address":"北京 大兴区亦庄经济开发区", //收货人的详细地址 "order_receiver_contact":"15901201349", //收货人的联系方式 "area_code":"86", //国际手机号区号 "order_receiver_date":"0000-00-00 00:00:00", //收货时间(最晚收货时间) "payment_id":"1", //支付方式id "payment_name":"在线支付", //支付方式名称 "payment_time":"0000-00-00 00:00:00", //支付(付款)时间 "payment_number":"U20190419052339995", //单独支付单号 "payment_other_number":"", //实际是否单号 "order_seller_name":"qdh", //发货人的姓名 "order_seller_address":"北京 大兴区 12345", //发货人的地址 "order_seller_contact":"13112344321", //发货人的联系方式 "order_seller_area_code":"86", //国际手机号区号 "order_shipping_time":"0000-00-00 00:00:00", //配送时间 "order_shipping_express_id":"0", //配送公司id "order_shipping_code":"", //物流单号 "order_shipping_message":"", //卖家备注 "order_finished_time":"0000-00-00 00:00:00", //订单完成时间 "order_invoice":"不需要发票", //发票信息 "order_invoice_id":"0", //发票id "order_goods_amount":"800.00", //商品总价 "order_payment_amount":"800.00", //应付金额 "order_discount_fee":"0.00", //优惠价格 "order_point_fee":"0.00", //买家使用积分 "order_shipping_fee":"0.00", //运费价格 "order_buyer_evaluation_status":"0", //买家评价状态 0-未评价 1-已评价 "order_buyer_evaluation_time":"0000-00-00 00:00:00", //评价时间 "order_seller_evaluation_status":"0", //卖家评价状态 0为评价,1已评价 "order_seller_evaluation_time":"0000-00-00 00:00:00", //评价时间 "order_message":"", //订单留言 "order_status":"7", //订单状态 1-待付款,2-已付款,3-代发货,4-已发货,5-已签收,6-已完成,7-已取消,8-退款中,9-已退款,11-待自提 "order_points_add":"0", //订单赠送积分 "voucher_id":"0", //代金券id "voucher_price":"0.00", //代金券面额 "voucher_code":"0", //代金券编码 "order_refund_status":"0", //退款状态:0是无退款,1是退款中,2是退款完成 "order_return_status":"0", //退货状态:0是无退货,1是退货中,2是退货完成 "order_refund_amount":"0.00", //退款金额 "order_return_num":"0", //退货数量 "order_from":"2", //订单来源 1-PC,2-手机端 "order_commission_fee":"8.00", //交易佣金 "order_commission_return_fee":"0.00", //交易佣金退款 "order_is_virtual":"0", //虚拟订单 0-不是 1-是 "order_virtual_code":"", //虚拟商品兑换码 "order_virtual_use":"0", //虚拟商品是否使用 0-未使用 1-已使用 "order_shop_hidden":"0", //卖家删除 "order_buyer_hidden":"0", //买家删除 "order_subuser_hidden":"0", //主管账号删除 "order_cancel_identity":"1", //订单取消者身份 1-买家 2-卖家 3-系统 "order_cancel_reason":"", //订单取消原因 "order_cancel_date":"2019-04-19 17:24:29", //订单取消时间 "order_shop_benefit":"", //店铺优惠 "chain_id":"0", //门店id "order_seller_message":"", //卖家给买家留言 "directseller_flag":"0", //是否是分佣订单 0-不是 1-是 "directseller_p_id":"0", //推广员上级 "redpacket_code":"0", //红包编码 "redpacket_price":"0.00", //红包面额 "order_rpt_price":"0.00", //红包抵扣订单金额 "order_rpt_return":"0.00", //红包退款金额 "order_settlement_time":"0000-00-00 00:00:00", //订单结算时间 "order_is_settlement":"0", //订单是否结算 1-已结算 0-未结算 "shop_distributor_id":"0", //分销商 "order_distribution_seller_type":"1", //SO订单分销类型 1:直销(E) 2:分销代销转发销售(P, SP) "order_distribution_buyer_type":"1", //PO订单类型 1:购买(E采购,SP:代销采购) 2:分销采购,代客下单 (P开头) "order_source_id":"0", //源订单Id(P开头):SP开头订单对应的P开头订单 "directseller_gp_id":"0", //推广员上级的上级 "directseller_id":"0", //推广员 "directseller_is_settlement":"0", //分销佣金是否结算 1-已经结算 0-未结算 "district_id":"2146", //所在地,从店铺中同步,冗余检索使用 "order_sub_pay":"0", //0:自己支付,1:主管账号支付 "order_sub_user":"0", //付款主账号id "order_directseller_commission":"0.00", //分销员三级总佣金 "directseller_discount":"0.00", //等级折扣金额 "order_user_discount":"0.00", //会员折扣 "id":"DD-10004-1-102-20190419172339-0001", "express_name":"", //物流公司 "pintuan_temp_order":0, //拼团单号 "order_state_con":"已取消", //订单状态中文 "order_refund_status_con":"无退款", //订单退款状态中文 "complain_day":"7", //交易投诉的有效时 "complain_status":0, //是否还可以投诉 0-不可以 1-可以 "goods_list":[ { "order_goods_id":"134", //订单商品id "order_id":"DD-10004-1-102-20190419172339-0001", //订单id "goods_id":"11", //商品goods_id "common_id":"11", //商品common_id "buyer_user_id":"10003", //买家user_id "goods_name":"LC-FC", //商品名称 "goods_class_id":"50", //商品对应的类目ID "spec_id":"0", //规格id "order_spec_info":[], //规格描述 "goods_price":"100.00", //商品价格(商品原价,goods_base中的商品价格未参加任何活动的价格) "order_goods_num":"8", //商品数量 "goods_image":"https:\/\/shop.local.yuanfeng021.com\/image.php\/shop\/data\/upload\/media\/plantform\/d3aabd05be45670d48e2685d1e1f5992\/image\/20181205\/1543978737722452.png", //商品图片 "order_goods_returnnum":"0", //退货数量 "order_goods_amount":"800.00", //商品金额 (实付金额)= order_goods_payment_amount* order_goods_num "order_goods_discount_fee":"0.00", //优惠金额 = (商品原价-实付金额)*商品数量 "order_goods_payment_amount":"100.00", //实付金额 "order_goods_adjust_fee":"0.00", //手工调整金额 "order_goods_point_fee":"0.00", //积分费用 "order_goods_commission":"8.00", //订单商品的佣金(总) "shop_id":"1", //店铺id "order_goods_status":"7", //订单状态 "order_goods_evaluation_status":"0", //评价状态 0为评价,1已评价 "order_goods_benefit":"", //订单商品优惠 "goods_return_status":"0", //退款状态:0:无退款 1:退款中 2:退款完成 "goods_refund_status":"0", //退货状态:0是无退货,1是退货中,2是退货完成 "order_goods_time":"2019-04-19 17:23:39", //生成时间 "directseller_flag":"0", //是否参与分销 "directseller_id":"0", //推广销售员 - 订单 "directseller_is_settlement":"0", //分销佣金是否结算 1-已经结算 0-未结算 "directseller_commission_0":"0.00", //直属一级分佣 "directseller_commission_0_refund":"0.00", //直属一级分佣退还金额 "directseller_commission_1":"0.00", //直属二级分佣 "directseller_commission_1_refund":"0.00", //直属二级分佣退还金额 "directseller_commission_2":"0.00", //直属三级分佣 "directseller_commission_2_refund":"0.00", //直属三级分佣退还金额 "directseller_goods_discount":"0.00", //等级折扣金额 "order_goods_source_id":"", //SP订单号 "order_goods_source_ship":"", //供应商物流 "order_goods_finish_time":"0000-00-00 00:00:00", //订单商品完成时间 "id":"134", "spec_text":"", //规格字符串 "evaluation_count":0, //评论数 "goods_refund_status_con":null, //商品退货状态(中文) "goods_return_status_con":null, //商品退款状态(中文) "goods_virtual_return_status_con":null, //虚拟退款 "old_price":"100.00", //市场价 "is_del":"1", //是否删除 1- 不删除 2-删除 "order_refund_id":null, //退货id "order_return_id":null //退款id } ], "order_nums":8, //订单商品数 "order_refund_nums":0, //退货商品数 "order_stauts_text":"已取消", //订单状态中文 "order_from_text":"移动端", //订单来源 "evaluation_status_text":"未评价" //订单评价状态 }], "totalSums":106031.84, //订单总金额 "totalSum":800 //当前页订单总金额 }} <<< error {"cmd_id":-140, "status":250, "msg":"分站信息获取失败", "data":{}} {"cmd_id":-140, "status":250, "msg":"没有满足条件的结果哦", "data":{}} ``` ``` #### 订单详情 ``` <pre class="calibre14">``` get:/index.php?ctl=Api_Trade_Order&met=getOrderInfo&order_id=DD-10004-1-102-20190426171902-0001 *string:order_id#订单id <<< success { "cmd_id":-140, "status":200, "msg":"success", "data":{ "order_id":"DD-10004-1-102-20190426171902-0001", //订单id "shop_id":"1", //店铺id "shop_name":"店铺名称", //店铺名称 "buyer_user_id":"10008", //买家user_id "buyer_user_name":"uuuuu", //买家账户 "seller_user_id":"10004", //卖家user_id "seller_user_name":"kkkk", //卖家账户 "order_date":"2019-04-26", //订单日期 "order_create_time":"2019-04-26 17:19:02", //订单生成时间 "order_receiver_name":"43242", //收货人的姓名 "order_receiver_address":"北京 东城区 432", //收货人的详细地址 "order_receiver_contact":"13381703049", //收货人的联系手机号 "area_code":"86", //国际手机号区号 "order_receiver_date":"2019-05-03 17:19:50", //收货时间(最晚收货时间) "payment_id":"1", //支付方式id "payment_name":"余额支付", //支付方式名称 "payment_time":"2019-04-26 17:19:40", //支付(付款)时间 "payment_number":"U20190426051902436", //支付单号 "payment_other_number":"U20190426051902392", //支付平台交易号 "order_seller_name":"qdh", //发货人的姓名 "order_seller_address":"北京 大兴区 12345", //发货人的地址 "order_seller_contact":"13112344321", //发货人的联系方式 "order_seller_area_code":"86", //国际手机号区号 "order_shipping_time":"2019-04-26 17:19:50", //配送时间 "order_shipping_express_id":"63", //配送公司id "order_shipping_code":"3981840340132", //物流单号 "order_shipping_message":"", //卖家备注 "order_finished_time":"0000-00-00 00:00:00", //订单完成时间 "order_invoice":" 不开发票 ", //发票信息 "order_invoice_id":"0", //发票id "order_goods_amount":"1920.00", //商品总价 "order_payment_amount":"1920.00", //应付金额 "order_discount_fee":"0.00", //优惠价格 "order_point_fee":"0.00", //买家使用积分 "order_shipping_fee":"0.00", //运费价格 "order_buyer_evaluation_status":"0", //买家评价状态 0-未评价 1-已评价 "order_buyer_evaluation_time":"0000-00-00 00:00:00", //评价时间 "order_seller_evaluation_status":"0", //卖家评价状态 0为评价,1已评价 "order_seller_evaluation_time":"0000-00-00 00:00:00", //评价时间 "order_message":"", //订单留言 "order_status":"4", //订单状态 订单状态 1-待付款,2-已付款,3-代发货,4-已发货,5-已签收,6-已完成,7-已取消,8-退款中,9-已退款,11-待自提 "order_points_add":"0", //订单赠送积分 "voucher_id":"0", //代金券id "voucher_price":"0.00", //代金券面额 "voucher_code":"0", //代金券编码 "order_refund_status":"0", //退款状态:0是无退款,1是退款中,2是退款完成 "order_return_status":"0", //退货状态:0是无退货,1是退货中,2是退货完成 "order_refund_amount":"0.00", //退款金额 "order_return_num":"0", //退货数量 "order_from":"1", //订单来源 1-PC,2-手机端 "order_commission_fee":"19.20", //交易佣金 "order_commission_return_fee":"0.00", //交易佣金退款 "order_is_virtual":"0", //虚拟订单 0-不是 1-是 "order_virtual_code":"", //虚拟商品兑换码 "order_virtual_use":"0", //虚拟商品是否使用 0-未使用 1-已使用 "order_shop_hidden":"0", //卖家删除 "order_buyer_hidden":"0", //买家删除 "order_subuser_hidden":"0", //主管账号删除 "order_cancel_identity":"0", //订单取消者身份 1-买家 2-卖家 3-系统 "order_cancel_reason":"", //订单取消原因 "order_cancel_date":"0000-00-00 00:00:00", //订单取消时间 "order_shop_benefit":"", //店铺优惠 "chain_id":"0", //门店id "order_seller_message":"", //卖家给买家家留言 "directseller_flag":"0", //是否是分佣订单 0-不是 1-是 "directseller_p_id":"0", //推广员上级 "redpacket_code":"0", //红包编码 "redpacket_price":"0.00", //红包面额 "order_rpt_price":"0.00", //红包抵扣订单金额 "order_rpt_return":"0.00", //红包退款金额 "order_settlement_time":"0000-00-00 00:00:00", //订单结算时间 "order_is_settlement":"0", //订单是否结算 1-已结算 0-未结算 "shop_distributor_id":"0", //分销商 "order_distribution_seller_type":"1", //SO订单分销类型 1:直销(E) 2:分销代销转发销售(P, SP) "order_distribution_buyer_type":"1", //PO订单类型 1:购买(E采购,SP:代销采购) 2:分销采购,代客下单 (P开头) "order_source_id":"0", //源订单Id(P开头):SP开头订单对应的P开头订单 "directseller_gp_id":"0", //推广员上级的上级 "directseller_id":"0", //推广员 "directseller_is_settlement":"0", //分销佣金是否结算 1-已经结算 0-未结算 "district_id":"2146", //所在地 "order_sub_pay":"0", //0:自己支付,1:主管账号支付 "order_sub_user":"0", //付款主账号id "order_directseller_commission":"0.00", //分销员三级总佣金 "directseller_discount":"0.00", //等级折扣金额 "order_user_discount":"0.00", //会员折扣 "id":"DD-10004-1-102-20190426171902-0001", "is_pintuan":0, //是否参加拼团 0-没有拼团 1-有拼团 "order_stauts_text":"已发货", //订单状态 "order_stauts_const":"已发货", //交易状态 "info_url":"http://localhost\/bbc\/shop\/index.php?ctl=Seller_Trade_Order&met=physicalInfo&o&typ=e&order_id=DD-10004-1-102-20190426171902-0001", //订单详情url "delivery_url":"http:\/\/localhost\/bbc_jiheng\/shop\/index.php?ctl=Seller_Trade_Order&met=getOrderPrint&typ=e&order_id=DD-10004-1-102-20190426171902-0001", //发货单url "send_url":"http:\/\/localhost\/bbc_jiheng\/shop\/index.php?ctl=Seller_Trade_Order&met=send&typ=e&order_id=DD-10004-1-102-20190426171902-0001", //设置发货url "receiver_info":"43242&nbsp13381703049&nbsp北京 东城区 432", //发货人信息 名字+联系方式+地址 "shipper":1, //判断商家是否设置了发货地址 0-未设置 1-已设置 "shipper_info":"qdh&nbsp13112344321&nbsp北京 大兴区&nbsp12345", //发货地址 "shipping_info":"(免运费)", //运费信息 "goods_list":[ //订单商品信息 { "order_goods_id":"168", //订单商品id "order_id":"DD-10004-1-102-20190426171902-0001", //订单id "goods_id":"18", //商品goods_id "common_id":"21", //商品common_id "buyer_user_id":"10008", //买家id "goods_name":"诺基亚FXEA", //商品名称 "goods_class_id":"14", //商品对应的类目ID "spec_id":"0", //规格id "order_spec_info":[], //规格描述 "goods_price":"960.00", //商品价格(商品原价,goods_base中的商品价格未参加任何活动的价格) "order_goods_num":"2", //商品数量 "goods_image":"http:\/\/localhost/bbc/image.php\/shop\/data\/upload\/media\/00f844d3e1adc84fc09d03ca6ec48be0\/10004\/1\/image\/20190321\/1553158803123847.jpg", //商品图片 "order_goods_returnnum":"0", //退货数量 "order_goods_amount":"1920.00", //商品金额 (实付金额)= order_goods_payment_amount* order_goods_num "order_goods_discount_fee":"0.00", //优惠金额 = (商品原价-实付金额)*商品数量 "order_goods_payment_amount":"960.00", //实付金额 "order_goods_adjust_fee":"0.00", //手工调整金额 "order_goods_point_fee":"0.00", //积分费用 "order_goods_commission":"19.20", //订单商品的佣金(总) "shop_id":"1", //店铺id "order_goods_status":"2", //订单状态 "order_goods_evaluation_status":"0", //评价状态 0为评价,1已评价 "order_goods_benefit":"限时折扣:直降¥240.00 ", //订单商品优惠 "goods_return_status":"0", //退款状态:0:无退款 1:退款中 2:退款完成 "goods_refund_status":"0", //退货状态:0是无退货,1是退货中,2是退货完成 "order_goods_time":"2019-04-26 17:19:02", //时间 "directseller_flag":"0", //是否参与分销 0-未参与 1-已参与 "directseller_id":"0", //推广销售员-订单 "directseller_is_settlement":"0", //分销佣金是否结算 1-已经结算 0-未结算 "directseller_commission_0":"0.00", //直属一级分佣 "directseller_commission_0_refund":"0.00", //直属一级分佣退还金额 "directseller_commission_1":"0.00", //直属二级分佣 "directseller_commission_1_refund":"0.00", //直属二级分佣退还金额 "directseller_commission_2":"0.00", //直属三级分佣 "directseller_commission_2_refund":"0.00", //直属三级分佣退还金额 "directseller_goods_discount":"0.00", //等级折扣金额 "order_goods_source_id":"", //SP订单号 "order_goods_source_ship":"", //供应商物流 "order_goods_finish_time":"0000-00-00 00:00:00", //订单商品完成时间 "id":"168","spec_text":"", "goods_link":"http:\/\/localhost\/bbc\/shop\/index.php?ctl=Goods_Goods&met=snapshot&goods_id=18&order_id=DD-10004-1-102-20190426171902-0001", //商品快照url "order_goods_num_c":2, //商品剩余数量(商品订单总数 - 退款退货数) "order_goods_amount_c":1920, //商品剩余金额 "return_txt":"", //已退款退货状态(中文) "return_price":0 //已退款退货金额 }], "goods_cat_num":1, //订单商品总数 "deilve_able":1, //判断商品是否是一件代发分销商品 1-代发货 0-非代发货 "set_html":null, //退款退货状态 "order_status_text":"已经发货", //订单状态 "order_status_html":"<li>1. 商品已发出;韵达快递 : 3981840340132 。<\/li><li>2. 如果买家没有及时进行收货,系统将于<time>2019-05-03 17:19:50<\/time>自动完成“确认收货”,完成交易。<\/li>", //订单状态操作提示 "order_payed":"current", //订单是否支付 current-已支付 "order_wait_confirm_goods":"current", //商家是否发货 current-商家已发货 "order_received":"", //订单是否已确认收货 current-已确认收货 "order_evaluate":"", //订单是否已被评价 current-已被评价 "express_name":"韵达快递", //物流公司 "shop_user_name":"keynote", //店主账号 "shop_tel":"18667902579" //店铺联系电话 }} <<< error ``` ``` #### 订单评价列表 ``` <pre class="calibre14">``` get:/index.php?ctl=Api_Trade_Order&met=getEvaluateList&typ=json int:page#页 int:rows#每页显示记录数 string:goods_name#商品名称 string:shop_name#店铺名称 string:menber_name#会员账号 string:scores#分数1-5 string:start_time#查询评价生成开始时间 YY-MM-DD H:I:S string:end_time#查询评价生成结束时间 YY-MM-DD H:I:S <<< success { "cmd_id":-140, "status":200, "msg":"success", "data":{ "page":1, "total":29, "totalsize":"29", "records":"29", "items":[ { "evaluation_goods_id":"1", //评价id "user_id":"10003", //会员id "member_name":"qdhuang", //会员账户 "order_id":"DD-10004-1-102-20190327165833-0001", //订单id "shop_id":"1", //店铺id "shop_name":"店铺名称1", //店铺名称 "common_id":"13", //商品common_id "goods_id":"13", //商品goods_id "goods_name":"测试商品1", //商品名称 "goods_price":"176.00", //商品价格 "goods_image":"http:\/\/shop.com\/image.php\/shop\/data\/upload\/media\/00f844d3e1adc84fc09d03ca6ec48be0\/10004\/1\/image\/20190321\/1553156501608104.jpg", //商品图片 "scores":"1", //评价分数 "result":"bad", //评价结果 "content":"111111111", //内容 "image":"", //晒单图片 "isanonymous":"0", //是否匿名评价 0-不匿名 1-匿名 "create_time":"2019-03-27 17:35:01", //创建时间 "status":"1", //状态 0禁止显示 1显示 2置顶 "explain_content":"", //解释内容 "update_time":"0000-00-00 00:00:00", //更新时间 "evaluation_from":"1", //1-电脑端 2-手机端 "id":"1" } ]}} <<< error ``` ``` #### 订单评价详情 ``` <pre class="calibre14">``` get:/index.php?ctl=Api_Trade_Order&met=getEvaluateInfo&typ=json *string:id#评论id <<< success { "cmd_id": -140, "status": 200, "msg": "success", "data": { "cmd_id": -140, "status": 200, "msg": "success", "data": { "evaluation_goods_id": "1", //评论id "user_id": "10003", //会员id "member_name": "qdhuang", //会员账户 "order_id": "DD-10004-1-102-20190327165833-0001", //订单id "shop_id": "1", //店铺id "shop_name": "店铺", //店铺名称 "common_id": "13", //商品common_id "goods_id": "13", //商品goods_id "goods_name": "测试商品", //商品名称 "goods_price": "176.00", //商品价格 "goods_image": "http:\/\/shop.com\/image.php\/shop\/data\/upload\/media\/00f844d3e1adc84fc09d03ca6ec48be0\/10004\/1\/image\/20190321\/1553156501608104.jpg", //商品图片 "scores": "1", //评分1-5 "result": "bad", //评价结果 "content": "测试111111111", //评价内容 "image": "", //晒单图片 "isanonymous": "0", //是否匿名评价 0-不匿名 1-匿名 "create_time": "2019-03-27 17:35:01", //创建时间 "status": "1", //状态 0禁止显示 1显示 2置顶 "explain_content": "", //解释内容 "update_time": "0000-00-00 00:00:00", //更新时间 "evaluation_from": "1", //1-电脑端 2-手机端 "id": "1" } } } <<< error ``` ``` #### 删除订单评价 ``` <pre class="calibre15">``` get:/index.php?ctl=Api_Trade_Order&met=removeEvaluate&typ=json *int:id#评论id <<< success {"cmd_id":-140,"status":200,"msg":"success","data":[]} <<< error {"cmd_id":-140,"status":250,"msg":"failure","data":[]} ``` ```