GET api/WebInterface/Agent/ProviderConfig/Query/{username}
获取供应商参数设置。
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
Required |
Body Parameters
None.
Response Information
Resource Description
获取供应商参数设置。
ProviderConfig| Name | Description | Type | Additional information |
|---|---|---|---|
| providerid |
供应商ID。 |
string |
None. |
| providername |
供应商名称(如XXX景区)。 |
string |
None. |
| type |
供应商类型,‘1’表示景区类供应商,‘2’表示演艺剧场(影院)类供应商 |
string |
None. |
| sublevelmode |
是否处于分时段模式。‘1’分时段售检票模式,‘0’不分时段模式,仅当type为“1”时,此值才有意义。 [2023-03-10后修改]注意,当此值为‘1’时,表示有至少一个票型处于“分时段售检票模式”,但不表示整个景区的所有票型都处于分时段模式。 因此,此值为1表示可以查询到“线路”和“时段”,但不表示所有的票型都必须具有“选择的时段资源”才能提交。 在原获取产品的接口中,不提供“servicecode”参数时,将不返回“具有时段特性”的票型产品,反之将不返回“没有时段特性”的票型产品。 |
string |
None. |
| feemode |
是否启用了交易违约手续费。‘1’启用了违约手续费,‘0’未启用违约手续费。 |
string |
None. |
| feeconfigs |
违约手续费规则 |
Collection of ProviderFeeConfig |
None. |
| idcardgateinable |
是否允许使用二代身份证过闸,"1"允许,“0”不允许。 |
string |
None. |
| mobilebarcodegateinable |
是否允许使用手机二维码过闸,“1”允许,“0”不允许。 |
string |
None. |
| getpaperticketgateinbale |
前台换制纸制票后过闸或取票后过闸,“1”允许,此值恒为“1”。 |
string |
None. |
| canpaywithcash |
是否允许前台现付,"1"允许,"0"不允许。 |
string |
None. |
| canpaywithprepayment |
是否允许预订金支付,“1”允许,“0”不允许。 |
string |
None. |
| canpaywithrebate |
是否允许返款余额支付,"1"允许,"0"不允许。 |
string |
None. |
| canpaywiththirdparty |
是否允许即时支付,"1"允许,"0"不允许。 |
string |
None. |
| neednotify |
默认情况下,您的订单提交,支付后是否需要发送官方通知给游客,此值的优先级低于在交易时指定的neednotify参数,"0"不需要,“1”需要。 |
string |
None. |
| needreplay |
是否需要将提交成功、支付成功、过闸、退票等事件回调通知您的系统。 |
string |
None. |
| replayurl |
回调通知的地址。我们总是使用Get方式调用这个地址,格式总是replayurl?parm=XXXX sign=XXXXX。 |
string |
None. |
| replaydatatype |
回调数据格式,仅可选XML或JSON两个取值之一。 |
string |
None. |
| replaymethod |
回调方法,仅可选POST或GET两个取值之一。 |
string |
None. |
| maxlimit |
您的最大每天预订数量,0无有限制,正整数表示当前代理商日最大代理许可值(人数),负整数无意义。 |
integer |
None. |
| activerefund |
是否允许您通过API发起退票,"1"允许,"0"不允许。 |
string |
None. |
| orderpaytimelimit |
当您不允许使用前台现付时,您的订单必须在预订后多久时间内完成支付,单位分钟。 |
integer |
None. |
| mobile1 |
代理商留存在供应商处的手机一 |
string |
None. |
| mobile2 |
代理商留存在供应商处的手机二 |
string |
None. |
Response Formats
application/json, text/json
{
"providerid": "sample string 1",
"providername": "sample string 2",
"type": "sample string 3",
"sublevelmode": "sample string 4",
"feemode": "sample string 5",
"feeconfigs": [
{
"productid": "sample string 1",
"productname": "sample string 2",
"unitcount": 3,
"unit": "sample string 4",
"referencetime": "sample string 5",
"feecalmode": "sample string 6",
"feevalue": 7.0
},
{
"productid": "sample string 1",
"productname": "sample string 2",
"unitcount": 3,
"unit": "sample string 4",
"referencetime": "sample string 5",
"feecalmode": "sample string 6",
"feevalue": 7.0
}
],
"idcardgateinable": "sample string 6",
"mobilebarcodegateinable": "sample string 7",
"getpaperticketgateinbale": "sample string 8",
"canpaywithcash": "sample string 9",
"canpaywithprepayment": "sample string 10",
"canpaywithrebate": "sample string 11",
"canpaywiththirdparty": "sample string 12",
"neednotify": "sample string 13",
"needreplay": "sample string 14",
"replayurl": "sample string 15",
"replaydatatype": "sample string 16",
"replaymethod": "sample string 17",
"maxlimit": 18,
"activerefund": "sample string 19",
"orderpaytimelimit": 20,
"mobile1": "sample string 21",
"mobile2": "sample string 22"
}
application/xml, text/xml
<ProviderConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface">
<activerefund>sample string 19</activerefund>
<canpaywithcash>sample string 9</canpaywithcash>
<canpaywithprepayment>sample string 10</canpaywithprepayment>
<canpaywithrebate>sample string 11</canpaywithrebate>
<canpaywiththirdparty>sample string 12</canpaywiththirdparty>
<feeconfigs>
<ProviderFeeConfig>
<feecalmode>sample string 6</feecalmode>
<feevalue>7</feevalue>
<productid>sample string 1</productid>
<productname>sample string 2</productname>
<referencetime>sample string 5</referencetime>
<unit>sample string 4</unit>
<unitcount>3</unitcount>
</ProviderFeeConfig>
<ProviderFeeConfig>
<feecalmode>sample string 6</feecalmode>
<feevalue>7</feevalue>
<productid>sample string 1</productid>
<productname>sample string 2</productname>
<referencetime>sample string 5</referencetime>
<unit>sample string 4</unit>
<unitcount>3</unitcount>
</ProviderFeeConfig>
</feeconfigs>
<feemode>sample string 5</feemode>
<getpaperticketgateinbale>sample string 8</getpaperticketgateinbale>
<idcardgateinable>sample string 6</idcardgateinable>
<maxlimit>18</maxlimit>
<mobile1>sample string 21</mobile1>
<mobile2>sample string 22</mobile2>
<mobilebarcodegateinable>sample string 7</mobilebarcodegateinable>
<neednotify>sample string 13</neednotify>
<needreplay>sample string 14</needreplay>
<orderpaytimelimit>20</orderpaytimelimit>
<providerid>sample string 1</providerid>
<providername>sample string 2</providername>
<replaydatatype>sample string 16</replaydatatype>
<replaymethod>sample string 17</replaymethod>
<replayurl>sample string 15</replayurl>
<sublevelmode>sample string 4</sublevelmode>
<type>sample string 3</type>
</ProviderConfig>
application/bson
Binary JSON content. See http://bsonspec.org for details.