POST api/Agent/AccountInfo/Add

新增一个收款账户信息

Request Information

URI Parameters

None.

Body Parameters

添加内容

AgentAccountInfoTableItem
NameDescriptionTypeAdditional information
AgentId

运营商ID AgentId BigInt FK, NN

integer

Required

PaymentType

收款方式代码 PaymentType Char(1) NN 00:现金;01:银行卡POS;02:支付宝;03:微信;06银联网上支付;99其他

string

Required

Max length: 2

Min length: 2

AppId

APPID APPId Varchar(60) 支付宝:产品的appid 微信:绑定支付的APPID(appid) wx开头

string

None.

ReceiveAccount

收款账号 ReceiveAccount Varchar(100) NN 微信:微信商户号(MCHID)123开头的数字支付宝:保存收款账号(手机或邮箱) 00- 现金专用账户,其他不进行定义。

string

Required

PartnerId

合作者ID PartnerId Varchar(30) 支付宝:合作者身份ID(partner)2088开头数字

string

None.

UseAble

启用标志 UseAble Char(1) NN 1:启用,0:不启用

string

Required

KeyStr

密钥 KeyStr Varchar(4000)

string

None.

PrivateKey

己方私钥 PrivateKey Varchar(4000)

string

None.

PublicKey

己方公钥 PublicKey Varchar(4000)

string

None.

OPublicKey

对方公钥 OPublicKey Varchar(4000)

string

None.

Param5

参数5 Param5 Varchar(4000)

string

None.

Param6

参数6 Param6 Varchar(4000)

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AgentId": 1,
  "PaymentType": "sample string 2",
  "AppId": "sample string 3",
  "ReceiveAccount": "sample string 4",
  "PartnerId": "sample string 5",
  "UseAble": "sample string 6",
  "KeyStr": "sample string 7",
  "PrivateKey": "sample string 8",
  "PublicKey": "sample string 9",
  "OPublicKey": "sample string 10",
  "Param5": "sample string 11",
  "Param6": "sample string 12"
}

application/xml, text/xml

Sample:
<AgentAccountInfoTableItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Flowmeter">
  <AgentId>1</AgentId>
  <AppId>sample string 3</AppId>
  <KeyStr>sample string 7</KeyStr>
  <OPublicKey>sample string 10</OPublicKey>
  <Param5>sample string 11</Param5>
  <Param6>sample string 12</Param6>
  <PartnerId>sample string 5</PartnerId>
  <PaymentType>sample string 2</PaymentType>
  <PrivateKey>sample string 8</PrivateKey>
  <PublicKey>sample string 9</PublicKey>
  <ReceiveAccount>sample string 4</ReceiveAccount>
  <UseAble>sample string 6</UseAble>
</AgentAccountInfoTableItem>

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
NameDescriptionTypeAdditional 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.