POST api/Shop/XmhSmallWarePublicOrderApprovalApprove

小仓库公用订单审批

Request Information

URI Parameters

None.

Body Parameters

XmhSmallWarePublicOrderApprovalRequest
NameDescriptionTypeAdditional information
remark

备注

string

None.

order_money

订单金额

decimal number

None.

req_reason

申请原因

string

None.

goodsDetails

订单商品列表

Collection of SmallWareGoodsDetail

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:
{
  "remark": "sample string 1",
  "order_money": 2.0,
  "req_reason": "sample string 3",
  "goodsDetails": [
    {
      "goods_name": "sample string 1",
      "goods_packing": "sample string 2",
      "goods_unit": "sample string 3",
      "goods_num": 4,
      "goods_money": 5.0
    },
    {
      "goods_name": "sample string 1",
      "goods_packing": "sample string 2",
      "goods_unit": "sample string 3",
      "goods_num": 4,
      "goods_money": 5.0
    }
  ],
  "UserName": "sample string 4",
  "Pwd": "sample string 5",
  "ProcessCode": "sample string 6",
  "ApproverDingId": "sample string 7",
  "CcDingId": "sample string 8"
}

application/xml, text/xml

Sample:
<XmhSmallWarePublicOrderApprovalRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.ShopBizModels">
  <ApproverDingId>sample string 7</ApproverDingId>
  <CcDingId>sample string 8</CcDingId>
  <ProcessCode>sample string 6</ProcessCode>
  <Pwd>sample string 5</Pwd>
  <UserName>sample string 4</UserName>
  <goodsDetails>
    <SmallWareGoodsDetail>
      <goods_money>5</goods_money>
      <goods_name>sample string 1</goods_name>
      <goods_num>4</goods_num>
      <goods_packing>sample string 2</goods_packing>
      <goods_unit>sample string 3</goods_unit>
    </SmallWareGoodsDetail>
    <SmallWareGoodsDetail>
      <goods_money>5</goods_money>
      <goods_name>sample string 1</goods_name>
      <goods_num>4</goods_num>
      <goods_packing>sample string 2</goods_packing>
      <goods_unit>sample string 3</goods_unit>
    </SmallWareGoodsDetail>
  </goodsDetails>
  <order_money>2</order_money>
  <remark>sample string 1</remark>
  <req_reason>sample string 3</req_reason>
</XmhSmallWarePublicOrderApprovalRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'XmhSmallWarePublicOrderApprovalRequest'.

Response Information

Resource Description

BaseOut
NameDescriptionTypeAdditional 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>