POST api/Shop/XmhSmallWarehouseUpdateApprovalApprove
小仓库商品库存更新
Request Information
URI Parameters
None.
Body Parameters
XmhSmallWarehouseUpdateApprovalRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| goods_sn |
商品编码 |
string |
None. |
| goods_name |
商品名称 |
string |
None. |
| goods_category |
商品类别 |
string |
None. |
| w_code |
仓库类别 |
string |
None. |
| stock |
当前库存 |
integer |
None. |
| update_stock |
修改库存 |
integer |
None. |
| update_reason |
修改原因 |
string |
None. |
| last_stock |
修改后当前库存 |
integer |
None. |
| UserName |
发起人账号 |
string |
Required |
| Pwd |
发起人密码 |
string |
Required |
| ProcessCode |
审批模板code |
string |
None. |
| ApproverDingId |
审批人钉钉ID 多个以,分割 |
string |
None. |
| CcDingId |
抄送人钉钉ID 多个以,分割 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"goods_sn": "sample string 1",
"goods_name": "sample string 2",
"goods_category": "sample string 3",
"w_code": "sample string 4",
"stock": 5,
"update_stock": 6,
"update_reason": "sample string 7",
"last_stock": 8,
"UserName": "sample string 9",
"Pwd": "sample string 10",
"ProcessCode": "sample string 11",
"ApproverDingId": "sample string 12",
"CcDingId": "sample string 13"
}
application/xml, text/xml
Sample:
<XmhSmallWarehouseUpdateApprovalRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.ShopBizModels"> <ApproverDingId>sample string 12</ApproverDingId> <CcDingId>sample string 13</CcDingId> <ProcessCode>sample string 11</ProcessCode> <Pwd>sample string 10</Pwd> <UserName>sample string 9</UserName> <goods_category>sample string 3</goods_category> <goods_name>sample string 2</goods_name> <goods_sn>sample string 1</goods_sn> <last_stock>8</last_stock> <stock>5</stock> <update_reason>sample string 7</update_reason> <update_stock>6</update_stock> <w_code>sample string 4</w_code> </XmhSmallWarehouseUpdateApprovalRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BaseOut| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
错误编码 2:error 401:鉴权失败;200:成功;500:内部错误; |
ErrCode |
None. |
| message |
消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 2,
"message": "sample string 1"
}
application/xml, text/xml
Sample:
<BaseOut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.HrWxModels"> <errcode>Error</errcode> <message>sample string 1</message> </BaseOut>