文档中心 > API类目 > 天猫精灵供应链销售运营

alibaba.gsc.dms.agent.importdata.store.get (查询代理商导入的库存数据)

查询代理商导入的库存数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_agent_import_store_query_request AgentImportStoreQueryRequest 可选 请求参数
  • └ agent_item_name
  • String
  • 可选
  • CCL
  • 外部代理商商品名称
  • └ category
  • String
  • 可选
  • TIANMAOJINGLINGCHENGPIN
  • 分类
  • └ customer_code
  • String
  • 可选
  • beiyuetest
  • 猫精客户编码
  • └ gmt_end_time
  • Date
  • 可选
  • 2020-03-01 00:00:00
  • 导入开始时间
  • └ gmt_start_time
  • Date
  • 可选
  • 2021-03-01 00:00:00
  • 导入结束时间
  • └ import_source
  • String
  • 可选
  • SYS_AUTO
  • 导入来源
  • └ import_status_list
  • String []
  • 可选
  • [00_IMPORT_ERR]
  • 导入状态列表
  • └ import_type
  • String
  • 可选
  • ORDER_WITH_SN
  • 导入业务类型
  • └ item_product4_id
  • String
  • 可选
  • 12
  • 产品线4级ID
  • └ operator
  • String
  • 可选
  • 79456
  • 操作人
  • └ out_customer_code
  • String
  • 可选
  • beiyuetest_out
  • 外部客户编码
  • └ page_no
  • Number
  • 可选
  • 1
  • 当前页数,从1开始计算
  • └ page_size
  • Number
  • 可选
  • 10
  • 每页个数
  • └ relate_order_id
  • String
  • 可选
  • 1234567ytre323
  • 关联订单ID
  • └ request_id
  • String
  • 可选
  • 1234567ytre323
  • 请求ID
  • └ sn
  • String
  • 可选
  • 12345rerfdwq
  • SN
  • └ status_list
  • String []
  • 可选
  • [SALE_OUT]
  • 库存状态列表
  • └ task_id
  • Number
  • 可选
  • 12
  • 任务ID
  • └ tenant
  • String
  • 可选
  • ailab
  • 租户
  • └ warehouse
  • String
  • 可选
  • 测试仓库
  • 仓库名称

响应参数

名称 类型 示例值 描述
result DataResult 返回对象封装
  • └ code
  • String
  • foo
  • 参数code
  • data
  • AgentImportDataDto
  • data
  • └ import_type
  • String
  • ORDER_WITH_SN
  • 导入业务类型
  • store_with_sn_d_t_o_list
  • AgentImportStoreWithSnDto []
  • 有sn库存列表
  • └ agent_item_code
  • String
  • 外部商品编码
  • └ agent_item_name
  • String
  • 外部商品名称
  • └ customer_code
  • String
  • 客户编码
  • └ customer_name
  • String
  • 客户名称
  • └ gmt_create
  • Date
  • 创建时间
  • └ gmt_modified
  • Date
  • 更新时间
  • └ id
  • Number
  • ID
  • └ import_err_msg
  • String
  • 导入错误原因
  • └ import_source
  • String
  • 导入来源
  • └ import_status
  • String
  • 导入状态
  • └ item_product4_id
  • String
  • 产品线4级ID
  • └ item_product4_name
  • String
  • 产品线4级名称
  • └ item_product6_id
  • String
  • 产品线6级ID
  • └ item_product6_name
  • String
  • 产品线6级名称
  • └ relate_gmt_create
  • Date
  • 关联订单创建时间
  • └ relate_order_id
  • String
  • 关联订单ID
  • └ sn
  • String
  • SN
  • └ status
  • String
  • 库存状态
  • └ task_id
  • Number
  • 任务ID
  • └ warehouse
  • String
  • 仓库
  • └ mac
  • String
  • mac
  • └ ctei
  • String
  • ctei
  • store_without_sn_d_t_o_list
  • AgentImportStoreWithoutSnDto []
  • 无sn库存列表
  • └ customer_code
  • String
  • 客户编码
  • └ customer_name
  • String
  • 客户名称
  • └ gmt_create
  • Date
  • 创建时间
  • └ gmt_modified
  • Date
  • 更新时间
  • └ id
  • Number
  • ID
  • └ import_err_msg
  • String
  • 导入错误原因
  • └ import_source
  • String
  • 导入来源
  • └ import_status
  • String
  • 导入状态
  • └ item_product4_id
  • String
  • 产品线4级ID
  • └ item_product4_name
  • String
  • 产品线4级名称
  • └ item_product6_id
  • String
  • 产品线6级ID
  • └ item_product6_name
  • String
  • 产品线6级名称
  • └ item_quantity
  • Number
  • 商品个数
  • └ relate_gmt_create
  • Date
  • 关联订单创建时间
  • └ status
  • String
  • 库存状态
  • └ task_id
  • Number
  • 任务ID
  • └ warehouse
  • String
  • 仓库名称
  • └ store_with_sn_total
  • Number
  • 库存信息-有sn总数
  • └ store_without_sn_total
  • Number
  • 库存信息-无sn总数
  • └ msg
  • String
  • foo
  • 参数msg
  • └ success
  • Boolean
  • false
  • 是否正常
  • └ total
  • Number
  • 100
  • 个数
  • └ trace_id
  • String
  • 1234567uytr
  • traceId

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGscDmsAgentImportdataStoreGetRequest req = new AlibabaGscDmsAgentImportdataStoreGetRequest();
AlibabaGscDmsAgentImportdataStoreGetRequest.AgentImportStoreQueryRequest obj1 = new AlibabaGscDmsAgentImportdataStoreGetRequest.AgentImportStoreQueryRequest();
obj1.setAgentItemName("CCL");
obj1.setCategory("TIANMAOJINGLINGCHENGPIN");
obj1.setCustomerCode("beiyuetest");
obj1.setGmtEndTime(StringUtils.parseDateTime("2020-03-01 00:00:00"));
obj1.setGmtStartTime(StringUtils.parseDateTime("2021-03-01 00:00:00"));
obj1.setImportSource("SYS_AUTO");
obj1.setImportStatusList("00_IMPORT_ERR");
obj1.setImportType("ORDER_WITH_SN");
obj1.setItemProduct4Id("12");
obj1.setOperator("79456");
obj1.setOutCustomerCode("beiyuetest_out");
obj1.setPageNo(1L);
obj1.setPageSize(10L);
obj1.setRelateOrderId("1234567ytre323");
obj1.setRequestId("1234567ytre323");
obj1.setSn("12345rerfdwq");
obj1.setStatusList("SALE_OUT");
obj1.setTaskId(12L);
obj1.setTenant("ailab");
obj1.setWarehouse("测试仓库");
req.setParamAgentImportStoreQueryRequest(obj1);
AlibabaGscDmsAgentImportdataStoreGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_gsc_dms_agent_importdata_store_get_response>
    <result>
        <code>foo</code>
        <data>
            <import_type>ORDER_WITH_SN</import_type>
            <store_with_sn_d_t_o_list>
                <agent_import_store_with_sn_dto>
                    <agent_item_code></agent_item_code>
                    <agent_item_name></agent_item_name>
                    <customer_code></customer_code>
                    <customer_name></customer_name>
                    <gmt_create></gmt_create>
                    <gmt_modified></gmt_modified>
                    <id></id>
                    <import_err_msg></import_err_msg>
                    <import_source></import_source>
                    <import_status></import_status>
                    <item_product4_id></item_product4_id>
                    <item_product4_name></item_product4_name>
                    <item_product6_id></item_product6_id>
                    <item_product6_name></item_product6_name>
                    <relate_gmt_create></relate_gmt_create>
                    <relate_order_id></relate_order_id>
                    <sn></sn>
                    <status></status>
                    <task_id></task_id>
                    <warehouse></warehouse>
                    <mac></mac>
                    <ctei></ctei>
                </agent_import_store_with_sn_dto>
            </store_with_sn_d_t_o_list>
            <store_without_sn_d_t_o_list>
                <agent_import_store_without_sn_dto>
                    <customer_code></customer_code>
                    <customer_name></customer_name>
                    <gmt_create></gmt_create>
                    <gmt_modified></gmt_modified>
                    <id></id>
                    <import_err_msg></import_err_msg>
                    <import_source></import_source>
                    <import_status></import_status>
                    <item_product4_id></item_product4_id>
                    <item_product4_name></item_product4_name>
                    <item_product6_id></item_product6_id>
                    <item_product6_name></item_product6_name>
                    <item_quantity></item_quantity>
                    <relate_gmt_create></relate_gmt_create>
                    <status></status>
                    <task_id></task_id>
                    <warehouse></warehouse>
                </agent_import_store_without_sn_dto>
            </store_without_sn_d_t_o_list>
            <store_with_sn_total></store_with_sn_total>
            <store_without_sn_total></store_without_sn_total>
        </data>
        <msg>foo</msg>
        <success>false</success>
        <total>100</total>
        <trace_id>1234567uytr</trace_id>
    </result>
</alibaba_gsc_dms_agent_importdata_store_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部