POST api/Pos/Setting/Depot/T/Add
向系统中添加一个非店铺仓库。
Request Information
URI Parameters
None.
Body Parameters
被添加的仓库的信息。
PosDepotParmName | Description | Type | Additional information |
---|---|---|---|
depotid |
仓库ID,@DepotId[char](4) 。 |
string |
Required Max length: 4 Min length: 4 |
depotname |
仓库名称,@DepotName[varchar](40) 。 |
string |
Required Max length: 40 |
checkcycletime |
盘点周期,单位日,@CheckCycleTime[int] 。 |
integer |
Required |
administrativedivisions |
行政区划的代码。@AdministrativeDivisions[char](6)。 |
string |
Max length: 6 |
mailaddress |
通讯地址。@MailAddress[varchar](100)。 |
string |
Max length: 100 |
phone |
联系电话,@Phone[varchar](20) 。 |
string |
Max length: 20 |
fax |
传真,@Fax[varchar](20)。 |
string |
Max length: 20 |
longitude |
所在位置的经度,@Longitude[numeric](10, 7)。 |
decimal number |
None. |
latitude |
所在位置的纬度,@Latitude[numeric](10, 7)。 |
decimal number |
None. |
reserve1 |
保留一,@Reserve1[varchar](100)。 |
string |
Max length: 100 |
reserve2 |
保留二,@Reserve2[varchar](100)。 |
string |
Max length: 100 |
Request Formats
application/json, text/json
Sample:
{ "depotid": "sample string 1", "depotname": "sample string 2", "checkcycletime": 3, "administrativedivisions": "sample string 4", "mailaddress": "sample string 5", "phone": "sample string 6", "fax": "sample string 7", "longitude": 8.0, "latitude": 9.0, "reserve1": "sample string 10", "reserve2": "sample string 11" }
application/xml, text/xml
Sample:
<PosDepotParm 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>3</checkcycletime> <depotid>sample string 1</depotid> <depotname>sample string 2</depotname> <fax>sample string 7</fax> <latitude>9</latitude> <longitude>8</longitude> <mailaddress>sample string 5</mailaddress> <phone>sample string 6</phone> <reserve1>sample string 10</reserve1> <reserve2>sample string 11</reserve2> </PosDepotParm>
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
向系统中添加一个非店铺仓库。
CommonOperationResultName | Description | Type | Additional 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.