POST api/common/getrates

获取利率

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

CityModel
名称说明数据类型附加信息
City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">
  <Platform>sample string 3</Platform>
  <Token>sample string 2</Token>
  <City>sample string 1</City>
</CityModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

BorrowRateResult
名称说明数据类型附加信息
BorrowRates

贷款利率

Collection of BorrowRate

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "BorrowRates": [
    {
      "Title": "sample string 1",
      "Start": "2020-04-06T03:37:49.7553383+08:00",
      "End": "2020-04-06T03:37:49.7553383+08:00",
      "Rates": [
        {
          "MinYear": 1,
          "MaxYear": 2,
          "ProvidentRate": 3.1,
          "BizRate": 4.1
        },
        {
          "MinYear": 1,
          "MaxYear": 2,
          "ProvidentRate": 3.1,
          "BizRate": 4.1
        }
      ]
    },
    {
      "Title": "sample string 1",
      "Start": "2020-04-06T03:37:49.7553383+08:00",
      "End": "2020-04-06T03:37:49.7553383+08:00",
      "Rates": [
        {
          "MinYear": 1,
          "MaxYear": 2,
          "ProvidentRate": 3.1,
          "BizRate": 4.1
        },
        {
          "MinYear": 1,
          "MaxYear": 2,
          "ProvidentRate": 3.1,
          "BizRate": 4.1
        }
      ]
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BorrowRateResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Common">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
  <BorrowRates>
    <BorrowRateResult.BorrowRate>
      <End>2020-04-06T03:37:49.7553383+08:00</End>
      <Rates>
        <BorrowRateResult.Rate>
          <BizRate>4.1</BizRate>
          <MaxYear>2</MaxYear>
          <MinYear>1</MinYear>
          <ProvidentRate>3.1</ProvidentRate>
        </BorrowRateResult.Rate>
        <BorrowRateResult.Rate>
          <BizRate>4.1</BizRate>
          <MaxYear>2</MaxYear>
          <MinYear>1</MinYear>
          <ProvidentRate>3.1</ProvidentRate>
        </BorrowRateResult.Rate>
      </Rates>
      <Start>2020-04-06T03:37:49.7553383+08:00</Start>
      <Title>sample string 1</Title>
    </BorrowRateResult.BorrowRate>
    <BorrowRateResult.BorrowRate>
      <End>2020-04-06T03:37:49.7553383+08:00</End>
      <Rates>
        <BorrowRateResult.Rate>
          <BizRate>4.1</BizRate>
          <MaxYear>2</MaxYear>
          <MinYear>1</MinYear>
          <ProvidentRate>3.1</ProvidentRate>
        </BorrowRateResult.Rate>
        <BorrowRateResult.Rate>
          <BizRate>4.1</BizRate>
          <MaxYear>2</MaxYear>
          <MinYear>1</MinYear>
          <ProvidentRate>3.1</ProvidentRate>
        </BorrowRateResult.Rate>
      </Rates>
      <Start>2020-04-06T03:37:49.7553383+08:00</Start>
      <Title>sample string 1</Title>
    </BorrowRateResult.BorrowRate>
  </BorrowRates>
</BorrowRateResult>