POST api/ProviderConfig
设置供应商处的参数。 向下兼容,同功能的WebForms接口访问地址为Source/SetAgentParameters.aspx。
Request Information
URI Parameters
None.
Body Parameters
设置的内容
ProviderConfigParm| Name | Description | Type | Additional information |
|---|---|---|---|
| replayurl |
回调地址,此地址与代理商账户绑定,每个代理商可以设置一个回调地址,回调地址为空时,表示不需要回调。此值请指向某一个回调的页面,回调时,将在些值的基础上加上"?parm=xxxxxxx(此处为与符号)sign=XXXXX的方式发起。 |
string |
Max length: 256 |
| sendofficiallysnotify |
发送官方通知短信,“1”官方发送通知短信和彩信,”0”代理商自行发送官方短信。此值不显式设置为“0”时,永远为“1”。此值的优先级低于在发起交易时指定的“发送官方通知”参数。 |
string |
Max length: 1 |
| replaydatatype |
回调数据格式,仅可选XML或JSON两个取值之一。 |
string |
Max length: 4 |
| replaymethod |
回调方法,仅可选POST或GET两个取值之一。 |
string |
Max length: 4 |
Request Formats
application/json, text/json
Sample:
{
"replayurl": "sample string 1",
"sendofficiallysnotify": "sample string 2",
"replaydatatype": "sample string 3",
"replaymethod": "sample string 4"
}
application/xml, text/xml
Sample:
<ProviderConfigParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface"> <replaydatatype>sample string 3</replaydatatype> <replaymethod>sample string 4</replaymethod> <replayurl>sample string 1</replayurl> <sendofficiallysnotify>sample string 2</sendofficiallysnotify> </ProviderConfigParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
设置供应商处的参数。 向下兼容,同功能的WebForms接口访问地址为Source/SetAgentParameters.aspx。
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.