POST api/Agent/Acc/Ower/Add
注册一个新账户
Request Information
URI Parameters
None.
Body Parameters
AgentAccOwerAddParmName | Description | Type | Additional information |
---|---|---|---|
agentid |
运营商Id |
integer |
None. |
owertype |
账户持有人类型 |
string |
Required Max length: 1 Min length: 1 |
owername |
机构名称 |
string |
Required |
legalperson |
法定代表人姓名 |
string |
Max length: 50 |
owercode |
机构代码 |
string |
Max length: 40 |
legalcode |
法定代表人证件号 |
string |
Max length: 20 |
legalmobile |
法定代表人手机 |
string |
Max length: 11 |
reserve1 |
保留一 |
string |
Max length: 50 |
reserve2 |
保留二 |
string |
Max length: 50 |
contactname |
主要联系人姓名 |
string |
Max length: 50 |
contactmobile |
主要联系人手机 |
string |
Max length: 11 |
province |
省 |
string |
Max length: 20 |
city |
市 |
string |
Max length: 20 |
county |
县 |
string |
Max length: 20 |
address |
地址 |
string |
Max length: 50 |
phone |
办公电话 |
string |
Max length: 20 |
tax |
传真 |
string |
Max length: 20 |
Request Formats
application/json, text/json
Sample:
{ "agentid": 1, "owertype": "sample string 2", "owername": "sample string 3", "legalperson": "sample string 4", "owercode": "sample string 5", "legalcode": "sample string 6", "legalmobile": "sample string 7", "reserve1": "sample string 8", "reserve2": "sample string 9", "contactname": "sample string 10", "contactmobile": "sample string 11", "province": "sample string 12", "city": "sample string 13", "county": "sample string 14", "address": "sample string 15", "phone": "sample string 16", "tax": "sample string 17" }
application/xml, text/xml
Sample:
<AgentAccOwerAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Dosimeter"> <address>sample string 15</address> <agentid>1</agentid> <city>sample string 13</city> <contactmobile>sample string 11</contactmobile> <contactname>sample string 10</contactname> <county>sample string 14</county> <legalcode>sample string 6</legalcode> <legalmobile>sample string 7</legalmobile> <legalperson>sample string 4</legalperson> <owercode>sample string 5</owercode> <owername>sample string 3</owername> <owertype>sample string 2</owertype> <phone>sample string 16</phone> <province>sample string 12</province> <reserve1>sample string 8</reserve1> <reserve2>sample string 9</reserve2> <tax>sample string 17</tax> </AgentAccOwerAddParm>
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
注册一个新账户
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
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:
<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
Sample:
Binary JSON content. See http://bsonspec.org for details.