POST api/Shop/XmhCashOnDeliveryApprovalApprove

货到付款生成付款单审批

Request Information

URI Parameters

None.

Body Parameters

CashOnDeliveryRequest
NameDescriptionTypeAdditional information
suppler_name

供应商名称

string

None.

cash_reason

原因

string

None.

codDetails

支付数据

Collection of CashOnDeliveryDetail

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:
{
  "suppler_name": "sample string 1",
  "cash_reason": "sample string 2",
  "codDetails": [
    {
      "purchase_order": "sample string 1",
      "total_amount": 2.0,
      "obligation": 3.0
    },
    {
      "purchase_order": "sample string 1",
      "total_amount": 2.0,
      "obligation": 3.0
    }
  ],
  "UserName": "sample string 3",
  "Pwd": "sample string 4",
  "ProcessCode": "sample string 5",
  "ApproverDingId": "sample string 6",
  "CcDingId": "sample string 7"
}

application/xml, text/xml

Sample:
<CashOnDeliveryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WXProgramApi.Models.ShopBizModels">
  <ApproverDingId>sample string 6</ApproverDingId>
  <CcDingId>sample string 7</CcDingId>
  <ProcessCode>sample string 5</ProcessCode>
  <Pwd>sample string 4</Pwd>
  <UserName>sample string 3</UserName>
  <cash_reason>sample string 2</cash_reason>
  <codDetails>
    <CashOnDeliveryDetail>
      <obligation>3</obligation>
      <purchase_order>sample string 1</purchase_order>
      <total_amount>2</total_amount>
    </CashOnDeliveryDetail>
    <CashOnDeliveryDetail>
      <obligation>3</obligation>
      <purchase_order>sample string 1</purchase_order>
      <total_amount>2</total_amount>
    </CashOnDeliveryDetail>
  </codDetails>
  <suppler_name>sample string 1</suppler_name>
</CashOnDeliveryRequest>

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 'CashOnDeliveryRequest'.

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>