POST api/UnPos/Merchant/V/Modify
修改一个商户信息的API。 需要对返回值进行判断,返回值errcode=0表示成功。
Request Information
URI Parameters
None.
Body Parameters
修改的商户的信息。
MerchantModifyParmName | Description | Type | Additional information |
---|---|---|---|
MerchantId |
商户ID int |
integer |
Required |
MerchantName |
商户名称 Varchar(40) NOT NULL. |
string |
Required Max length: 50 |
MerchantType |
商户属性 Char(1) NOT NULL. E-企业,P-个人。 |
string |
Required Max length: 1 |
EntCode |
企业统一信用代码 Varchar(20) |
string |
Max length: 20 |
EntName |
企业名称 Varchar(60) |
string |
Max length: 60 |
EntBusiScope |
企业经营范围 Varchar(4000) |
string |
Max length: 4000 |
EntAddress |
住所地 Varchar(200) |
string |
Max length: 200 |
EntEmail |
企业收件电子邮箱 Varchar(60) |
string |
Max length: 60 |
LegalPersonalName |
法定代表人 Varchar(40) NOT NULL. |
string |
Required Max length: 40 |
LegalPersonalCode |
法定代表人证件号 Varchar(20) NOT NULL. |
string |
Required Max length: 20 |
LegalPersonalMobile |
法定代表人联系手机 Varchar(20) |
string |
Max length: 20 |
ContactName |
常用联系人名 Varchar(40) |
string |
Max length: 40 |
ContactCode |
联系人证件号 Varchar(20) |
string |
Max length: 20 |
ContactMobile |
联系人手机 Varchar(20) |
string |
Max length: 20 |
Memory |
备注 Varchar(400) |
string |
Max length: 400 |
Request Formats
application/json, text/json
{ "MerchantId": 1, "MerchantName": "sample string 2", "MerchantType": "sample string 3", "EntCode": "sample string 4", "EntName": "sample string 5", "EntBusiScope": "sample string 6", "EntAddress": "sample string 7", "EntEmail": "sample string 8", "LegalPersonalName": "sample string 9", "LegalPersonalCode": "sample string 10", "LegalPersonalMobile": "sample string 11", "ContactName": "sample string 12", "ContactCode": "sample string 13", "ContactMobile": "sample string 14", "Memory": "sample string 15" }
application/xml, text/xml
<MerchantModifyParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.UnPos.Parms"> <ContactCode>sample string 13</ContactCode> <ContactMobile>sample string 14</ContactMobile> <ContactName>sample string 12</ContactName> <EntAddress>sample string 7</EntAddress> <EntBusiScope>sample string 6</EntBusiScope> <EntCode>sample string 4</EntCode> <EntEmail>sample string 8</EntEmail> <EntName>sample string 5</EntName> <LegalPersonalCode>sample string 10</LegalPersonalCode> <LegalPersonalMobile>sample string 11</LegalPersonalMobile> <LegalPersonalName>sample string 9</LegalPersonalName> <Memory>sample string 15</Memory> <MerchantId>1</MerchantId> <MerchantName>sample string 2</MerchantName> <MerchantType>sample string 3</MerchantType> </MerchantModifyParm>
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.