productprofitability/batch_get
目录 |
1.接口说明
1.1接口描述
获取商业盈利状况评价信息
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
商业智能分析
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/productprofitability/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 | 每页行数 |
| year | 否 | string | 年份 |
| month | 否 | string | 月份 |
3.3请求示例
GET https://api.yonyouup.com/api/productprofitability/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 | 页数 | |
| ent_code | string | 企业编码 | |
| ent_name | string | 企业名称 | |
| IndexName | string | summary | 主要指标名称 |
| ItemName | string | summary | 次要指标名称 |
| Value | number | summary | 指标值 |
| Code | string | details | 商品编码 |
| Name | string | details | 商品名称 |
| InvStd | string | details | 商品规格 |
| UnitName | string | details | 计量单位 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"errmsg":"",
"errcode":"0",
"productprofitability":{
"summary":[
{
"Value":"12495237.34000000",
"ItemName":"主营业务利润",
"IndexName":"主营业务利润"
},
{
"Value":"509400.00000000",
"ItemName":"其他业务利润",
"IndexName":"其他业务利润"
}
],
"upload_xml":"\n\n\n \n \n<\/ProfitInfos>\n<\/Profit>",
"details":[
{
"UnitName":"公斤",
"Name":"塑胶粒",
"InvStd":null,
"Code":"01030701163"
},
{
"UnitName":"公斤",
"Name":"螺丝(选项1)",
"InvStd":"xuanxiangleizijian",
"Code":"0107007"
},
{
"UnitName":"公斤",
"Name":"铁片(选项2)",
"InvStd":"xuanxiangleizijian",
"Code":"0107008"
}
],
"ent_name":"星空演示",
"ent_code":"999"
}
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode" : "30021",
"errmsg" : "此应用未上线"
}