POST api/Setting/KH_WEBZH/Shop/Insert

为某个客户单位互联网账户添加一个自营零售店铺关联。

Request Information

URI Parameters

None.

Body Parameters

KH_WEBZH_ShopItemParm
NameDescriptionTypeAdditional information
DWID

客户ID。

string

Required

Max length: 36

DWSX

客户属性1-地接社,2组团社,3-协议单位,4-地接部门,5-组团部门,7导游员。。

string

Required

Max length: 1

Min length: 1

ShopId

店铺的ID。

string

Required

Max length: 4

UseableStatus

是否启用,“1”启用,0禁用。

string

Required

Max length: 1

Min length: 1

NeedReplay

是否需要回调,1是,0否。

string

Max length: 1

ReplayUrl

回调地址。

string

Max length: 200

ReplayMethod

回调方法,有POST和GET两个取值。

string

Max length: 4

ReplayDataType

回调数据类型,只有JSON一个取值。

string

Max length: 4

Reserve1

保留一

string

Max length: 50

Reserve2

保留二

string

Max length: 50

Request Formats

application/json, text/json

Sample:
{
  "DWID": "sample string 1",
  "DWSX": "sample string 2",
  "ShopId": "sample string 3",
  "UseableStatus": "sample string 4",
  "NeedReplay": "sample string 5",
  "ReplayUrl": "sample string 6",
  "ReplayMethod": "sample string 7",
  "ReplayDataType": "sample string 8",
  "Reserve1": "sample string 9",
  "Reserve2": "sample string 10"
}

application/xml, text/xml

Sample:
<KH_WEBZH_ShopItemParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Setting">
  <DWID>sample string 1</DWID>
  <DWSX>sample string 2</DWSX>
  <NeedReplay>sample string 5</NeedReplay>
  <ReplayDataType>sample string 8</ReplayDataType>
  <ReplayMethod>sample string 7</ReplayMethod>
  <ReplayUrl>sample string 6</ReplayUrl>
  <Reserve1>sample string 9</Reserve1>
  <Reserve2>sample string 10</Reserve2>
  <ShopId>sample string 3</ShopId>
  <UseableStatus>sample string 4</UseableStatus>
</KH_WEBZH_ShopItemParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

为某个客户单位互联网账户添加一个自营零售店铺关联。

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.