POST api/housereq/tradereq

求购

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

Request 信息

URI 参数

None.

Body 参数

参数

ReqModel
名称说明数据类型附加信息
ReqId

买房求租id,id大于0表示修改,不传或者为0表示新增

integer

None.

CustId

客户id

integer

None.

CustName

客户名,注册的用户填入其姓名,未注册的填入 用户+clientId

string

None.

ClientId

设备id

string

Required

Max length: 50

RegionCode

区域Code

string

Required

RegionName

区域名

string

Required

BoardName

版块名

string

None.

BoardId

版块Id

integer

None.

RoomCount

integer

Range: inclusive between 1 and 10

LowArea

最低面积

decimal number

None.

HignArea

最高面积

decimal number

None.

LowPrice

最低价

decimal number

None.

HignPrice

最高价

decimal number

None.

ReqType

请求类型

FromType

None.

Phone

手机

string

Matching regular expression pattern: ^1[3|5|8|4|7][0-9]{9}$

Max length: 11

Description

其他说明

string

Max length: 500

Platform

发布平台-来源

string

None.

City

城市

string

Required

Token

token

string

Required

Request 数据格式

application/json, text/json

示例:
{
  "ReqId": 1,
  "CustId": 1,
  "CustName": "sample string 1",
  "ClientId": "sample string 2",
  "RegionCode": "sample string 3",
  "RegionName": "sample string 4",
  "BoardName": "sample string 5",
  "BoardId": 1,
  "RoomCount": 1,
  "LowArea": 1.1,
  "HignArea": 1.1,
  "LowPrice": 1.1,
  "HignPrice": 1.1,
  "ReqType": 0,
  "Phone": "sample string 6",
  "Description": "sample string 7",
  "Platform": "sample string 8",
  "City": "sample string 9",
  "Token": "sample string 10"
}

application/xml, text/xml

示例:
<ReqModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HouseReq">
  <Platform i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API" />
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 10</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 9</City>
  <BoardId>1</BoardId>
  <BoardName>sample string 5</BoardName>
  <ClientId>sample string 2</ClientId>
  <CustId>1</CustId>
  <CustName>sample string 1</CustName>
  <Description>sample string 7</Description>
  <HignArea>1.1</HignArea>
  <HignPrice>1.1</HignPrice>
  <LowArea>1.1</LowArea>
  <LowPrice>1.1</LowPrice>
  <Phone>sample string 6</Phone>
  <Platform>sample string 8</Platform>
  <RegionCode>sample string 3</RegionCode>
  <RegionName>sample string 4</RegionName>
  <ReqId>1</ReqId>
  <ReqType>Web</ReqType>
  <RoomCount>1</RoomCount>
</ReqModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

ReqResult
名称说明数据类型附加信息
ReqId

成功后的reqId

integer

None.

NoticeCustCount

通知的经纪人数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "ReqId": 1,
  "NoticeCustCount": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<ReqResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HouseReq">
  <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 3</Msg>
  <NoticeCustCount>2</NoticeCustCount>
  <ReqId>1</ReqId>
</ReqResult>