POST api/XiaoChengXu/PosXcxtXiaDan
下单
Request Information
URI Parameters
None.
Body Parameters
XcxtXiaDanPost| Name | Description | Type | Additional information |
|---|---|---|---|
| amount |
充值多少钱,单位为分,一元=100 |
integer |
None. |
| openid | string |
None. |
|
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"amount": 1,
"openid": "sample string 2",
"token": "sample string 3",
"uid": 1
}
application/xml, text/xml
Sample:
<XcxtXiaDanPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <openid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 2</openid> <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 3</token> <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid> <amount>1</amount> </XcxtXiaDanPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
xcxtXiaDanResult| Name | Description | Type | Additional information |
|---|---|---|---|
| timeStamp | string |
None. |
|
| nonceStr | string |
None. |
|
| package | string |
None. |
|
| signType | string |
None. |
|
| paySign | string |
None. |
|
| attach |
用于查询这个支付订单是否成功 |
string |
None. |
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"timeStamp": "sample string 1",
"nonceStr": "sample string 2",
"package": "sample string 3",
"signType": "sample string 4",
"paySign": "sample string 5",
"attach": "sample string 6",
"code": 7,
"msg": "sample string 8"
}
application/xml, text/xml
Sample:
<xcxtXiaDanResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <code xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">7</code> <msg xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 8</msg> <attach>sample string 6</attach> <nonceStr>sample string 2</nonceStr> <package>sample string 3</package> <paySign>sample string 5</paySign> <signType>sample string 4</signType> <timeStamp>sample string 1</timeStamp> </xcxtXiaDanResult>