POST api/UnPos/Shop/CalRule/V/Modify
修改核算规则,需要判断这个参数的返回值,errcode=0表示成功。
Request Information
URI Parameters
None.
Body Parameters
修改的核算规则的信息。
ShopCalRuleAddParmName | Description | Type | Additional information |
---|---|---|---|
MerchantId |
商户ID int |
integer |
Required |
ShopId |
店铺ID char(4) |
string |
Required Max length: 4 |
StartDate |
起始日期 Date |
date |
Required |
EndDate |
截止日期 Date |
date |
Required |
MonthDivideBase |
月保底分成额度 Numeric(18,2) NN 月保底是指当月必须达到的佣金额度 |
decimal number |
Required |
RollingByDivideNotEnugh |
分成额不足保底额时是否滚动核算 Char(1) NN 当月分成额低于保底的差额计入下月的保底。 1是,0否 |
string |
Required Max length: 1 |
RollingByDivideEnugh |
分成额超过保底额时是否滚动核算 Char(1) NN 当月分成额超过保底的差额计入下月的保底 1是,0否 |
string |
Required Max length: 1 |
BaseDivideRate |
基本手续费率 Numeric(7,4) NN 表示每一笔要收的费用,与阶梯无关的。最小值0,最大值100 |
decimal number |
Required |
BaseDivideRange |
基本手续费核算范围 Char(1) NN A-全部收入,N-指定的付款方式。 |
string |
Required Max length: 1 |
BaseDividePaymentTypeRange |
多个付款方式的集合,表类型参数 |
Collection of string |
None. |
BaseDivideAddToMonthBase |
基本手续费是否计入月保底分成额度 char(1) NN 1-是,0或其他值否 |
string |
Required Max length: 1 |
DivideRange |
分成核算范围 Char(1) NN A-全部收入,N-指定的付款方式。 |
string |
Required Max length: 1 |
DividePaymentTypeRange |
多个付款方式的集合,表类型参数 |
Collection of string |
None. |
RuleRelation |
阶梯依据 Char(1) NN 1-营业额,2-分成额 |
string |
Required Max length: 1 |
UseStep1 |
启用阶梯一 Char(1) NN 1-表示启用,0表示禁用 |
string |
Required Max length: 1 |
Step1EndValue |
阶梯一截止值 Numeric(12,2) NN 第一阶梯总是0- Step1EndValue(含) |
decimal number |
Required |
Step1DivideRate |
阶梯一核算费率 Numeric(7,4) NN 最小值零,最大值100 |
decimal number |
Required |
UseStep2 |
启用阶梯二 Char(1) NN 1-表示启用,0表示禁用 |
string |
Required Max length: 1 |
Step2EndValue |
阶梯二截止值 Numeric(12,2) NN 第二阶梯总是Step1DivideRate – Step2EndValue(含) |
decimal number |
Required |
Step2DivideRate |
阶梯二核算费率 Numeric(7,4) NN 最小值零,最大值100 |
decimal number |
Required |
UseStep3 |
启用阶梯三 Char(1) NN 1-表示启用,0表示禁用 |
string |
Required Max length: 1 |
Step3EndValue |
阶梯三截止值 Numeric(12,2) NN 第三阶梯总是Step2DivideRate – Step3EndValue(含) |
decimal number |
Required |
Step3DivideRate |
阶梯三核算费率 Numeric(7,4) NN 最小值零,最大值100 |
decimal number |
Required |
Step4DivideRate |
超过阶梯核算费率 Numeric(7,4) NN 最小值零,最大值100 |
decimal number |
Required |
Request Formats
application/json, text/json
{ "MerchantId": 1, "ShopId": "sample string 2", "StartDate": "2025-01-22T01:02:08.4278476+08:00", "EndDate": "2025-01-22T01:02:08.4278476+08:00", "MonthDivideBase": 5.0, "RollingByDivideNotEnugh": "sample string 6", "RollingByDivideEnugh": "sample string 7", "BaseDivideRate": 8.0, "BaseDivideRange": "sample string 9", "BaseDividePaymentTypeRange": [ "sample string 1", "sample string 2" ], "BaseDivideAddToMonthBase": "sample string 10", "DivideRange": "sample string 11", "DividePaymentTypeRange": [ "sample string 1", "sample string 2" ], "RuleRelation": "sample string 12", "UseStep1": "sample string 13", "Step1EndValue": 14.0, "Step1DivideRate": 15.0, "UseStep2": "sample string 16", "Step2EndValue": 17.0, "Step2DivideRate": 18.0, "UseStep3": "sample string 19", "Step3EndValue": 20.0, "Step3DivideRate": 21.0, "Step4DivideRate": 22.0 }
application/xml, text/xml
<ShopCalRuleAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <BaseDivideAddToMonthBase>sample string 10</BaseDivideAddToMonthBase> <BaseDividePaymentTypeRange xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </BaseDividePaymentTypeRange> <BaseDivideRange>sample string 9</BaseDivideRange> <BaseDivideRate>8</BaseDivideRate> <DividePaymentTypeRange xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </DividePaymentTypeRange> <DivideRange>sample string 11</DivideRange> <EndDate>2025-01-22T01:02:08.4278476+08:00</EndDate> <MerchantId>1</MerchantId> <MonthDivideBase>5</MonthDivideBase> <RollingByDivideEnugh>sample string 7</RollingByDivideEnugh> <RollingByDivideNotEnugh>sample string 6</RollingByDivideNotEnugh> <RuleRelation>sample string 12</RuleRelation> <ShopId>sample string 2</ShopId> <StartDate>2025-01-22T01:02:08.4278476+08:00</StartDate> <Step1DivideRate>15</Step1DivideRate> <Step1EndValue>14</Step1EndValue> <Step2DivideRate>18</Step2DivideRate> <Step2EndValue>17</Step2EndValue> <Step3DivideRate>21</Step3DivideRate> <Step3EndValue>20</Step3EndValue> <Step4DivideRate>22</Step4DivideRate> <UseStep1>sample string 13</UseStep1> <UseStep2>sample string 16</UseStep2> <UseStep3>sample string 19</UseStep3> </ShopCalRuleAddParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改核算规则,需要判断这个参数的返回值,errcode=0表示成功。
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
<CommonOperationResult 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> </CommonOperationResult>
application/bson
Binary JSON content. See http://bsonspec.org for details.