POST api/WebInterface/CouponPay/Coupon/Using/ForYearCard
使用优惠券,此API会依据会员已有的优惠券自动使用,而后返回已使用的优惠券列表,年卡专用
Request Information
URI Parameters
None.
Body Parameters
UsingCouponForMiniProgramParmName | Description | Type | Additional information |
---|---|---|---|
MemberId |
会员ID |
integer |
Required |
BusiBillNum |
业务单据号 |
string |
Required |
BusiBillSummary |
业务单据收款金额 |
decimal number |
Required |
Request Formats
application/json, text/json
Sample:
{ "MemberId": 1, "BusiBillNum": "sample string 2", "BusiBillSummary": 3.0 }
application/xml, text/xml
Sample:
<UsingCouponForMiniProgramParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm"> <BusiBillNum>sample string 2</BusiBillNum> <BusiBillSummary>3</BusiBillSummary> <MemberId>1</MemberId> </UsingCouponForMiniProgramParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
使用优惠券,此API会依据会员已有的优惠券自动使用,而后返回已使用的优惠券列表,年卡专用
CommonOperationResultWithTagOfIEnumerableOfCouponUsedForBusiResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | Collection of CouponUsedForBusiResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": [ { "CouponId": "sample string 1", "RndCode": "sample string 2", "MemberId": 3, "HoldUserName": "sample string 4", "HoldUserMobile": "sample string 5", "CouponTypeId": "sample string 6", "CouponName": "sample string 7", "CouponType": "sample string 8", "Denomination": 9.0, "PayBillSummaryLimit": 10.0, "ComboWithOtherCoupon": "sample string 11", "SuperimposeMulti": "sample string 12", "UsedForBusi": "sample string 13", "UsedForSpecialShop": "sample string 14", "UseStatus": "sample string 15", "UseStartTime": "sample string 16", "UseEndTime": "sample string 17" }, { "CouponId": "sample string 1", "RndCode": "sample string 2", "MemberId": 3, "HoldUserName": "sample string 4", "HoldUserMobile": "sample string 5", "CouponTypeId": "sample string 6", "CouponName": "sample string 7", "CouponType": "sample string 8", "Denomination": 9.0, "PayBillSummaryLimit": 10.0, "ComboWithOtherCoupon": "sample string 11", "SuperimposeMulti": "sample string 12", "UsedForBusi": "sample string 13", "UsedForSpecialShop": "sample string 14", "UseStatus": "sample string 15", "UseStartTime": "sample string 16", "UseEndTime": "sample string 17" } ] }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfCouponUsedForBusiResultG7pGc9yP 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.Coupon"> <d2p1:CouponUsedForBusiResult> <d2p1:ComboWithOtherCoupon>sample string 11</d2p1:ComboWithOtherCoupon> <d2p1:CouponId>sample string 1</d2p1:CouponId> <d2p1:CouponName>sample string 7</d2p1:CouponName> <d2p1:CouponType>sample string 8</d2p1:CouponType> <d2p1:CouponTypeId>sample string 6</d2p1:CouponTypeId> <d2p1:Denomination>9</d2p1:Denomination> <d2p1:HoldUserMobile>sample string 5</d2p1:HoldUserMobile> <d2p1:HoldUserName>sample string 4</d2p1:HoldUserName> <d2p1:MemberId>3</d2p1:MemberId> <d2p1:PayBillSummaryLimit>10</d2p1:PayBillSummaryLimit> <d2p1:RndCode>sample string 2</d2p1:RndCode> <d2p1:SuperimposeMulti>sample string 12</d2p1:SuperimposeMulti> <d2p1:UseEndTime>sample string 17</d2p1:UseEndTime> <d2p1:UseStartTime>sample string 16</d2p1:UseStartTime> <d2p1:UseStatus>sample string 15</d2p1:UseStatus> <d2p1:UsedForBusi>sample string 13</d2p1:UsedForBusi> <d2p1:UsedForSpecialShop>sample string 14</d2p1:UsedForSpecialShop> </d2p1:CouponUsedForBusiResult> <d2p1:CouponUsedForBusiResult> <d2p1:ComboWithOtherCoupon>sample string 11</d2p1:ComboWithOtherCoupon> <d2p1:CouponId>sample string 1</d2p1:CouponId> <d2p1:CouponName>sample string 7</d2p1:CouponName> <d2p1:CouponType>sample string 8</d2p1:CouponType> <d2p1:CouponTypeId>sample string 6</d2p1:CouponTypeId> <d2p1:Denomination>9</d2p1:Denomination> <d2p1:HoldUserMobile>sample string 5</d2p1:HoldUserMobile> <d2p1:HoldUserName>sample string 4</d2p1:HoldUserName> <d2p1:MemberId>3</d2p1:MemberId> <d2p1:PayBillSummaryLimit>10</d2p1:PayBillSummaryLimit> <d2p1:RndCode>sample string 2</d2p1:RndCode> <d2p1:SuperimposeMulti>sample string 12</d2p1:SuperimposeMulti> <d2p1:UseEndTime>sample string 17</d2p1:UseEndTime> <d2p1:UseStartTime>sample string 16</d2p1:UseStartTime> <d2p1:UseStatus>sample string 15</d2p1:UseStatus> <d2p1:UsedForBusi>sample string 13</d2p1:UsedForBusi> <d2p1:UsedForSpecialShop>sample string 14</d2p1:UsedForSpecialShop> </d2p1:CouponUsedForBusiResult> </tag> </CommonOperationResultWithTagOfArrayOfCouponUsedForBusiResultG7pGc9yP>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.