veninvprice/batch_get
目录 |
1.接口说明
1.1接口描述
批量获取供应商存货价格表信息
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
订购应用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/veninvprice/batch_get |
| 格式 | JSON |
| https请求方式 | GET |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | sting | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| cvencode | 否 | string | 供应商编码 |
| cvenname | 否 | string | 供应商名称关键字 |
| cvenabbname | 否 | string | 供应商简称关键字 |
| cinvname | 否 | string | 存货名称关键字 |
| cinvstd | 否 | string | 规格型号 |
| cinvccode | 否 | string | 存货分类编码 |
| cinvcname | 否 | string | 存货分类 |
| cinvcode_begin | 否 | string | 起始存货编码 |
| cinvcode_end | 否 | string | 结束存货编码 |
| denabledate_begin | 否 | date | 起始生效日期 |
| denabledate_end | 否 | date | 结束生效日期 |
| ddisabledate | 否 | date | 失效日期 |
| cexch_name | 否 | string | 币种 |
| bpromotion | 否 | number | 是否促销价 |
| cmemo | 否 | string | 备注关键字 |
| isupplytype | 否 | number | 供应类型 |
| btaxcost | 否 | number | 价格标识 (0无税,1含税) |
| ctermcode | 否 | string | 贸易术语代码 |
| ilowerlimit | 否 | number | 数量下限 |
| iupperlimit | 否 | number | 数量上限 |
| itaxrate | 否 | number | 税率 |
| cfree1 | 否 | string | 自由项1 |
| cfree2 | 否 | string | 自由项2 |
| cfree3 | 否 | string | 自由项3 |
| cfree4 | 否 | string | 自由项4 |
| cfree5 | 否 | string | 自由项5 |
| cfree6 | 否 | string | 自由项6 |
| cfree7 | 否 | string | 自由项7 |
| cfree8 | 否 | string | 自由项8 |
| cfree9 | 否 | string | 自由项9 |
| cfree10 | 否 | string | 自由项10 |
3.3请求示例
GET https://api.yonyouup.com/api/veninvprice/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&cvencode=xxxxx&cvenname=xxxxx&cvenabbname=xxxxx&cinvname=xxxxx&cinvstd=xxxxx&cinvccode=xxxxx&cinvcname=xxxxx&cinvcode_begin=xxxxx&cinvcode_end=xxxxx&denabledate_begin=xxxxx&denabledate_end=xxxxx&ddisabledate=xxxxx&cexch_name=xxxxx&bpromotion=xxxxx&cmemo=xxxxx&isupplytype=xxxxx&btaxcost=xxxxx&ctermcode=xxxxx&ilowerlimit=xxxxx&iupperlimit=xxxxx&itaxrate=xxxxx&cfree1=xxxxx&cfree2=xxxxx&cfree3=xxxxx&cfree4=xxxxx&cfree5=xxxxx&cfree6=xxxxx&cfree7=xxxxx&cfree8=xxxxx&cfree9=xxxxx&cfree10=xxxxx
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| cvencode | string | 供应商编码 | |
| cvenname | string | 供应商名称 | |
| cvenabbname | string | 供应商简称 | |
| cinvcode | string | 存货编码 | |
| cinvname | string | 存货名称 | |
| cinvstd | string | 规格型号 | |
| cinvccode | string | 存货分类编码 | |
| cinvcname | string | 存货分类 | |
| denabledate | date | 生效日期 | |
| ddisabledate | date | 失效日期 | |
| cexch_name | string | 币种 | |
| bpromotion | number | 是否促销价 | |
| cmemo | string | 备注 | |
| isupplytype | number | 供应类型 | |
| btaxcost | number | 价格标识 (0无税,1含税) | |
| ctermcode | string | 贸易术语代码 | |
| ilowerlimit | number | 数量下限 | |
| iupperlimit | number | 数量上限 | |
| iunitprice | number | 无税单价 | |
| itaxrate | number | 税率 | |
| itaxunitprice | number | 含税单价 | |
| cfree1 | string | 自由项1 | |
| cfree2 | string | 自由项2 | |
| cfree3 | string | 自由项3 | |
| cfree4 | string | 自由项4 | |
| cfree5 | string | 自由项5 | |
| cfree6 | string | 自由项6 | |
| cfree7 | string | 自由项7 | |
| cfree8 | string | 自由项8 | |
| cfree9 | string | 自由项9 | |
| cfree10 | string | 自由项10 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"page_index":"1",
"rows_per_page":"20",
"row_count":"225",
"veninvprice":[
{
"btaxcost":"1",
"cvenabbname":"辰环手机配件",
"cinvcode":"01030701130",
"cinvname":"贴片电容",
"ctermcode":"",
"cfree9":"",
"cfree8":"",
"cvencode":"01002",
"ddisabledate":"",
"cfree7":"",
"cfree6":"",
"cfree5":"",
"cfree4":"",
"cfree3":"",
"isupplytype":"1",
"cfree2":"",
"cfree1":"",
"ilowerlimit":"0.0",
"itaxrate":"17.0",
"cinvcname":"手机电子类",
"iunitprice":"2.1",
"cexch_name":"人民币",
"cinvstd":"10pF/0402/±0.5p/50V/NPO",
"iupperlimit":"",
"cmemo":"",
"cinvccode":"0106",
"itaxunitprice":"2.46",
"bpromotion":"0",
"denabledate":"2014-12-0100:00:00.0",
"cvenname":"深圳辰环手机配件有限公司",
"cfree10":""
},
{
"btaxcost":"1",
"cvenabbname":"威刚电子",
"cinvcode":"01030701130",
"cinvname":"贴片电容",
"ctermcode":"",
"cfree9":"",
"cfree8":"",
"cvencode":"03008",
"ddisabledate":"",
"cfree7":"",
"cfree6":"",
"cfree5":"",
"cfree4":"",
"cfree3":"",
"isupplytype":"1",
"cfree2":"",
"cfree1":"",
"ilowerlimit":"0.0",
"itaxrate":"17.0",
"cinvcname":"手机电子类",
"iunitprice":"2.0",
"cexch_name":"人民币",
"cinvstd":"10pF/0402/±0.5p/50V/NPO",
"iupperlimit":"",
"cmemo":"",
"cinvccode":"0106",
"itaxunitprice":"2.34",
"bpromotion":"0",
"denabledate":"2014-12-0100:00:00.0",
"cvenname":"威刚电子(上海)贸易有限公司",
"cfree10":""
}
],
"errmsg":"",
"page_count":"12",
"errcode":"0"
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode":"30021",
"errmsg":"此应用未上线"
}