API中心

  1. 销售管理
  2. 销售调价单
返回

销售调价单新增

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

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

参数名类型是否数组必填描述默认值
billvo销售调价单实体
affectvo影响公司(集团下新增时使用)
csaleorganidstring销售组织
pk_corpstring公司
childrenvo销售调价单表体
ccurrencyidstring币种
ccustclassidstring客户分组
ccustomeridstring客户
cinvbasdocidstring存货(集团下面如果传存货用这个字段)
cinvclassidstring存货分类
cinventoryidstring存货(公司下面如果传存货用这个字段
cmeasdocidstring计量单位
creceiptareaidstring收货地区
csaleorganidstring销售组织
csrcpriceidstring价格项
npriceaddstring价格加成
npricefactorstring价格指数
vfre1string自由项1
vfre2string自由项2
vfre3string自由项3
vfre4string自由项4
vfre5string自由项5
vmemostring备注
parentvo销售调价单表头
cadjpricedocnostring调价文号
cadjpricenostring单据号
cadjusteridstring调价人
cpricetariffidstring价目表
dadjpricedatestring调价日期
dexpiredatestring有效期至
dtstarttimestring生效时间
dtstoptimestring失效时间
dvalidatestring有效期从
fadjtypestring调价单类型(0:基价1:促销价2:基准折扣)
pk_corpstring公司
vmemostring备注

返回类型参数:

参数名类型是否数组必填描述默认值
billvo销售调价单实体_返回
affectvo影响公司(集团下新增时使用)
corp_codestring公司编码
corp_namestring公司名称
csaleorganidstring销售组织
pk_corpstring公司
salecorp_codestring销售组织编码
salecorp_namestring销售组织名称
childrenvo销售调价单表体_返回
brelatebasestring与基价相关
cadjprice_bidstring调价单附表ID
ccurrencyidstring币种
ccurrencyid_codestring币种编码
ccurrencyid_namestring币种名称
ccustclassidstring客户分组
ccustomeridstring客户
cinvbasdocidstring存货基本档案
cinvclassidstring存货分类
cinvclassid_codestring存货分类编码
cinvclassid_namestring存货分类名称
cinventoryidstring存货
cmeasdoc_codestring计量单位编码
cmeasdoc_namestring计量单位名称
cmeasdocidstring计量单位
creceiptarea_codestring收货地区编码
creceiptarea_namestring收货地区名称
creceiptareaidstring收货地区
crownostring行号
csaleorganidstring销售组织
csrcprice_codestring价格项编码
csrcprice_namestring价格项名称
csrcpriceidstring价格项
customer_codestring客户编码
customer_namestring客户名称
invbasdoc_codestring存货基本档案编码
inventory_codestring存货编码
inventory_namestring存货名称
nbasediscountstring基准折扣
nbasepricestring基价
nnewpricestring新价格
noriginalpricestring原价格
npriceaddstring价格加成
npricefactorstring价格指数
nvbasdoc_namestring存货基本档案名称
pk_defdoc1string自定义项1
pk_defdoc10string自定义项10
pk_defdoc11string自定义项11
pk_defdoc12string自定义项12
pk_defdoc13string自定义项13
pk_defdoc14string自定义项14
pk_defdoc15string自定义项15
pk_defdoc16string自定义项16
pk_defdoc17string自定义项17
pk_defdoc18string自定义项18
pk_defdoc19string自定义项19
pk_defdoc2string自定义项2
pk_defdoc20string自定义项20
pk_defdoc3string自定义项3
pk_defdoc4string自定义项4
pk_defdoc5string自定义项5
pk_defdoc6string自定义项6
pk_defdoc7string自定义项7
pk_defdoc8string自定义项8
pk_defdoc9string自定义项9
salecorp_codestring销售组织编码
salecorp_namestring销售组织名称
vfre1string自由项1
vfre2string自由项2
vfre3string自由项3
vfre4string自由项4
vfre5string自由项5
vmemostring备注
parentvo销售调价单表头_返回
cadjpricedocnostring调价文号
cadjpriceidstring调价单主表ID
cadjpricenostring单据号
cadjusteridstring调价人
cauditor_codestring审批人编码
cauditor_namestring审批人名称
cauditoridstring作废人
cdeleter_codestring作废人编码
cdeleter_namestring作废人名称
cdeleteridstring作废人
corp_codestring公司编码
corp_namestring公司名称
cpricetariffcodestring价目表编码
cpricetariffidstring价目表ID
cpricetariffnamestring价目表名称
dadjpricedatestring调价日期
dauditdatestring审批日期
daudittimestring审批时间
dbilltimestring单据时间
ddeletedatestring作废日期
dexpiredatestring有效期至
dmoditimestring最后修改时间
dtstarttimestring生效时间
dtstoptimestring失效时间
dvalidatestring有效期从
fadjpricemodestring调价模式
fadjtypestring调价单类型
fstartdaystring起始日
fstatusstring单据状态
fstopdaystring终止日
operator_codestring调价人编码
operator_namestring调价人名称
pk_corpstring公司
pk_defdoc1string自定义项1
pk_defdoc10string自定义项10
pk_defdoc11string自定义项11
pk_defdoc12string自定义项12
pk_defdoc13string自定义项13
pk_defdoc14string自定义项14
pk_defdoc15string自定义项15
pk_defdoc16string自定义项16
pk_defdoc17string自定义项17
pk_defdoc18string自定义项18
pk_defdoc19string自定义项19
pk_defdoc2string自定义项2
pk_defdoc20string自定义项20
pk_defdoc3string自定义项3
pk_defdoc4string自定义项4
pk_defdoc5string自定义项5
pk_defdoc6string自定义项6
pk_defdoc7string自定义项7
pk_defdoc8string自定义项8
pk_defdoc9string自定义项9
vmemostring备注

请求参数示例:

复制代码

{
    "billvo":[
        {
            "parentvo":{
                "pk_corp":"0001",
                "cadjusterid":"15268635139",
                "cpricetariffid":"1",
                "dvalidate":"2022-06-29",
                "fadjtype":"0"
            },
            "childrenvo":[
                {
                    "cinvbasdocid":"IN0001",
                    "csrcpriceid":"01",
                    "npriceadd":"1"
                 }
            ],
             "affectvo":[
                {
                    "pk_corp":"NCC",
                    "csaleorganid":"01"
                 },
                 {
                    "pk_corp":"WQM01",
                    "csaleorganid":"02"
                 }
            ]
        }
    ]
}

正确返回示例:

复制代码

{
    "status": "success",
    "data": "[{\"parentvo\":{\"pk_corp\":\"1001\",\"corp_code\":\"NCC\",\"corp_name\":\"用友网络科技股份有限公司\",\"cadjpriceno\":\"PC2206080003\",\"dadjpricedate\":\"2022-06-08\",\"dvalidate\":\"2022-06-08\",\"dtstarttime\":\"00:00:00\",\"cpricetariffid\":\"1001A11000000000Q1AD\",\"cpricetariffcode\":\"A001\",\"cpricetariffname\":\"A1\",\"cadjusterid\":\"0001A1100000000001K3\",\"operator_code\":\"15268635139\",\"operator_name\":\"bxx\",\"fadjtype\":\"0\",\"cadjpriceid\":\"0001ZZ1000000000UUCD\",\"fadjpricemode\":\"0\",\"fstartday\":\"0\",\"fstopday\":\"0\",\"fstatus\":\"1\"},\"childrenvo\":[{\"cinventoryid\":\"0001A1100000000003FI\",\"inventory_code\":\"IN0001\",\"inventory_name\":\"乐事\",\"cinvclassid\":\"#123456789*123456789\",\"ccustomerid\":\"#123456789*123456789\",\"ccustclassid\":\"#123456789*123456789\",\"csaleorganid\":\"#123456789*123456789\",\"creceiptareaid\":\"#123456789*123456789\",\"cmeasdocid\":\"0001A1100000000003F0\",\"cmeasdoc_code\":\"01\",\"cmeasdoc_name\":\"袋\",\"csrcpriceid\":\"1001A110000000006JIH\",\"csrcprice_code\":\"01\",\"csrcprice_name\":\"参考售价\",\"ccurrencyid\":\"00010000000000000001\",\"ccurrencyid_code\":\"CNY\",\"ccurrencyid_name\":\"人民币\",\"brelatebase\":false,\"nbaseprice\":1,\"npriceadd\":0,\"npricefactor\":1,\"nnewprice\":1,\"cadjprice_bid\":\"0001ZZ1000000000UUCE\"}]}]",
    "taskNumber": "202206080010"
}

错误返回示例:

复制代码

暂无数据