GET api/Setting/KH_WEBZH/Query?dwid={dwid}&dwlx={dwlx}
依据代理商客户ID,客户类型查询代理商的信息,并以简单对象进行返回。 (HAWK认证)。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| dwid |
客户ID。 |
string |
Required |
| dwlx |
客户类型:1-地接社,2-组团社,3-协议单位,4-地接社部门,5-组团社部门 6-协议单位部门,7-导游员,8-官方互联网专用中所示的数字部分。 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
依据代理商客户ID,客户类型查询代理商的信息,并以简单对象进行返回。 (HAWK认证)。
AgentInfoResult| Name | Description | Type | Additional information |
|---|---|---|---|
| agentid |
客户ID,与dwlx一起,组成实体的主键。 |
string |
None. |
| username |
客户的用户登陆名。 |
string |
None. |
| useable |
启用标志,“1”表示 启用,其他值表示被禁用。 |
string |
None. |
| useprepaymenttopay |
是否可以启用预订金方式进行支付。“1”表示允许,其他值表示不允许。 |
string |
None. |
| agenttypecode |
客户的属性代码,1-地接社,2-组团社,3-协议单位,4-地接社部门,5-组团社部门 6-协议单位部门,7-导游员,8-官方互联网专用中所示的数字部分。 |
string |
None. |
| mobile1 |
留存在供应商处的联系手机1 |
string |
None. |
| mobile2 |
留存在供应商处的联系手机2 |
string |
None. |
| usecashtopay |
当前代理商是否可以使用前台现付的方式支付订单。 (在网上预订,但不进行支付,订单保留至生效日期当天结束)。 |
string |
None. |
| agenttypename |
客户类型的名称:1-地接社,2-组团社,3-协议单位,4-地接社部门,5-组团社部门 6-协议单位部门,7-导游员,8-官方互联网专用中所示的汉字部分。 |
string |
None. |
| agentname |
客户的名称,如“XXXX旅行社”。 |
string |
None. |
| daylimit |
每天最大订购量限制(所有票型订购数量相加,每一个自然日,不能超过此值,超过此值的部分都将发起预订失败),0及0以下表示不限。 |
integer |
None. |
| userebatetopay |
是否可以使用返款余额进行支付,“1”允许,其他值不允许。 |
string |
None. |
|
邮箱 |
string |
None. |
|
| reserve1 |
保留一 |
string |
None. |
| reserve2 |
保留二 |
string |
None. |
| reserve3 |
保留三 |
string |
None. |
| callbackaddress |
电子门票系统进行回调时,回调指向的URL地址,示例如:www.xxxx.com\ybxcallback\。 |
string |
None. |
| sendnotifysms |
在代理商提交订单并支付成功之后,是否需要供应商给订单内指明的客人发送短信通知(通知内含过闸条码)。 |
string |
None. |
| callbackmethod |
回调方法,“GET”或“POST”之一。 |
string |
None. |
| callbackdatatype |
回调时使用的数据类型,“JOSN”或“XML”两者之一。 |
string |
None. |
| HasJDConfig |
是否拥有京东文旅的账号配置,1是,0否。 |
string |
None. |
Response Formats
application/json, text/json
{
"agentid": "sample string 1",
"username": "sample string 2",
"useable": "sample string 3",
"useprepaymenttopay": "sample string 4",
"agenttypecode": "sample string 5",
"mobile1": "sample string 6",
"mobile2": "sample string 7",
"usecashtopay": "sample string 8",
"agenttypename": "sample string 9",
"agentname": "sample string 10",
"daylimit": 11,
"userebatetopay": "sample string 12",
"email": "sample string 13",
"reserve1": "sample string 14",
"reserve2": "sample string 15",
"reserve3": "sample string 16",
"callbackaddress": "sample string 17",
"sendnotifysms": "sample string 18",
"callbackmethod": "sample string 19",
"callbackdatatype": "sample string 20",
"HasJDConfig": "sample string 21"
}
application/xml, text/xml
<AgentInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result"> <HasJDConfig>sample string 21</HasJDConfig> <agentid>sample string 1</agentid> <agentname>sample string 10</agentname> <agenttypecode>sample string 5</agenttypecode> <agenttypename>sample string 9</agenttypename> <callbackaddress>sample string 17</callbackaddress> <callbackdatatype>sample string 20</callbackdatatype> <callbackmethod>sample string 19</callbackmethod> <daylimit>11</daylimit> <email>sample string 13</email> <mobile1>sample string 6</mobile1> <mobile2>sample string 7</mobile2> <reserve1>sample string 14</reserve1> <reserve2>sample string 15</reserve2> <reserve3>sample string 16</reserve3> <sendnotifysms>sample string 18</sendnotifysms> <useable>sample string 3</useable> <usecashtopay>sample string 8</usecashtopay> <useprepaymenttopay>sample string 4</useprepaymenttopay> <userebatetopay>sample string 12</userebatetopay> <username>sample string 2</username> </AgentInfoResult>
application/bson
Binary JSON content. See http://bsonspec.org for details.