POST api/3Pay/Inner/Pay/Coupon/Sigle/Begin
在一个独立的事务中,完成内部交易的一个优惠券的支付(同时处理优惠券的使用和收款的记录,订单状态转换)。
Request Information
URI Parameters
None.
Body Parameters
CouponInnerUsingParmName | Description | Type | Additional information |
---|---|---|---|
UsedForBusi |
/*1-票务(含景区和演出);2-自营零售业务;3-包车业务;4-即上即下环保车业务;5-装备租赁业务,6-联营零售业务,7-餐饮业务,8-其他业务。*/ |
string |
Required Max length: 1 Min length: 1 |
BusiBillNum |
业务单据单号(业务系统的单据号,如“餐饮系统的单据单号”)。 |
string |
Required Max length: 36 |
BusiBillSummary |
业务单据的收款金额,用于判断是否满足使用条件 |
decimal number |
Required |
UsedByMerchant |
是否联营零售店铺使用,1-是,0否。 |
string |
Required Max length: 1 Min length: 1 |
UsedMerchantId |
联营商户ID,当UsedByMerchant=1时,此值必填。 |
integer |
None. |
UsedShopId |
联营店铺ID,当UsedByMerchant=1时,此值必填。 |
string |
Max length: 4 |
MemberId |
会员ID,如果有时,必须提供一下。 |
integer |
None. |
memory |
备注 |
string |
None. |
CouponId |
当需要核销的优惠券的代码,存在一个或多个不可用优惠券时,是否自动替除这些优惠券并继续执行核销,1表示是,0或其他值表示否。 |
string |
Required Max length: 32 |
Request Formats
application/json, text/json
Sample:
{ "UsedForBusi": "sample string 1", "BusiBillNum": "sample string 2", "BusiBillSummary": 3.0, "UsedByMerchant": "sample string 4", "UsedMerchantId": 5, "UsedShopId": "sample string 6", "MemberId": 7, "memory": "sample string 8", "CouponId": "sample string 9" }
application/xml, text/xml
Sample:
<CouponInnerUsingParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Coupon"> <BusiBillNum>sample string 2</BusiBillNum> <BusiBillSummary>3</BusiBillSummary> <CouponId>sample string 9</CouponId> <MemberId>7</MemberId> <UsedByMerchant>sample string 4</UsedByMerchant> <UsedForBusi>sample string 1</UsedForBusi> <UsedMerchantId>5</UsedMerchantId> <UsedShopId>sample string 6</UsedShopId> <memory>sample string 8</memory> </CouponInnerUsingParm>
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
在一个独立的事务中,完成内部交易的一个优惠券的支付(同时处理优惠券的使用和收款的记录,订单状态转换)。
CommonOperationResultWithTagOfStringName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfstring 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>sample string 3</tag> </CommonOperationResultWithTagOfstring>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.