POST api/Agent/Add
(表生产商)新增运营商
Request Information
URI Parameters
None.
Body Parameters
AgentAddParm| Name | Description | Type | Additional information |
|---|---|---|---|
| agentname |
运营商名称 |
string |
Required Max length: 100 |
| agentid |
运营商编号 |
integer |
None. |
| accounttype |
运营商类型 |
string |
Required Max length: 1 |
| orgcode |
社会统一信用代码 |
string |
Max length: 20 |
| legalperson |
法定代表人姓名 |
string |
Max length: 50 |
| legalcode |
法定代表人证件号 |
string |
Max length: 20 |
| legalmobile |
法定代表人手机 |
string |
Max length: 11 |
| contactname |
主要联系人姓名 |
string |
Max length: 50 |
| contactmobile1 |
主要联系人手机1 |
string |
Max length: 20 |
| contactmobile2 |
主要联系人手机2 |
string |
Max length: 20 |
| address |
地址 |
string |
Max length: 50 |
| phone |
电话 |
string |
Max length: 20 |
| tax |
传真 |
string |
Max length: 20 |
| province |
省、市、自治区(名称) |
string |
Max length: 10 |
| city |
市(名称) |
string |
Max length: 10 |
| county |
县(名称) |
string |
Max length: 10 |
| reserve1 |
保留一 |
string |
Max length: 50 |
| reserve2 |
保留二 |
string |
Max length: 50 |
Request Formats
application/json, text/json
Sample:
{
"agentname": "sample string 1",
"agentid": 2,
"accounttype": "sample string 3",
"orgcode": "sample string 4",
"legalperson": "sample string 5",
"legalcode": "sample string 6",
"legalmobile": "sample string 7",
"contactname": "sample string 8",
"contactmobile1": "sample string 9",
"contactmobile2": "sample string 10",
"address": "sample string 11",
"phone": "sample string 12",
"tax": "sample string 13",
"province": "sample string 14",
"city": "sample string 15",
"county": "sample string 16",
"reserve1": "sample string 17",
"reserve2": "sample string 18"
}
application/xml, text/xml
Sample:
<AgentAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Dosimeter"> <accounttype>sample string 3</accounttype> <address>sample string 11</address> <agentid>2</agentid> <agentname>sample string 1</agentname> <city>sample string 15</city> <contactmobile1>sample string 9</contactmobile1> <contactmobile2>sample string 10</contactmobile2> <contactname>sample string 8</contactname> <county>sample string 16</county> <legalcode>sample string 6</legalcode> <legalmobile>sample string 7</legalmobile> <legalperson>sample string 5</legalperson> <orgcode>sample string 4</orgcode> <phone>sample string 12</phone> <province>sample string 14</province> <reserve1>sample string 17</reserve1> <reserve2>sample string 18</reserve2> <tax>sample string 13</tax> </AgentAddParm>
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
(表生产商)新增运营商
CommonOperationResult| Name | 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.