purinvoicelist/batch_get
目录 |
1.接口说明
1.1接口描述
获取采购发票列表信息
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
采购应用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/purinvoicelist/batch_get |
| 格式 | JSON |
| https请求方式 | GET |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | sting | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| type | 否 | string | 采购发票类型关键字 |
| cpbvcode_begin | 否 | string | 起始采购发票号 |
| cpbvcode_end | 否 | string | 结束采购发票号 |
| dpbvdate_begin | 否 | date | 起始开票日期 |
| dpbvdate_end | 否 | date | 结束开票日期 |
| cexchrate | 否 | number | 汇率 |
| cexch_name | 否 | string | 币种 |
| cexch_code | 否 | string | 币种编码 |
| cdepname | 否 | string | 部门名称关键字 |
| cdepcode | 否 | string | 部门名称编码 |
| cptname | 否 | string | 采购类型名称关键字 |
| cptcode | 否 | string | 采购类型编码 |
| cpersonname | 否 | string | 业务员名称 |
| cpersoncode | 否 | string | 业务员编码 |
| cvenname | 否 | string | 供应商名称关键字 |
| cvencode | 否 | string | 供应商编码 |
| cvenabbname | 否 | string | 供应商简称关键字 |
| ipbvtaxrate | 否 | number | 表头税率 |
| cpbvbilltype | 否 | string | 发票类型 |
| cbustype | 否 | string | 业务类型 |
3.3请求示例
GET https://api.yonyouup.com/api/purinvoicelist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&type=xxxxx&cpbvcode_begin=xxxxx&cpbvcode_end=xxxxx&dpbvdate_begin=xxxxx&dpbvdate_end=xxxxx&cexchrate=xxxxx&cexch_name=xxxxx&cexch_code=xxxxx&cdepname=xxxxx&cdepcode=xxxxx&cptname=xxxxx&cptcode=xxxxx&cpersonname=xxxxx&cpersoncode=xxxxx&cvenname=xxxxx&cvencode=xxxxx&cvenabbname=xxxxx&ipbvtaxrate=xxxxx&cpbvbilltype=xxxxx&cbustype=xxxxx
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| type | string | 采购发票类型 | |
| cexchrate | number | 汇率 | |
| cexch_name | string | 币种 | |
| cexch_code | string | 币种编码 | |
| cdepname | string | 部门名称 | |
| cdepcode | string | 部门名称编码 | |
| cptname | string | 采购类型名称 | |
| cptcode | string | 采购类型编码 | |
| cpersonname | string | 业务员名称 | |
| cpersoncode | string | 业务员编码 | |
| cvenname | string | 供应商名称 | |
| cvencode | string | 供应商编码 | |
| cvenabbname | string | 供应商简称 | |
| ipbvtaxrate | number | 表头税率 | |
| cpbvbilltype | string | 发票类型 | |
| cbustype | string | 业务类型 | |
| siorimoney | number | 原币金额汇总 | |
| sioritaxprice | number | 原币税额汇总 | |
| siorisum | number | 原币价税合计汇总 | |
| simoney | number | 本币金额汇总 | |
| sitaxprice | number | 本币税额汇总 | |
| sisum | number | 本币价税合计汇总 | |
| cpbvcode | string | 采购发票号 | |
| dpbvdate | date | 开票日期 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"page_index":"1",
"rows_per_page":"20",
"row_count":"225",
"errmsg":"",
"page_count":"12",
"errcode":"0",
"purinvoicelist":[
{
"cexchrate":"1.0",
"cpbvbilltype":"02",
"cdepname":"采购部",
"cdepcode":"0401",
"siorisum":"2500.0000",
"cexch_code":"RMB",
"sitaxprice":"0.0000",
"cvenabbname":"辰环手机配件",
"cexch_name":"人民币",
"cpersonname":"查玫",
"ipbvtaxrate":"0.0",
"cbustype":"委外加工",
"simoney":"2500.0000",
"sioritaxprice":"0.0000",
"cpbvcode":"0000000001",
"type":"普通发票",
"cptcode":"09",
"cpersoncode":"00045",
"dpbvdate":"2014-12-0300:00:00.0",
"cvencode":"01002",
"cvenname":"深圳辰环手机配件有限公司",
"cptname":"委托加工",
"siorimoney":"2500.0000",
"sisum":"2500.0000"
},
{
"cexchrate":"1.0",
"cpbvbilltype":"02",
"cdepname":"采购部",
"cdepcode":"0401",
"siorisum":"650.0000",
"cexch_code":"RMB",
"sitaxprice":"0.0000",
"cvenabbname":"北京模具八厂",
"cexch_name":"人民币",
"cpersonname":"查玫",
"ipbvtaxrate":"0.0",
"cbustype":"委外加工",
"simoney":"650.0000",
"sioritaxprice":"0.0000",
"cpbvcode":"0000000002",
"type":"普通发票",
"cptcode":"09",
"cpersoncode":"00045",
"dpbvdate":"2014-12-0300:00:00.0",
"cvencode":"06001",
"cvenname":"北京模具八厂",
"cptname":"委托加工",
"siorimoney":"650.0000",
"sisum":"650.0000"
}
]
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode":"30021",
"errmsg":"此应用未上线"
}