API中心

  1. 基本档案
  2. 收支项目
返回

收支项目新增

接口所在U8C版本:U8 cloud3.1以及更高版本
详细描述:用于收支项目新增
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/uapbd/costsubj/insert

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数
uniquekey幂等唯一key

请求参数(body):

参数名类型是否数组必填描述默认值
billvo
costcodestring项目编码
costnamestring项目名称
def1string自定义项1
def2string自定义项2
def3string自定义项3
def4string自定义项4
def5string自定义项5
free1string自由项1
free10string自由项10
free2string自由项2
free3string自由项3
free4string自由项4
free5string自由项5
free6string自由项6
free7string自由项7
free8string自由项8
free9string自由项9
incomeflagboolean是否收入
ioflagstring是否收支
isactiveapprboolean是否主动下拨
isbalancesubjboolean是否结算项目
isexpenseproboolean是否费用项目
memostring备注
mnecodestring助记码
outflagboolean是否支出
pk_cashflowstring对应现金流量项目
pk_corpstring公司
pk_parentstring上级收支项目
sealflagstring是否封存

返回类型参数:

参数名类型是否数组必填描述默认值
billvo收支项目查询说明实体_返回
cfitemcodestring对应现金流量编码
cfitemnamestring对应现金流量名称
costcodestring项目编码
costnamestring项目名称
createcorpcodestring创建公司编码
createcorpnamestring创建公司名称
creatorcorpstring创建公司主键
def1~5string自定义项1~5
drint删除标志
free1~10string自由项1~10
incomeflagboolean是否收入
ioflagboolean是否收支
isactiveapprboolean是否主动下拨
isbalancesubjboolean是否结算项目
isexpenseprostring是否费用项目
memostring备注
mnecodestring助记码
outflagboolean是否支出
parentcodestring上级收支项目编码
parentnamestring上级收支项目名称
pk_cashflowstring对应现金流量项目主键
pk_corpstring公司主键
pk_costsubjstring收支项目主键
pk_parentstring上级收支项目主键
pk_sourcestring源收支项目
sealflagboolean封存标志
sourcecodestring源收支项目编码
sourcenamestring源收支项目名称
tsstring时间戳
unitcodestring公司编码
unitnamestring公司名称

请求参数示例:

复制代码

{"billvo":[{"pk_corp":"0001","costcode":"21","costname":"21","memo":"apiupdate","isexpensepro":"true","ioflag":"true"}]}

正确返回示例:

复制代码

{
 "status": "success",
 "data": "[{\"pk_costsubj\":\"0001ZZ1000000000CETF\",\"costcode\":\"21\",\"costname\":\"21\",\"pk_corp\":\"0001\",\"unitcode\":\"0001\",\"unitname\":\"集团\",\"memo\":\"apiupdate\",\"ioflag\":true,\"sealflag\":false,\"creatorcorp\":\"0001\",\"createcorpcode\":\"0001\",\"createcorpname\":\"集团\",\"pk_source\":\"0001ZZ1000000000CETF\",\"sourcecode\":\"21\",\"sourcename\":\"21\",\"isbalancesubj\":false,\"isexpensepro\":true,\"modProperty\":\"false\",\"modsubcorpdate\":\"false\",\"modsubdata\":\"false\",\"modSuper\":\"false\",\"sealsubcorpdata\":\"false\",\"sealsubdata\":\"false\",\"unseal\":\"false\",\"direction\":\"2\"}]",
 "taskNumber": "202010230009"
}

错误返回示例:

复制代码

{
 "status": "falied",
"errorcode": "-32000",
 "errormsg": "U8C返回信息:下列字段不能为空:[项目名称]不能为空。",
 "taskNumber": "202010230008"
}