POST api/Pos/Setting/Shop/T/Add
添加一个店铺的API。 需要对返回值进行判断,返回值errcode=0表示成功。
Request Information
URI Parameters
None.
Body Parameters
PosShopParmName | Description | Type | Additional information |
---|---|---|---|
shopid |
店铺ID [ShopId][char](4) NOT NULL. |
string |
Required Max length: 4 Min length: 4 |
shopname |
店铺名称 [ShopName] [varchar](40) NOT NULL, |
string |
Required Max length: 40 |
state |
状态 1-启用,0停用。[State] [char](1) NOT NULL, |
string |
Required Max length: 1 Min length: 1 |
administrativedivisions |
所属行政区划代码 [AdministrativeDivisions] [char](6) NULL, |
string |
Max length: 6 |
mailaddress |
地址 [MailAddress][varchar](100) NULL, |
string |
Max length: 100 |
phone |
电话 [Phone][varchar](20) NULL, |
string |
Max length: 20 |
fax |
传真 [Fax] [varchar](20) NULL, |
string |
Max length: 20 |
checkcycletime |
盘点周期(单位为天). |
integer |
Required |
longitude |
经度 [Longitude] [numeric](10, 7) NULL, |
decimal number |
None. |
latitude |
纬度 [Latitude] [numeric](10, 7) NULL, |
decimal number |
None. |
reserve1 |
保留一 [Reserve1][varchar](100) NULL, |
string |
Max length: 100 |
reserve2 |
保留二 [Reserve2] [varchar](100) NULL, |
string |
Max length: 100 |
Request Formats
application/json, text/json
{ "shopid": "sample string 1", "shopname": "sample string 2", "state": "sample string 3", "administrativedivisions": "sample string 4", "mailaddress": "sample string 5", "phone": "sample string 6", "fax": "sample string 7", "checkcycletime": 8, "longitude": 9.0, "latitude": 10.0, "reserve1": "sample string 11", "reserve2": "sample string 12" }
application/xml, text/xml
<PosShopParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <administrativedivisions>sample string 4</administrativedivisions> <checkcycletime>8</checkcycletime> <fax>sample string 7</fax> <latitude>10</latitude> <longitude>9</longitude> <mailaddress>sample string 5</mailaddress> <phone>sample string 6</phone> <reserve1>sample string 11</reserve1> <reserve2>sample string 12</reserve2> <shopid>sample string 1</shopid> <shopname>sample string 2</shopname> <state>sample string 3</state> </PosShopParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
添加一个店铺的API。 需要对返回值进行判断,返回值errcode=0表示成功。
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
<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
Binary JSON content. See http://bsonspec.org for details.