returnorderlist/batch_get
目录 |
1.接口说明
1.1接口描述
获取销售退货单列表
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
销售应用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/returnorderlist/batch_get |
| 格式 | JSON |
| https请求方式 | GET |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | sting | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| code_begin | 否 | string | 起始单据号 |
| code_end | 否 | string | 结束单据号 |
| date_begin | 否 | string | 起始单据日期 |
| date_end | 否 | string | 结束单据日期 |
| operation_type | 否 | string | 业务类型关键字 |
| saletype | 否 | string | 销售类型编码 |
| saletypename | 否 | string | 销售类型关键字 |
| state | 否 | string | 订单状态 |
| custcode | 否 | string | 客户编码 |
| cusname | 否 | string | 客户名称关键字 |
| cusabbname | 否 | string | 客户简称关键字 |
| deptcode | 否 | string | 部门编码 |
| deptname | 否 | string | 部门名称关键字 |
| personcode | 否 | string | 业务员编码 |
| personname | 否 | string | 业务员名称关键字 |
| remark | 否 | string | 备注关键字 |
3.3请求示例
GET https://api.yonyouup.com/api/returnorderlist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&code_begin=xxxxx&code_end=xxxxx&date_begin=xxxxx&date_end=xxxxx&operation_type=xxxxx&saletype=xxxxx&saletypename=xxxxx&state=xxxxx&custcode=xxxxx&cusname=xxxxx&cusabbname=xxxxx&deptcode=xxxxx&deptname=xxxxx&personcode=xxxxx&personname=xxxxx&remark=xxxxx
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| code | string | 单据号 | |
| date | string | 单据日期 | |
| operation_type | string | 业务类型 | |
| saletype | string | 销售类型编码 | |
| saletypename | string | 销售类型 | |
| state | string | 订单状态 | |
| custcode | string | 客户编码 | |
| cusname | string | 客户 | |
| cusabbname | string | 客户简称 | |
| deptcode | string | 部门编码 | |
| deptname | string | 部门名称 | |
| personcode | string | 业务员编码 | |
| personname | string | 业务员名称 | |
| remark | string | 备注 | |
| money | number | 无税金额 | |
| sum | number | 价税合计 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"returnorderlist":[
{
"remark":"",
"state":"Approved",
"sum":"33580.0000",
"code":"0000000001",
"date":"2014-12-01",
"operation_type":"普通销售",
"cusabbname":"泰山数码",
"saletypename":"普通销售",
"saletype":"01",
"personcode":"00040",
"deptcode":"0302",
"cusname":"泰山数码科技公司",
"custcode":"3011",
"money":"28700.8500",
"personname":"崔可",
"deptname":"销售部"
},
{
"remark":"",
"state":"Approved",
"sum":"26400.0000",
"code":"0000000003",
"date":"2014-12-02",
"operation_type":"普通销售",
"cusabbname":"美华集团",
"saletypename":"普通销售",
"saletype":"01",
"personcode":"00023",
"deptcode":"1001",
"cusname":"美华集团",
"custcode":"MH-00001",
"money":"22564.1000",
"personname":"师小容",
"deptname":"区域销售部"
}
],
"page_index":"1",
"rows_per_page":"20",
"row_count":"225",
"errmsg":"",
"page_count":"12",
"errcode":"0"
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode":"30021",
"errmsg":"此应用未上线"
}