POST api/Card/Recharge
Request Information
URI Parameters
None.
Body Parameters
RechargeRequst| Name | Description | Type | Additional information |
|---|---|---|---|
| CardNo | integer |
None. |
|
| Amount | decimal number |
None. |
|
| BankCard | integer |
None. |
|
| sessionId | string |
None. |
|
| pCode | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CardNo": 1,
"Amount": 2.0,
"BankCard": 3,
"sessionId": "sample string 4",
"pCode": 5
}
application/xml, text/xml
Sample:
<RechargeRequst xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TheGift.Api.Model.Requst"> <pCode xmlns="http://schemas.datacontract.org/2004/07/TheGift.Api.Model">5</pCode> <sessionId xmlns="http://schemas.datacontract.org/2004/07/TheGift.Api.Model">sample string 4</sessionId> <Amount>2</Amount> <BankCard>3</BankCard> <CardNo>1</CardNo> </RechargeRequst>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RechargeResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| rechargeCode | integer |
None. |
|
| timeStamp | string |
None. |
|
| nonceStr | string |
None. |
|
| _package | string |
None. |
|
| paySign | string |
None. |
|
| statusCode | StatusCode |
None. |
|
| isSuccessful | boolean |
None. |
|
| message | string |
None. |
|
| returnUrl | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"rechargeCode": 1,
"timeStamp": "sample string 2",
"nonceStr": "sample string 3",
"_package": "sample string 4",
"paySign": "sample string 5",
"isSuccessful": true,
"statusCode": 0,
"message": "sample string 7",
"returnUrl": "sample string 8"
}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.