purchasereturnlist/batch_get
目录 |
1.接口说明
1.1接口描述
获取采购退货单列表信息
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
办公用品领用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/purchasereturnlist/batch_get |
| 格式 | JSON |
| https请求方式 | GET |
| 编码类型 | UTF-8 |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | string | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| page_index | 否 | string | 页号 |
| rows_per_page | 否 | string | 每页行数 |
| date_begin | 否 | date | 开始日期 |
| date_end | 否 | date | 结束日期 |
| code_begin | 否 | string | 起始单据号 |
| code_end | 否 | string | 结束单据号 |
| purchasetypecode | 否 | string | 采购类型编码 |
| purchasetypename | 否 | string | 采购类型关键字 |
| vendorcode | 否 | string | 供货单位编号 |
| vendorabbname | 否 | string | 供应商简称关键字 |
| vendorname | 否 | string | 供应商关键字 |
| departmentcode | 否 | string | 部门编号 |
| departmentname | 否 | string | 部门关键字 |
| personcode | 否 | string | 业务员编码 |
| personname | 否 | string | 业务员关键字 |
| payconditioncode | 否 | string | 付款条件编码 |
| payconditionname | 否 | string | 付款条件关键字 |
| foreigncurrency | 否 | string | 币种 |
| memory | 否 | string | 备注关键字 |
| businesstype | 否 | string | 业务类型 |
| maker | 否 | string | 制单人 |
| ccloser | 否 | string | 关闭人 |
| shipcode | 否 | string | 运输方式编码 |
| shipname | 否 | string | 运输方式关键字 |
| cauditdate | 否 | date | 审核日期 |
| cverifier | 否 | string | 审核人 |
3.3请求示例
GET https://api.yonyouup.com/api/purchasereturnlist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&page_index=1&rows_per_page=20&ds_sequence=1
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| page_index | string | 页号 | |
| rows_per_page | string | 每页行数 | |
| row_count | string | 总行数 | |
| page_count | string | 页数 | |
| code | string | 单据号 | |
| purchasetypecode | string | 采购类型编码 | |
| purchasetypename | string | 采购类型 | |
| vendorcode | string | 供货单位编号 | |
| vendorabbname | string | 供应商 | |
| vendorname | string | 供应商全称 | |
| departmentcode | string | 部门编号 | |
| departmentname | string | 部门 | |
| personcode | string | 业务员编码 | |
| personname | string | 业务员 | |
| payconditioncode | string | 付款条件编码 | |
| payconditionname | string | 付款条件 | |
| foreigncurrency | string | 币种 | |
| cexch_code | string | 币种编码 | |
| foreigncurrencyrate | number | 汇率 | |
| memory | string | 备注 | |
| businesstype | string | 业务类型 | |
| maker | string | 制单人 | |
| ccloser | string | 关闭人 | |
| idiscounttaxtype | number | 扣税类别 | |
| define1 | string | 表头自定义项1 | |
| define2 | string | 表头自定义项2 | |
| define3 | string | 表头自定义项3 | |
| define4 | date | 表头自定义项4 | |
| define5 | number | 表头自定义项5 | |
| define6 | date | 表头自定义项6 | |
| define7 | number | 表头自定义项7 | |
| define8 | string | 表头自定义项8 | |
| define9 | string | 表头自定义项9 | |
| define10 | string | 表头自定义项10 | |
| define11 | string | 表头自定义项11 | |
| define12 | string | 表头自定义项12 | |
| define13 | string | 表头自定义项13 | |
| define14 | string | 表头自定义项14 | |
| define15 | number | 表头自定义项15 | |
| define16 | number | 表头自定义项16 | |
| shipcode | string | 运输方式编码 | |
| shipname | string | 运输方式 | |
| ibilltype | int | (0到货单,1退货单,2拒收单) | |
| cvouchtype | string | 单据类型 | |
| cmodifydate | date | 修改日期 | |
| creviser | string | 修改人 | |
| cauditdate | date | 审核日期 | |
| cverifier | string | 审核人 | |
| cvenpuomprotocol | string | 收付款协议编码 | |
| cvenpuomprotocolname | string | 收付款协议名称 | |
| csysbarcode | string | 单据条码 | |
| originalmoney | string | 原币金额 | |
| originaltax | string | 原币税额 | |
| originalsum | string | 原币价税合计 | |
| money | string | 本币金额 | |
| tax | string | 本币税额 | |
| SUM | string | 本币价税合计 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"errcode":"0",
"errmsg":"",
"page_count":"7",
"page_index":"1",
"purchasereturnlist":[
{
"businesstype":"普通采购",
"cauditdate":"2014-12-0400:00:00.0",
"code":"0000000014",
"csysbarcode":"||pudh|0000000014",
"cverifier":"demo3",
"date":"2014-12-0400:00:00.0",
"define1":"傅奇",
"departmentcode":"0401",
"departmentname":"采购部",
"foreigncurrency":"人民币",
"foreigncurrencyrate":"1.0",
"idiscounttaxtype":"0",
"maker":"demo3",
"money":"598.2900",
"originalmoney":"598.2900",
"originalsum":"700.0000",
"originaltax":"101.7100",
"personcode":"00044",
"personname":"傅奇",
"purchasetypecode":"03",
"purchasetypename":"普通采购",
"sum":"700.0000",
"tax":"101.7100",
"vendorcode":"03003",
"vendorname":"威盛电子股份有限公司"
},
{
"businesstype":"普通采购",
"cauditdate":"2014-12-0400:00:00.0",
"code":"0000000013",
"csysbarcode":"||pudh|0000000013",
"cverifier":"demo3",
"date":"2014-12-0400:00:00.0",
"define1":"顾潇",
"departmentcode":"0401",
"departmentname":"采购部",
"foreigncurrency":"人民币",
"foreigncurrencyrate":"1.0",
"idiscounttaxtype":"0",
"maker":"demo3",
"money":"1025.6400",
"originalmoney":"1025.6400",
"originalsum":"1200.0000",
"originaltax":"174.3600",
"personcode":"00043",
"personname":"顾潇",
"purchasetypecode":"03",
"purchasetypename":"普通采购",
"sum":"1200.0000",
"tax":"174.3600",
"vendorcode":"01002",
"vendorname":"深圳辰环手机配件有限公司"
}
],
"row_count":"14",
"rows_per_page":"2"
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode" : "30021",
"errmsg" : "此应用未上线"
}