POST api/Service/PayFee?CookCode={CookCode}&CustID={CustID}&Amount={Amount}&PayType={PayType}&MchID={MchID}&ContractNo={ContractNo}&PayMonth={PayMonth}&UserCode={UserCode}&Sign={Sign}

【被微官网替换】登录用户--服务-缴费,调用该接口产生缴费订单,而后调起支付进行支付,支付完成以后更改订单状态

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CookCode

登录token

string

Required

CustID

用户ID

string

Required

Amount

整型,充值金额,单位为分,金额必须大于0

integer

Required

PayType

付款方式:1表示微信支付,2表示支付宝支付,3表示银联支付

integer

Required

MchID

商户号

string

Required

ContractNo

合同编号

string

Required

PayMonth

缴费周期

integer

Required

UserCode

用户编号

string

Required

Sign

签名,对CustID+Amount+PayType+MchID+ContractNo+PayMonth+UserCode+Key进行签名,Key由服务器颁发,此处使用的是私钥签名,签名算法参照文档1.3

string

Required

Body Parameters

None.

Response Information

Resource Description

RequestResult
NameDescriptionTypeAdditional information
ResultCode

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "Message": "sample string 2",
  "Data": {}
}

text/html

Sample:
{"ResultCode":1,"Message":"sample string 2","Data":{}}

application/xml, text/xml

Sample:
<RequestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MF.Common">
  <Data />
  <Message>sample string 2</Message>
  <ResultCode>1</ResultCode>
</RequestResult>