installment.md 8.43 KB

分期订单查询服务接口

1、分期支付订单列表

接口说明

接口说明 接口说明
请求域名 http://api.yoho.cn/
接口名 app.SpaceOrders.getInstallment
接口说明 获取用户分期订单列表
http请求方式 GET/POST

请求参数

名称 类型 是否必须 示例值 默认值 描述
method string app.SpaceOrders.getInstallment
uid int 5772257
type int 1 订单类型 1:全部订单,2:已还,3:进行中
page int 1 1 页数
limit int 10 10 每页大小
clientType String H5 H5 客户端类型

###请求示例 http://192.168.102.14:8080/gateway/?app_version=4.6.0&client_type=h5&debug=XYZ&limit=10&method=app.SpaceOrders.getInstallment&os_version=yohobuy%3Ah5&page=1&screen_size=720x1280&type=1&uid=8041876&v=7&client_secret=4c6f02bcc2277d79d8c3db4fe0d5c121

正常返回结果

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "order_list": [
      {
        "amount": "540.85",
        "buy_total": 1,
        "create_time": "2016/08/11",
        "install_status": "放款中",
        "order_code": 160188526,
        "order_goods": [
          {
            "buy_number": 2,
            "cn_alphabet": "CONVERSE140999CCHUCKTAYLORALLSTARJiJieKuan",
            "goods_amount": "800.0",
            "goods_image": "http://img13.static.yhbimg.com/goodsimg/2013/09/25/07/02e7522f5a8978ad1ed63770489e4c15ac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
            "goods_price": "400.0",
            "product_id": 35408,
            "product_name": "converse Chuck Taylor All Star玫瑰印花帆布鞋",
            "product_skn": 51006733
          }
        ],
        "status": 1,  //1-还款中 2-结清 3-已逾期 4-已退货5-已取消
        "uid": 8041876
      },
      {
        "amount": "0.0",
        "buy_total": 1,
        "create_time": "2016/08/11",
        "install_status": "正常",
        "order_code": 160756848,
        "order_goods": [
          {
            "buy_number": 1,
            "cn_alphabet": "CONVERSE140999CCHUCKTAYLORALLSTARJiJieKuan",
            "goods_amount": "400.0",
            "goods_image": "http://img13.static.yhbimg.com/goodsimg/2013/09/25/07/02e7522f5a8978ad1ed63770489e4c15ac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
            "goods_price": "400.0",
            "product_id": 35408,
            "product_name": "converse Chuck Taylor All Star玫瑰印花帆布鞋",
            "product_skn": 51006733
          }
        ],
        "status": 2,
        "uid": 8041876
      },
      {
        "amount": "0.0",
        "buy_total": 1,
        "create_time": "2016/08/11",
        "install_status": "正常",
        "order_code": 160828544,
        "order_goods": [
          {
            "buy_number": 1,
            "cn_alphabet": "CONVERSE140999CCHUCKTAYLORALLSTARJiJieKuan",
            "goods_amount": "400.0",
            "goods_image": "http://img13.static.yhbimg.com/goodsimg/2013/09/25/07/02e7522f5a8978ad1ed63770489e4c15ac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
            "goods_price": "400.0",
            "product_id": 35408,
            "product_name": "converse Chuck Taylor All Star玫瑰印花帆布鞋",
            "product_skn": 51006733
          }
        ],
        "status": 2,
        "uid": 8041876
      },
      {
        "amount": "834.0",
        "buy_total": 1,
        "create_time": "2016/08/13",
        "install_status": "放款中",
        "order_code": 160967332,
        "order_goods": [
          {
            "buy_number": 2,
            "cn_alphabet": "CONVERSE140999CCHUCKTAYLORALLSTARJiJieKuan",
            "goods_amount": "800.0",
            "goods_image": "http://img13.static.yhbimg.com/goodsimg/2013/09/25/07/02e7522f5a8978ad1ed63770489e4c15ac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
            "goods_price": "400.0",
            "product_id": 35408,
            "product_name": "converse Chuck Taylor All Star玫瑰印花帆布鞋",
            "product_skn": 51006733
          }
        ],
        "status": 1,
        "uid": 8041876
      },
      {
        "amount": "417.0",
        "buy_total": 1,
        "create_time": "2016/08/15",
        "install_status": "放款中",
        "order_code": 160978973,
        "order_goods": [
          {
            "buy_number": 1,
            "cn_alphabet": "CONVERSE140999CCHUCKTAYLORALLSTARJiJieKuan",
            "goods_amount": "400.0",
            "goods_image": "http://img13.static.yhbimg.com/goodsimg/2013/09/25/07/02e7522f5a8978ad1ed63770489e4c15ac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
            "goods_price": "400.0",
            "product_id": 35408,
            "product_name": "converse Chuck Taylor All Star玫瑰印花帆布鞋",
            "product_skn": 51006733
          }
        ],
        "status": 1,
        "uid": 8041876
      }
    ],
    "page": 1,
    "page_total": 5,
    "total": 5
  },
  "md5": "2bffc996490333bc379d28c56300c5a0",
  "message": "ok"
}

2、分期订单详情

接口说明

接口说明 接口说明
请求域名 http://api.yoho.cn/
接口名 app.SpaceOrders.installDetail
接口说明 分期订单详情
http请求方式 GET/POST

请求参数

名称 类型 是否必须 示例值 默认值 描述
method string app.SpaceOrders.installDetail
uid int 5772257
order_code int 1519816409 订单号
clientType String H5 H5 客户端类型

正常返回结果

{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "amount": "800.0",//订单金额
    "avg_fee_amt": "5.67/期",
    "avg_principal_amt": "133.33/期",
    "create_time": "2016-08-13",
    "order_code": 160967332,
    "refund_num":"100.00",//退货金额
    "order_goods": [
      {
        "buy_number": 2,
        "goods_amount": "800.0",
        "goods_image": "http://img13.static.yhbimg.com/goodsimg/2013/09/25/07/02e7522f5a8978ad1ed63770489e4c15ac.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
        "goods_price": "400.0",
        "product_id": 0,
        "product_name": "converse Chuck Taylor All Star玫瑰印花帆布鞋",
        "product_skn": 0
      }
    ],
    "package_list": [
      {
        "curr_amt": "138.99",
        "curr_date": "【1/6期】",
        "curr_dealy_fee_amt": "0.0",
        "curr_fee_amt": "5.66",
        "curr_principal_amt": "133.33",
        "desc": "2016-09-14",
        "sort_id": "1",
        "status": 1
      },
      {
        "curr_amt": "138.99",
        "curr_date": "【2/6期】",
        "curr_dealy_fee_amt": "0.0",
        "curr_fee_amt": "5.66",
        "curr_principal_amt": "133.33",
        "desc": "2016-10-14",
        "sort_id": "2",
        "status": 1
      },
      {
        "curr_amt": "138.99",
        "curr_date": "【3/6期】",
        "curr_dealy_fee_amt": "0.0",
        "curr_fee_amt": "5.66",
        "curr_principal_amt": "133.33",
        "desc": "2016-11-14",
        "sort_id": "3",
        "status": 1
      },
      {
        "curr_amt": "138.99",
        "curr_date": "【4/6期】",
        "curr_dealy_fee_amt": "0.0",
        "curr_fee_amt": "5.66",
        "curr_principal_amt": "133.33",
        "desc": "2016-12-14",
        "sort_id": "4",
        "status": 1
      },
      {
        "curr_amt": "138.99",
        "curr_date": "【5/6期】",
        "curr_dealy_fee_amt": "0.0",
        "curr_fee_amt": "5.66",
        "curr_principal_amt": "133.33",
        "desc": "2017-01-14",
        "sort_id": "5",
        "status": 1
      },
      {
        "curr_amt": "139.05",
        "curr_date": "【6/6期】",
        "curr_dealy_fee_amt": "0.0",
        "curr_fee_amt": "5.7",
        "curr_principal_amt": "133.35",
        "desc": "2017-02-14",
        "sort_id": "6",
        "status": 1
      }
    ],
    "total_amt": "834.0"  //订单要还总金额
  },
  "md5": "2bc02b5208e32cb87fdd6454d17a8230",
  "message": "ok"
}