文档中心 > API类目 > 淘宝客API

taobao.tbk.sf.agent.abnormal.report (淘宝客-服务商-Agent异常上报)

Agent异常上报

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
account_id String 必须 123 账号ID
agent_id String 必须 134 AgentID
biz_capability String 可选 PRIVATE_CHAT 造成不可用的能力类型
description String 必须 接粉号拉群异常 异常说明
time_stamp Number 可选 1750940789516 变更时间(毫秒)
agent_name String 必须 1号 Agent名称

响应参数

名称 类型 示例值 描述
is_success Boolean true 执行成功
biz_error_desc String 无权限 错误提示信息
biz_error_code Number 21 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkSfAgentAbnormalReportRequest req = new TbkSfAgentAbnormalReportRequest();
req.setAccountId("123");
req.setAgentId("134");
req.setBizCapability("PRIVATE_CHAT");
req.setDescription("接粉号拉群异常");
req.setTimeStamp(1750940789516L);
req.setAgentName("1号");
TbkSfAgentAbnormalReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tbk_sf_agent_abnormal_report_response>
    <is_success>true</is_success>
    <biz_error_desc>无权限</biz_error_desc>
    <biz_error_code>21</biz_error_code>
</tbk_sf_agent_abnormal_report_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

返回
顶部