POST api/UnPos/3Pay/Inner/Pay/Coupon/AutoJoinActivation/Begin
在一个独立的事务中,为一个业务参加活动,并返回活动的结果(满减)。
Request Information
URI Parameters
None.
Body Parameters
CouponAutoJoinActivationParmName | Description | Type | Additional information |
---|---|---|---|
BusiFrom |
业务来源,1前台,2互联网 |
string |
Required Max length: 1 Min length: 1 |
MemberId |
会员代码,0或空表示不指定会员。 |
integer |
None. |
UsedForBusi |
1-票务(含景区和演出);2-自营零售业务;3-包车业务;4-即上即下环保车业务;5-装备租赁业务,6-联营零售业务,7-餐饮业务,8-其他业务。 |
string |
Required Max length: 1 Min length: 1 |
BillNum |
业务单据单号 |
string |
Required Max length: 36 |
BusiBillSummary |
业务单据的收款金额,用于判断是否满足使用条件 |
decimal number |
Required |
UsedByMerchant |
是否联营零售店铺使用 |
string |
Required Max length: 1 Min length: 1 |
UsedMerchantId |
联营商户ID |
integer |
None. |
UsedShopId |
联营店铺ID |
string |
Max length: 4 |
Request Formats
application/json, text/json
Sample:
{ "BusiFrom": "sample string 1", "MemberId": 2, "UsedForBusi": "sample string 3", "BillNum": "sample string 4", "BusiBillSummary": 5.0, "UsedByMerchant": "sample string 6", "UsedMerchantId": 7, "UsedShopId": "sample string 8" }
application/xml, text/xml
Sample:
<CouponAutoJoinActivationParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Coupon"> <BillNum>sample string 4</BillNum> <BusiBillSummary>5</BusiBillSummary> <BusiFrom>sample string 1</BusiFrom> <MemberId>2</MemberId> <UsedByMerchant>sample string 6</UsedByMerchant> <UsedForBusi>sample string 3</UsedForBusi> <UsedMerchantId>7</UsedMerchantId> <UsedShopId>sample string 8</UsedShopId> </CouponAutoJoinActivationParm>
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
在一个独立的事务中,为一个业务参加活动,并返回活动的结果(满减)。
CommonOperationResultWithTagOfCouponAutoJoinActivationResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | CouponAutoJoinActivationResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "HasMatched": "sample string 1", "BillState": "sample string 2" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfCouponAutoJoinActivationResultG7pGc9yP 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:BillState>sample string 2</d2p1:BillState> <d2p1:HasMatched>sample string 1</d2p1:HasMatched> </tag> </CommonOperationResultWithTagOfCouponAutoJoinActivationResultG7pGc9yP>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.