POST api/Setting/KH_GRHY/Point/Add
(跨平台接口)在一个独立的事务中,向某个会员增加一笔积分记录,重新核算该会员的积分余额,并核定该会员最新升迁后的等级代码并返回。 本接口主要用于给与本系统共享会员体系的第三方使用。
Request Information
URI Parameters
None.
Body Parameters
MemberValuePointAddParmName | Description | Type | Additional information |
---|---|---|---|
MemberId |
会员ID(代码)。 |
integer |
Required |
BusiType |
业务类型 NN P票务业务S零售业务R租赁业务;C充值业务,Z积分清零,E 积分兑换 |
string |
Required Max length: 1 Min length: 1 |
BusiBillNum |
业务单据号或说明,通常是业务单据号,例如,某个会员在某个门店消费了N元,计M积分,对应的销售单单据为X,则此值为X。 |
string |
Required Max length: 20 |
ChangeValue |
积分变动的值,正值表示增加积分,负值表示减少积分。 |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "MemberId": 1, "BusiType": "sample string 2", "BusiBillNum": "sample string 3", "ChangeValue": 4 }
application/xml, text/xml
Sample:
<MemberValuePointAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Member"> <BusiBillNum>sample string 3</BusiBillNum> <BusiType>sample string 2</BusiType> <ChangeValue>4</ChangeValue> <MemberId>1</MemberId> </MemberValuePointAddParm>
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
(跨平台接口)在一个独立的事务中,向某个会员增加一笔积分记录,重新核算该会员的积分余额,并核定该会员最新升迁后的等级代码并返回。 本接口主要用于给与本系统共享会员体系的第三方使用。
CommonOperationResultWithTagOfMemberValuePointAddResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | MemberValuePointAddResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "MemberId": 1, "AutoId": 2, "ValuePointBefore": 3, "ValuePointAfter": 4, "MemberLevelIdBefore": 64, "MemberLevelIdAfter": 64 } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfMemberValuePointAddResultZ8ov0R4d 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.Member"> <d2p1:AutoId>2</d2p1:AutoId> <d2p1:MemberId>1</d2p1:MemberId> <d2p1:MemberLevelIdAfter>64</d2p1:MemberLevelIdAfter> <d2p1:MemberLevelIdBefore>64</d2p1:MemberLevelIdBefore> <d2p1:ValuePointAfter>4</d2p1:ValuePointAfter> <d2p1:ValuePointBefore>3</d2p1:ValuePointBefore> </tag> </CommonOperationResultWithTagOfMemberValuePointAddResultZ8ov0R4d>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.