POST api/DiaoBo/AddDiaoBoItem
增加一条调拨单
Request Information
URI Parameters
None.
Body Parameters
addDiaoboItemPost| Name | Description | Type | Additional information |
|---|---|---|---|
| fromGroupId | integer |
None. |
|
| fromGroupName | string |
None. |
|
| toGroupId | integer |
None. |
|
| toGroupName | string |
None. |
|
| type |
1:发货,2:店铺退货,3:店铺补货,4:店铺间调货,5:店铺来货,6:退给其他单位 |
DIAOBOTYPE |
None. |
| list | 数组: diaoboProductItem |
None. |
|
| imgId | integer |
None. |
|
| remarks | string |
None. |
|
| ToOther |
退货给其他单位的单位名称,如:徐州意尔康 |
string |
None. |
| diaoboyuanyin | string |
None. |
|
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"fromGroupId": 1,
"fromGroupName": "sample string 2",
"toGroupId": 1,
"toGroupName": "sample string 3",
"type": 1,
"list": [
{
"code": "sample string 1",
"count": 2
},
{
"code": "sample string 1",
"count": 2
}
],
"imgId": 1,
"remarks": "sample string 4",
"ToOther": "sample string 5",
"diaoboyuanyin": "sample string 6",
"tel": "sample string 7",
"token": "sample string 8",
"uid": 1
}
application/xml, text/xml
Sample:
<addDiaoboItemPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
<tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 7</tel>
<token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 8</token>
<uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
<ToOther>sample string 5</ToOther>
<diaoboyuanyin>sample string 6</diaoboyuanyin>
<fromGroupId>1</fromGroupId>
<fromGroupName>sample string 2</fromGroupName>
<imgId>1</imgId>
<list>
<diaoboProductItem>
<code>sample string 1</code>
<count>2</count>
</diaoboProductItem>
<diaoboProductItem>
<code>sample string 1</code>
<count>2</count>
</diaoboProductItem>
</list>
<remarks>sample string 4</remarks>
<toGroupId>1</toGroupId>
<toGroupName>sample string 3</toGroupName>
<type>fahuo</type>
</addDiaoboItemPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResult| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <code>1</code> <msg>sample string 2</msg> </BaseResult>