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

alibaba.gsc.dms.agent.config.get (获取代理商配置信息)

查询枚举键值对

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_agent_config_query_request AgentConfigQueryRequest 可选 请求参数
  • └ category
  • String
  • 可选
  • TIANMAOJINGLINGCHENGPIN
  • 类别
  • └ customer_code_list
  • String []
  • 可选
  • ["BP000929","BP000527"]
  • 客户编码列表
  • └ operator
  • String
  • 可选
  • 1
  • 操作人
  • └ out_customer_code_list
  • String []
  • 可选
  • []
  • 外部客户编码列表
  • └ request_id
  • String
  • 可选
  • 12345rtew21
  • 请求ID
  • └ tenant
  • String
  • 可选
  • ailab
  • 租户
  • └ sale_login_name
  • String
  • 可选
  • linxiang.lx
  • 销售域账号

响应参数

名称 类型 示例值 描述
result DataResult 返回对象封装
  • └ code
  • String
  • foo
  • 参数code
  • data
  • CustomerConfigDto []
  • 返回列表
  • └ gsc_customer_code
  • String
  • 猫精客户编码
  • └ gsc_customer_name
  • String
  • 客户名称
  • └ out_customer_code
  • String
  • 外部客户编码
  • └ msg
  • String
  • foo
  • 参数msg
  • └ success
  • Boolean
  • false
  • 是否正常
  • └ total
  • Number
  • 0
  • 总个数
  • └ trace_id
  • String
  • 123456432
  • traceId

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaGscDmsAgentConfigGetRequest req = new AlibabaGscDmsAgentConfigGetRequest();
AlibabaGscDmsAgentConfigGetRequest.AgentConfigQueryRequest obj1 = new AlibabaGscDmsAgentConfigGetRequest.AgentConfigQueryRequest();
obj1.setCategory("TIANMAOJINGLINGCHENGPIN");
obj1.setCustomerCodeList(""BP000929","BP000527"");
obj1.setOperator("1");
obj1.setOutCustomerCodeList("");
obj1.setRequestId("12345rtew21");
obj1.setTenant("ailab");
obj1.setSaleLoginName("linxiang.lx");
req.setParamAgentConfigQueryRequest(obj1);
AlibabaGscDmsAgentConfigGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_gsc_dms_agent_config_get_response>
    <result>
        <code>foo</code>
        <data>
            <customer_config_dto>
                <gsc_customer_code></gsc_customer_code>
                <gsc_customer_name></gsc_customer_name>
                <out_customer_code></out_customer_code>
            </customer_config_dto>
        </data>
        <msg>foo</msg>
        <success>false</success>
        <total>0</total>
        <trace_id>123456432</trace_id>
    </result>
</alibaba_gsc_dms_agent_config_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

返回
顶部