POST api/Wallet/UpdateWalletStatus
充值成功更新钱包,并插入一条记录
Request Information
URI Parameters
None.
Body Parameters
WalletParmsDto| Name | Description | Type | Additional information |
|---|---|---|---|
| WalletId |
钱包Id |
integer |
None. |
| DealType |
进出账类型:1进账,2出账 |
integer |
None. |
| DifferServ |
业务分类 |
integer |
None. |
| DealDate |
进出账时间 |
date |
None. |
| Amount |
进出账现金,注意出账操作时传入负值 |
decimal number |
None. |
| YCoin |
进出账Y币,注意出账操作时传入负值 |
decimal number |
None. |
| SpecialOffersId |
所选择的活动Id |
integer |
None. |
| Summary |
摘要 |
string |
None. |
| BusinessType |
关联业务类型 |
string |
None. |
| BusinessId |
关联业务绑定Id (如加油单,保险单Id) |
string |
None. |
| UseYCoin |
是否使用Y币抵扣 |
boolean |
None. |
| TradeNo |
商户订单号 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"WalletId": 1,
"DealType": 2,
"DifferServ": 3,
"DealDate": "2026-03-31 21:47:42",
"Amount": 5.0,
"YCoin": 6.0,
"SpecialOffersId": 1,
"Summary": "sample string 7",
"BusinessType": "sample string 8",
"BusinessId": "sample string 9",
"UseYCoin": true,
"TradeNo": "sample string 10"
}
application/xml, text/xml
Sample:
<WalletParmsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto"> <Amount>5</Amount> <BusinessId>sample string 9</BusinessId> <BusinessType>sample string 8</BusinessType> <DealDate>2026-03-31T21:47:42.2406023+08:00</DealDate> <DealType>2</DealType> <DifferServ>3</DifferServ> <SpecialOffersId>1</SpecialOffersId> <Summary>sample string 7</Summary> <TradeNo>sample string 10</TradeNo> <UseYCoin>true</UseYCoin> <WalletId>1</WalletId> <YCoin>6</YCoin> </WalletParmsDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InfoResultOfUseWalletBalanceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | UseWalletBalanceDto |
None. |
|
| IsSuccess |
是否成功:true:成功,false:失败 |
boolean |
None. |
| Msg |
返回消息 |
string |
None. |
| Extra |
特定信息 |
string |
None. |
| Code |
内部代码:[成功 000000|失败 000001|未登陆/未授权 000002] |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"CanUseYcoin": 1.0,
"Deduction": 2.0,
"Amount": 3.0,
"YCoin": 4.0,
"GiveCash": 5.0
},
"IsSuccess": true,
"Msg": "sample string 2",
"Extra": "sample string 3",
"Code": "sample string 4"
}
application/xml, text/xml
Sample:
<InfoResultOfUseWalletBalanceDto8taVmWcU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Core.ShareData">
<Code>sample string 4</Code>
<Extra>sample string 3</Extra>
<IsSuccess>true</IsSuccess>
<Msg>sample string 2</Msg>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto">
<d2p1:Amount>3</d2p1:Amount>
<d2p1:CanUseYcoin>1</d2p1:CanUseYcoin>
<d2p1:Deduction>2</d2p1:Deduction>
<d2p1:GiveCash>5</d2p1:GiveCash>
<d2p1:YCoin>4</d2p1:YCoin>
</Data>
</InfoResultOfUseWalletBalanceDto8taVmWcU>