您所在位置: 首页 > > gome.order.orders.get
  •  gome.order.orders.get查询多个订单

    • 系统级输入参数
    • 应用级输入参数
    • 请求示例
    • 返回结果参数
    • 返回示例
    • API工具
    • 名称 类型 必须 描述
      $app String 应用的app_key
      $method String API接口名称
      $sign String 签名
      $token String 采用OAuth授权方式为必填参数
      $v String API协议版本,可选值:1.0.0
    • 名称 类型 必须 示例值 描述
      orderNo String 932324242 主订单号(只能输入数字)
      startDate Date 2016-10-10 10:20:30 开始时间(修改时间)
      endDate Date 2016-10-10 10:20:30 结束时间(修改时间)
      status String EX 订单状态( PR:初始,PP:订单处理中,EX:已出库,DL:已妥投,CWS:客服取消-待商家确认,CWC:商家申请取消,DFC:发货失败取消 ,RCC:客服取消,RV:拒收,RT:拒收已退回库房)
      fields String orderId,orderNo,vendorId,subOrderType,payType,status,customerRemark,freightPrice,itemTotalPrice,orderTotalPrice,payment,orderTime,payTime,payStatus,endOrderTime,orderChangeTime,exTime,trackingNo,gomeFreight,addressShortName,packageNum,trackingCompany,warehouseId,warehouseName,blacklistId,blacklistType,reason,consignee,userId,orderDetails,partDiscountPrice,couponValue,paymentDiscount,idType,idNum,idName,salesModel,opinionDesc,headType,orderServiceType,orderOrigin 商家希望返回的订单的信息字段,每个字段以逗号分隔,实际必须用英文逗号才行
      orderOrigin String 1000 订单来源 (1000=国美电子商务,1001=国美抢购,1002=国美团购站点,1021=WAP普通站点,1022=WAP团购站点,1023=WAP抢购站点,1017=国美预售,1100=手机客户端,1101=手机客户端抢购,1102=手机客户端团购,1050=海外购,3050=海外购手机客户端,4050=海外购WAP站点,3045=APP礼物购,4045=WAP礼物购)
      pageNo Integer 1 页码(取值范围 大于零的整数, 默认值 1)
      pageSize Integer 100 每页记录数(最大100,默认值:100)
    • Java


      GmosClient client = new DefaultGmosClient(url, appKey, secret);
      GomeOrderOrdersGetRequest request = new GomeOrderOrdersGetRequest();
        //详细参数信息请参考API详情页面。
        request.setOrderNo("932324242");
        request.setStartDate("2016-10-10 10:20:30");
        request.setEndDate("2016-10-10 10:20:30");
        request.setStatus("EX");
        request.setFields("orderId,orderNo,vendorId,subOrderType,payType,status,customerRemark,freightPrice,itemTotalPrice,orderTotalPrice,payment,orderTime,payTime,payStatus,endOrderTime,orderChangeTime,exTime,trackingNo,gomeFreight,addressShortName,packageNum,trackingCompany,warehouseId,warehouseName,blacklistId,blacklistType,reason,consignee,userId,orderDetails,partDiscountPrice,couponValue,paymentDiscount,idType,idNum,idName,salesModel,opinionDesc,headType,orderServiceType,orderOrigin");
        request.setOrderOrigin("1000");
        request.setPageNo(1);
        request.setPageSize(100);
      GomeOrderOrdersGetResponse response = client.execute(request);
      System.out.println(response.getBody());


      PHP


      $client = new GmosClient;
        $client -> appkey = $appkey;
        $client -> secretKey = $secret;
        $request = new GomeOrderOrdersGetRequest;
        //详细参数信息请参考API详情页面。
        $request -> setOrderNo("932324242");
        $request -> setStartDate("2016-10-10 10:20:30");
        $request -> setEndDate("2016-10-10 10:20:30");
        $request -> setStatus("EX");
        $request -> setFields("orderId,orderNo,vendorId,subOrderType,payType,status,customerRemark,freightPrice,itemTotalPrice,orderTotalPrice,payment,orderTime,payTime,payStatus,endOrderTime,orderChangeTime,exTime,trackingNo,gomeFreight,addressShortName,packageNum,trackingCompany,warehouseId,warehouseName,blacklistId,blacklistType,reason,consignee,userId,orderDetails,partDiscountPrice,couponValue,paymentDiscount,idType,idNum,idName,salesModel,opinionDesc,headType,orderServiceType,orderOrigin");
        $request -> setOrderOrigin("1000");
        $request -> setPageNo(1);
        $request -> setPageSize(100);
      $response = $client -> execute($request);
      


      Python


      #详细参数信息请参考API详情页面。
      request = new GomeOrderOrdersGetRequest(url, port, "932324242", "2016-10-10 10:20:30", "2016-10-10 10:20:30", "EX", "orderId,orderNo,vendorId,subOrderType,payType,status,customerRemark,freightPrice,itemTotalPrice,orderTotalPrice,payment,orderTime,payTime,payStatus,endOrderTime,orderChangeTime,exTime,trackingNo,gomeFreight,addressShortName,packageNum,trackingCompany,warehouseId,warehouseName,blacklistId,blacklistType,reason,consignee,userId,orderDetails,partDiscountPrice,couponValue,paymentDiscount,idType,idNum,idName,salesModel,opinionDesc,headType,orderServiceType,orderOrigin", "1000", 1, 100)
      try:
        response = request.getResponse()
        print(response)
      except Exception, e:
        print(e)