POST api/Order/BeginToPay/ValueCard/MinProgram

小程序购票时的储值卡支付

Request Information

URI Parameters

None.

Body Parameters

PayWithValueCardParm
NameDescriptionTypeAdditional information
BillNum

业务单号。

string

Required

Max length: 20

BillType

订单类型 1-景区系统 2-Pos系统 3-租车系统 4-环保车系统,5-装备租赁业务,6-联营零售业务 因为不同的系统回调页面不一致,保存收款的表也不一致

string

Required

Max length: 1

PayAmount

收款金额,必须大于零。 在作内部支付时,最终系统中记录的收款金额以实际发生为准。

decimal number

Required

PaymentTypeId

付款方式的ID,只能是55储值卡,57优惠券。

string

Required

Max length: 2

Min length: 2

PayPwd

支付密码

string

Max length: 64

PassByWord

是否凭密支付 1-是

string

Required

Max length: 1

CardNo

储值卡号

string

Required

Max length: 20

Request Formats

application/json, text/json

Sample:
{
  "BillNum": "sample string 1",
  "BillType": "sample string 2",
  "PayAmount": 3.0,
  "PaymentTypeId": "sample string 4",
  "PayPwd": "sample string 5",
  "PassByWord": "sample string 6",
  "CardNo": "sample string 7"
}

application/xml, text/xml

Sample:
<PayWithValueCardParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.MiniProgram.Result.Parm">
  <BillNum>sample string 1</BillNum>
  <BillType>sample string 2</BillType>
  <CardNo>sample string 7</CardNo>
  <PassByWord>sample string 6</PassByWord>
  <PayAmount>3</PayAmount>
  <PayPwd>sample string 5</PayPwd>
  <PaymentTypeId>sample string 4</PaymentTypeId>
</PayWithValueCardParm>

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

Response Information

Resource Description

小程序购票时的储值卡支付

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>