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. | 
| 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,
  "orgcode": "sample string 3",
  "legalperson": "sample string 4",
  "legalcode": "sample string 5",
  "legalmobile": "sample string 6",
  "contactname": "sample string 7",
  "contactmobile1": "sample string 8",
  "contactmobile2": "sample string 9",
  "address": "sample string 10",
  "phone": "sample string 11",
  "tax": "sample string 12",
  "province": "sample string 13",
  "city": "sample string 14",
  "county": "sample string 15",
  "reserve1": "sample string 16",
  "reserve2": "sample string 17"
}
        application/xml, text/xml
            Sample:
        <AgentAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter"> <address>sample string 10</address> <agentid>2</agentid> <agentname>sample string 1</agentname> <city>sample string 14</city> <contactmobile1>sample string 8</contactmobile1> <contactmobile2>sample string 9</contactmobile2> <contactname>sample string 7</contactname> <county>sample string 15</county> <legalcode>sample string 5</legalcode> <legalmobile>sample string 6</legalmobile> <legalperson>sample string 4</legalperson> <orgcode>sample string 3</orgcode> <phone>sample string 11</phone> <province>sample string 13</province> <reserve1>sample string 16</reserve1> <reserve2>sample string 17</reserve2> <tax>sample string 12</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.