采购管理类

    venpriceadjust/abandon


    目录

    1.接口说明

    1.1接口描述

         弃审张供应商存货调价单
    执行审批动作前,需要保证审批人已经进行 ERP 登录授权,登录接口请参考 user/login

    1.2适用版本

         支持U8/12.0及以上版本

    2.使用场景

    订购应用

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/venpriceadjust/abandon
    格式 JSON
    https请求方式 POST
    编码类型 UTF-8


    3.2url参数说明

    参数 类型 是否必填 描述
    from_account string 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string api调用唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)


    3.3请求体参数说明

    参数 类型 参数路径 是否必填 描述
    ccode string 单据号
    ddate date 调价日期
    cdepcode string 调价部门编码
    cdepname string 调价部门
    cpersoncode string 调价业务员编码
    cpersonname string 调价业务员
    isupplytype number 供应类型
    btaxcost boolean 价格标识
    cmainmemo string 表头备注
    cdefine1 string 表头自定义项1
    cdefine2 string 表头自定义项2
    cdefine3 string 表头自定义项3
    cdefine4 string 表头自定义项4
    cdefine5 string 表头自定义项5
    cdefine6 string 表头自定义项6
    cdefine7 string 表头自定义项7
    cdefine8 string 表头自定义项8
    cdefine9 string 表头自定义项9
    cdefine10 string 表头自定义项10
    cdefine11 string 表头自定义项11
    cdefine12 string 表头自定义项12
    cdefine13 string 表头自定义项13
    cdefine14 string 表头自定义项14
    cdefine15 string 表头自定义项15
    cdefine16 string 表头自定义项16
    cmaker string 制单人
    cverifier string 审批人
    dverifydate date 审批日期
    operationtype number entry 操作类型
    cvencode string entry 供货单位编号
    cvenname string entry 供应商全称
    cvenabbname string entry 供货单位
    cinvcode string entry 存货编码
    cinvname string entry 存货名称
    itaxunitprice number entry 含税单价
    iunitprice number entry 原币单价
    fminquantity number entry 数量下限
    dstartdate date entry 生效日期
    denddate date entry 失效日期
    itaxrate number entry 税率
    bsales boolean entry 是否促销价
    cbodymemo string entry 表体备注
    ijusttaxprice number entry 调价前含税价格
    cexch_name string entry 币种
    ccomunitcode string entry 主计量单位编码
    ccomunitname string entry 计量单位
    cfree1 string entry 自由项1
    cfree2 string entry 自由项2
    cfree3 string entry 自由项3
    cfree4 string entry 自由项4
    cfree5 string entry 自由项5
    cfree6 string entry 自由项6
    cfree7 string entry 自由项7
    cfree8 string entry 自由项8
    cfree9 string entry 自由项9
    cfree10 string entry 自由项10
    cdefine22 string entry 表体自定义项1
    cdefine23 string entry 表体自定义项2
    cdefine24 string entry 表体自定义项3
    cdefine25 string entry 表体自定义项4
    cdefine26 string entry 表体自定义项5
    cdefine27 string entry 表体自定义项6
    cdefine28 string entry 表体自定义项7
    cdefine29 string entry 表体自定义项8
    cdefine30 string entry 表体自定义项9
    cdefine31 string entry 表体自定义项10
    cdefine32 string entry 表体自定义项11
    cdefine33 string entry 表体自定义项12
    cdefine34 string entry 表体自定义项13
    cdefine35 string entry 表体自定义项14
    cdefine36 string entry 表体自定义项15
    cdefine37 string entry 表体自定义项16
    ivouchrowno number entry 行号
    ipricediff number entry 单价差异
    idiffrate number entry 变化幅度%

    3.4请求示例

    POST https://api.yonyouup.com/api/venpriceadjust/abandon?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&ds_sequence=1
    
    POST 内容:
    {
    	"venpriceadjust":{
    		"voucher_code":"0000000248",
    		"person_code":"00001",
    		"opinion":"同意"
    	}
    }
    


    3.5返回参数说明

    参数说明 类型 描述
    errcode string 错误码,0 为正常。
    errmsg string 错误信息。

    3.6正确返回示例

    JSON示例:

    {
      "errcode" : "0", 
      "errmsg" : ""
    }  
    

    3.7错误返回示例

    application/json;charset=UTF-8
    {
    	"errcode" : "30021",
    	"errmsg" : "此应用未上线"
    } 

    4.API测试

    API测试 SDK下载