您所在位置: 首页 > > gome.order.unpaidOrders.get
  •  gome.order.unpaidOrders.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-09-02 16:55:25 开始时间
      endDate Date 2016-09-01 16:55:25 结束时间
      fields String subOrderId,orderNo,orderOrigin,orderState,currencyCode,ownShop,subOrderType,orderStateTime,orderDate,reasonCode,head,headType,contentCode,invoiceType,remark,storeModel,distributionModel,deliveryWeekendFlag,distributionTime,payModel,paySate,sellingAmount,marketAmount,totalPrice,prePayment,receivableAmount,phoneArrangementFlag,freight,isInvoiced,logisticsCorp,appraise,customerTaxNum,opinionDesc,receiveDate,appraiseDate,finishTime,shortSupplyModel,partDiscountPrice,couponValue,orderDetails,consignee,userId 商家希望返回的未付款订单的信息字段,每个字段以逗号分隔,实际必须用英文逗号才行
      orderOrigin String GMPS 订单来源 GMPS=国美预售,PT=拼团订单
      pageNo Integer 1 页码(取值范围 大于零的整数, 默认值 1)
      pageSize Integer 100 每页记录数(最大100,默认值:100)
    • Java


      GmosClient client = new DefaultGmosClient(url, appKey, secret);
      GomeOrderUnpaidOrdersGetRequest request = new GomeOrderUnpaidOrdersGetRequest();
        //详细参数信息请参考API详情页面。
        request.setOrderNo("932324242");
        request.setStartDate("2016-09-02 16:55:25");
        request.setEndDate("2016-09-01 16:55:25");
        request.setFields("subOrderId,orderNo,orderOrigin,orderState,currencyCode,ownShop,subOrderType,orderStateTime,orderDate,reasonCode,head,headType,contentCode,invoiceType,remark,storeModel,distributionModel,deliveryWeekendFlag,distributionTime,payModel,paySate,sellingAmount,marketAmount,totalPrice,prePayment,receivableAmount,phoneArrangementFlag,freight,isInvoiced,logisticsCorp,appraise,customerTaxNum,opinionDesc,receiveDate,appraiseDate,finishTime,shortSupplyModel,partDiscountPrice,couponValue,orderDetails,consignee,userId");
        request.setOrderOrigin("GMPS");
        request.setPageNo(1);
        request.setPageSize(100);
      GomeOrderUnpaidOrdersGetResponse response = client.execute(request);
      System.out.println(response.getBody());


      PHP


      $client = new GmosClient;
        $client -> appkey = $appkey;
        $client -> secretKey = $secret;
        $request = new GomeOrderUnpaidOrdersGetRequest;
        //详细参数信息请参考API详情页面。
        $request -> setOrderNo("932324242");
        $request -> setStartDate("2016-09-02 16:55:25");
        $request -> setEndDate("2016-09-01 16:55:25");
        $request -> setFields("subOrderId,orderNo,orderOrigin,orderState,currencyCode,ownShop,subOrderType,orderStateTime,orderDate,reasonCode,head,headType,contentCode,invoiceType,remark,storeModel,distributionModel,deliveryWeekendFlag,distributionTime,payModel,paySate,sellingAmount,marketAmount,totalPrice,prePayment,receivableAmount,phoneArrangementFlag,freight,isInvoiced,logisticsCorp,appraise,customerTaxNum,opinionDesc,receiveDate,appraiseDate,finishTime,shortSupplyModel,partDiscountPrice,couponValue,orderDetails,consignee,userId");
        $request -> setOrderOrigin("GMPS");
        $request -> setPageNo(1);
        $request -> setPageSize(100);
      $response = $client -> execute($request);
      


      Python


      #详细参数信息请参考API详情页面。
      request = new GomeOrderUnpaidOrdersGetRequest(url, port, "932324242", "2016-09-02 16:55:25", "2016-09-01 16:55:25", "subOrderId,orderNo,orderOrigin,orderState,currencyCode,ownShop,subOrderType,orderStateTime,orderDate,reasonCode,head,headType,contentCode,invoiceType,remark,storeModel,distributionModel,deliveryWeekendFlag,distributionTime,payModel,paySate,sellingAmount,marketAmount,totalPrice,prePayment,receivableAmount,phoneArrangementFlag,freight,isInvoiced,logisticsCorp,appraise,customerTaxNum,opinionDesc,receiveDate,appraiseDate,finishTime,shortSupplyModel,partDiscountPrice,couponValue,orderDetails,consignee,userId", "GMPS", 1, 100)
      try:
        response = request.getResponse()
        print(response)
      except Exception, e:
        print(e)