API中心

  1. 销售管理
  2. 销售价格
返回

销售报价单新增

接口所在U8C版本:U8 cloud2.7以及更高版本
详细描述:用于销售报价单新增
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/soprice/salequoteprice/insert

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

全量参数自制最简带统计型自定义项带备注型自定义项
参数名类型是否数组必填描述默认值示例值
SalequotationVO销售报价单实体
childrenvo表体
cinventoryidstring存货
ndiscountrate double整单折扣率
nitemdiscountratedouble单品折扣率
nnetprice double本币无税净价
nnumber double数量
norigianlcurtaxpricedouble原币含税单价
noriginakcurprice double原币无税单价
noriginalcurnetprice double原币无税净价
noriginalcurtaxnetprice double原币含税净价
nprice double本币无税单价
npricenumberdouble询价单位数量
ntaxnetprice double本币含税净价
ntaxpricedouble本币含税单价
pk_corp string公司
pk_defdoc1 string自定义项主键1 ,一共二十个
vdef1string自定义项1,一共二十个
vfree1string自由项1 ,一共有五个
vrowmemostring行备注
parentvo表头
cbiztypeidstring业务流程
ccustomeridstring客户
cdepartmentidstring部门
cemployeeidstring业务员
coperatoridstring制单人
csalestructidstring销售组织
cstatusstring状态
ddeliverdatestring交货日期
dexpiredatestring失效日期
dmakedatestring制单日期
dreceiptdatestring报价日期
pk_corpstring公司
pk_defdoc1string自定义项主键1,一共有二十项,就不全写了
vdef1string自定义项1,一共有二十项,就不全写了
vmemostring备注

返回类型参数:

参数名类型是否数组必填描述默认值
SalequotationVO销售报价单实体_返回
childrenvo表体查询
corp_codestring公司编码
corp_namestring公司名称
currency_codestring币种编码
currency_namestring币种名称
inventory_codestring存货编码
inventory_namestring存货名称
ndiscountrate string整单折扣率
nitemdiscountrate string单品折扣率
nnetprice string本币无税净价
norigianlcurtaxprice string原币含税单价
noriginakcurprice string原币无税单价
noriginalcurnetprice string原币无税净价
noriginalcurtaxnetprice string原币含税净价
nprice string本币无税单价
ntaxnetprice string本币含税净价
ntaxprice string本币含税单价
packunit_codestring辅单位编码
packunit_namestring辅单位名称
pk_defdoc1 string自定义项主键1
unit_codestring主计量单位编码
unit_namestring主计量单位名称
vdef1 string自定义项1
vfree1 string自由项1 ,一共五项
vrowmemo string备注
parentvo表头查询
biztype_codestring业务类型编码
biztype_namestring业务类型名称
cauditor_codestring审批人编码
cauditorid_namestring审批人名称
cbiztypeidstring业务类型
ccurrencyid string币种ID
corp_codestring公司编码
corp_namestring 公司名称
creceiptcustomerid string收货单位ID
csalestructid string销售组织
currency_codestring币种编码
currency_namestring币种名称
customer_codestring客户编码
customer_namestring客户名称
ddeliverdate string交货日期
department_codestring部门编码
department_namestring部门名称
dexpiredate string失效日期
dmakedate string制单日期
dreceiptdate string报价日期
employee_codestring业务员编码
employee_namestring业务员名称
ndiscountrate string整单折扣率
nexchangerate string汇率
operator_codestring制单人编码
operator_namestring制单人名称
pk_defdoc1 string自定义项主键1 ,一共二十项
salestruct_codestring销售组织编码
salestruct_namestring销售组织名称-
vdef1 string自定义项1 ,一共二十项

请求参数示例:

自制最简带统计型自定义项带备注型自定义项

复制代码

{"SalequotationVO":[{"parentvo":{"coperatorid":"apiwjh","ccustomerid":"CU2024","csalestructid":"5678","pk_corp":"2401"},"childrenvo":[{"cinventoryid":"0901","nnumber":"1","ntaxnetprice":"12.0999"}]}]}

正确返回示例:

复制代码

输入的json:{"salequoteprice":[{"parentvo":{"pk_corp":"1000","coperatorid":"13203310302","ccustomerid":"1001","cdepartmentid":"107","csalestructid":"1001"},"childrenvo":[{"cinventoryid":"010201","nnumber":"12","ntaxnetprice":"6"}]}]}
返回的数据:{
返回的数据:  "status": "success",
返回的数据:  "data": "[{\"parentvo\":{\"pk_corp\":\"1001\",\"corp_code\":\"1000\",\"corp_name\":\"天海总公司\",\"vreceiptno\":\"SQTH1905030402\",\"dreceiptdate\":\"2019-05-03\",\"dexpiredate\":\"2019-05-03\",\"ccustomerid\":\"000111100000000008ZW\",\"customer_code\":\"1001\",\"customer_name\":\"天海销售公司\",\"cdepartmentid\":\"100111100000000000PD\",\"department_code\":\"107\",\"department_name\":\"销售部门\",\"coperatorid\":\"0001121000000000713D\",\"operator_code\":\"13203310302\",\"operator_name\":\"孟凡红\",\"csalestructid\":\"00011110000000000999\",\"salestruct_code\":\"1001\",\"salestruct_name\":\"天海销售总公司销售组织\",\"nexchangerate\":1,\"ccurrencyid\":\"00010000000000000001\",\"currency_code\":\"CNY\",\"currency_name\":\"人民币\",\"ndiscountrate\":100,\"dmakedate\":\"2019-05-03\",\"cstatus\":\"1\",\"bdeliver\":false},\"childrenvo\":[{\"csalequotationid\":\"1001ZZ1000000000DI41\",\"cinvbasdocid\":\"00011110000000000DXA\",\"cinventoryid\":\"00011110000000000ETC\",\"inventory_code\":\"010201\",\"inventory_name\":\"鲜奶\",\"nnumber\":12,\"ntaxrate\":17,\"ndiscountrate\":100,\"nitemdiscountrate\":100,\"norigianlcurtaxprice\":6,\"noriginalcurnetprice\":5.13,\"noriginalcurtaxnetprice\":6,\"noriginalcurtaxmny\":10.46,\"noriginalcurmny\":5.13,\"noriginalcursummny\":72,\"noriginalcurdiscountmny\":0,\"nprice\":5.13,\"ntaxprice\":6,\"nnetprice\":5.13,\"ntaxnetprice\":6,\"ntaxmny\":10.46,\"nmny\":61.54,\"nsummny\":72,\"cpriceunitid\":\"000111100000000006J3\",\"npricenumber\":12,\"pk_corp\":\"1001\",\"corp_code\":\"1000\",\"corp_name\":\"天海总公司\"}]}]"
返回的数据:}

错误返回示例:

复制代码

输入的json:{"salequoteprice":[{"parentvo":{"pk_corp":"1000","coperatorid":"13203310302","ccustomerid":"1001","cdepartmentid":"107","csalestructid":"1001"},"childrenvo":[{"cinventoryid":"010201","nnumber":"12","ntaxnetprice":"6"}]}]}
返回的数据:{
返回的数据:  "status": "falied",
返回的数据:  "errormsg": "Detail Message: Instantiate object error, class: u8c.bs.m37.action.M37BatchInsertAction, module: \u003cAll 
返回的数据:}