venpriceadjust/get
目录 |
1.接口说明
1.1接口描述
获取单张供应商存货调价单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
订购应用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/venpriceadjust/get |
| 格式 | JSON |
| https请求方式 | GET |
| 编码类型 | UTF-8 |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | string | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| id | 是 | string | 单据编号 |
3.3请求示例
GET https://api.yonyouup.com/api/venpriceadjust/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&id=0000000017&ds_sequence=1
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| 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.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"errmsg":"",
"errcode":"0",
"venpriceadjust":{
"ccode":"0000000007",
"cmaker":"demo3",
"cdepcode":null,
"btaxcost":"1",
"cmainmemo":null,
"cpersonname":null,
"cverifier":"demo3",
"cdefine14":null,
"cdefine13":null,
"cdefine16":null,
"cdefine15":null,
"cpersoncode":null,
"ddate":"2014-12-0200:00:00.0",
"isupplytype":"1",
"cdepname":null,
"cdefine9":null,
"cdefine8":null,
"cdefine7":null,
"cdefine6":null,
"cdefine5":null,
"cdefine4":null,
"dverifydate":"2014-12-0200:00:00.0",
"cdefine3":null,
"cdefine2":null,
"cdefine1":null,
"entry":[
{
"cbodymemo":null,
"operationtype":"0",
"fminquantity":"0E-9",
"cdefine36":null,
"cvenabbname":"光明处理",
"cdefine35":null,
"cdefine37":null,
"cinvcode":"0107001",
"dstartdate":"2014-12-0200:00:00.0",
"cinvname":"稳压二极管",
"cdefine22":null,
"cdefine23":null,
"cfree9":null,
"cfree8":null,
"cfree7":null,
"cvencode":"01003",
"ijusttaxprice":null,
"cfree6":null,
"cfree5":null,
"cfree4":null,
"cfree3":null,
"cfree2":null,
"ccomunitname":"PCS",
"cfree1":null,
"itaxrate":"17.000000000",
"iunitprice":"9.360000000",
"bsales":"0",
"ivouchrowno":"1",
"cexch_name":"人民币",
"cdefine29":null,
"ipricediff":"10.950000000",
"cdefine28":null,
"cdefine27":null,
"cdefine26":null,
"cdefine25":null,
"cdefine24":null,
"ccomunitcode":"0108",
"cdefine33":null,
"cdefine34":null,
"cdefine31":null,
"cdefine32":null,
"itaxunitprice":"10.950000000",
"cdefine30":null,
"denddate":null,
"idiffrate":null,
"cvenname":"苏州光明处理器厂",
"cfree10":null
},
{
"cbodymemo":null,
"operationtype":"0",
"fminquantity":"0E-9",
"cdefine36":null,
"cvenabbname":"光明处理",
"cdefine35":null,
"cdefine37":null,
"cinvcode":"0107002",
"dstartdate":"2014-12-0200:00:00.0",
"cinvname":"变空二极管",
"cdefine22":null,
"cdefine23":null,
"cfree9":null,
"cfree8":null,
"cfree7":null,
"cvencode":"01003",
"ijusttaxprice":null,
"cfree6":null,
"cfree5":null,
"cfree4":null,
"cfree3":null,
"cfree2":null,
"ccomunitname":"个",
"cfree1":null,
"itaxrate":"17.000000000",
"iunitprice":"10.530000000",
"bsales":"0",
"ivouchrowno":"2",
"cexch_name":"人民币",
"cdefine29":null,
"ipricediff":"12.320000000",
"cdefine28":null,
"cdefine27":null,
"cdefine26":null,
"cdefine25":null,
"cdefine24":null,
"ccomunitcode":"0107",
"cdefine33":null,
"cdefine34":null,
"cdefine31":null,
"cdefine32":null,
"itaxunitprice":"12.320000000",
"cdefine30":null,
"denddate":null,
"idiffrate":null,
"cvenname":"苏州光明处理器厂",
"cfree10":null
}
],
"cdefine12":null,
"cdefine11":null,
"cdefine10":null
}
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode" : "30021",
"errmsg" : "此应用未上线"
}