POST api/UnPos/Shop/V/Modify
修改一个店铺信息的API。 需要对返回值进行判断,返回值errcode=0表示成功。
Request Information
URI Parameters
None.
Body Parameters
修改的店铺的信息。
ShopModifyParmName | Description | Type | Additional information |
---|---|---|---|
MerchantId |
商户ID int FK,PK. |
integer |
Required |
ShopId |
店铺ID char(4) PK. |
string |
Required Max length: 4 |
ShopName |
店铺名 Varchar(40) NOT NULL. |
string |
Required Max length: 40 |
RentSource |
租赁资源 Varchar(60) NOT NULL. |
string |
Required Max length: 60 |
GuiderDivideStatus |
是否启用导游返利 char(1) NOT NULL. |
string |
Required Max length: 1 |
GuiderCalType |
导游返利结算方约定 char(1) NOT NULL. |
string |
Required Max length: 1 |
CustomerDivideStatus |
是否启用客户单位返利 char(1) NOT NULL. |
string |
Required Max length: 1 |
CustomerCalType |
客户单位返利结算方约定 char(1) NOT NULL. |
string |
Required Max length: 1 |
PersonInCharge |
店铺负责人名 Varchar(40) NOT NULL. |
string |
Required Max length: 40 |
PersonInChargeMobile |
店铺负责人手机 Varchar(20) NOT NULL. |
string |
Required Max length: 20 |
DelayDaysAfterBusiForCal |
结算滞后日数 int NOT NULL. |
integer |
Required |
Memory |
备注 Varchar(400) |
string |
Max length: 400 |
EnableOrderDeliveryMode |
启用订单交付备货叫号 char(1) NOT NULL. |
string |
Required Max length: 1 |
Request Formats
application/json, text/json
{ "MerchantId": 1, "ShopId": "sample string 2", "ShopName": "sample string 3", "RentSource": "sample string 4", "GuiderDivideStatus": "sample string 5", "GuiderCalType": "sample string 6", "CustomerDivideStatus": "sample string 7", "CustomerCalType": "sample string 8", "PersonInCharge": "sample string 9", "PersonInChargeMobile": "sample string 10", "DelayDaysAfterBusiForCal": 11, "Memory": "sample string 12", "EnableOrderDeliveryMode": "sample string 13" }
application/xml, text/xml
<ShopModifyParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <CustomerCalType>sample string 8</CustomerCalType> <CustomerDivideStatus>sample string 7</CustomerDivideStatus> <DelayDaysAfterBusiForCal>11</DelayDaysAfterBusiForCal> <EnableOrderDeliveryMode>sample string 13</EnableOrderDeliveryMode> <GuiderCalType>sample string 6</GuiderCalType> <GuiderDivideStatus>sample string 5</GuiderDivideStatus> <Memory>sample string 12</Memory> <MerchantId>1</MerchantId> <PersonInCharge>sample string 9</PersonInCharge> <PersonInChargeMobile>sample string 10</PersonInChargeMobile> <RentSource>sample string 4</RentSource> <ShopId>sample string 2</ShopId> <ShopName>sample string 3</ShopName> </ShopModifyParm>
application/x-www-form-urlencoded
Sample not available.
application/bson
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
修改一个店铺信息的API。 需要对返回值进行判断,返回值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.