GET api/Agent/Rebate?year={year}
返回返款账户的信息,因返款账户总是以年度为单位组织,因此会返回一个集合。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。 为向下兼容,同功能的WebForms接口访问地址为~/Source/QueryFKRec.aspx。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| year |
年度,如“2018”,当指定此参数时,将仅返回对应的年度账户的信息。 |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
返回返款账户的信息,因返款账户总是以年度为单位组织,因此会返回一个集合。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。 为向下兼容,同功能的WebForms接口访问地址为~/Source/QueryFKRec.aspx。
Collection of RebateAccount| Name | Description | Type | Additional information |
|---|---|---|---|
| customertypeid |
客户属性ID,"1"地接社,“2”组团社,“3”协议单位,“4”地接社部门,“5”组团社部门,“7”导游员。 |
string |
None. |
| customerid |
客户ID |
string |
None. |
| customername |
客户名称 |
string |
None. |
| year |
年度,返款账户总是以年度为单位组织。 |
string |
None. |
| previousbalance |
上期结余 |
decimal number |
None. |
| totalrecharge |
累计返款 |
decimal number |
None. |
| totalconsumption |
累计消费 |
decimal number |
None. |
| currentbalance |
当前结余 |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"customertypeid": "sample string 1",
"customerid": "sample string 2",
"customername": "sample string 3",
"year": "sample string 4",
"previousbalance": 5.0,
"totalrecharge": 6.0,
"totalconsumption": 7.0,
"currentbalance": 8.0
},
{
"customertypeid": "sample string 1",
"customerid": "sample string 2",
"customername": "sample string 3",
"year": "sample string 4",
"previousbalance": 5.0,
"totalrecharge": 6.0,
"totalconsumption": 7.0,
"currentbalance": 8.0
}
]
application/xml, text/xml
Sample:
<ArrayOfRebateAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface">
<RebateAccount>
<currentbalance>8</currentbalance>
<customerid>sample string 2</customerid>
<customername>sample string 3</customername>
<customertypeid>sample string 1</customertypeid>
<previousbalance>5</previousbalance>
<totalconsumption>7</totalconsumption>
<totalrecharge>6</totalrecharge>
<year>sample string 4</year>
</RebateAccount>
<RebateAccount>
<currentbalance>8</currentbalance>
<customerid>sample string 2</customerid>
<customername>sample string 3</customername>
<customertypeid>sample string 1</customertypeid>
<previousbalance>5</previousbalance>
<totalconsumption>7</totalconsumption>
<totalrecharge>6</totalrecharge>
<year>sample string 4</year>
</RebateAccount>
</ArrayOfRebateAccount>