POST api/Pay/PayWithCash

使用现金支付

Request Information

URI Parameters

None.

Body Parameters

现金支付详情

CashPayDetail
NameDescriptionTypeAdditional information
TradeName

商品名称

string

None.

PayOrder

支付订单号

string

None.

TradeDescription

交易描述

string

None.

TotalFee

支付金额(分:理论最小支付单位)

integer

None.

State

支付唯一32位识别码

string

None.

TableId

关联表

PayTableId

None.

SmallAppId

小程序类型

WxSmallType

None.

LoginCode

登陆Code

string

None.

TradeShortName

商品短名称

string

None.

TradeShortDescription

交易短描述

string

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<CashPayDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Payment">
  <LoginCode>sample string 6</LoginCode>
  <PayOrder>sample string 2</PayOrder>
  <SmallAppId>WxSmallTc</SmallAppId>
  <State>sample string 5</State>
  <TableId>ThisNot</TableId>
  <TotalFee>4</TotalFee>
  <TradeDescription>sample string 3</TradeDescription>
  <TradeName>sample string 1</TradeName>
</CashPayDetail>

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

Response Information

Resource Description

使用现金支付

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />