文档中心 > API类目 > 天猫精灵开放API

alibaba.ai.content.business.send.plan.receive (天猫精灵商业化采销发放计划领取)

天猫精灵商业化采销发放计划领取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 PurchaseForOuterDTO 必须 入参对象
  • └ isv_user_info_map
  • String
  • 必须
  • {}
  • isv用户信息(userId、phone)
  • circle_info
  • PurchaseCircleInfoForOuterDTO
  • 必须
  • {}
  • 圈选对象
  • └ circle_content
  • String
  • 必须
  • aasasa
  • 圈选内容
  • └ circle_id
  • Number
  • 必须
  • 1
  • 圈选标识,由采销系统分配
  • └ isv_id
  • Number
  • 必须
  • 1
  • isvId,由采销系统分配
  • └ send_plan_id
  • Number
  • 必须
  • 1
  • 通过查询返回

响应参数

名称 类型 示例值 描述
ret_value PurchaseReceiveReturnDTO { "status":true, "startTime":"2021-09-08 00:00:00", "endTime":"2021-10-01 00:00:00", "map":{ } } 返回对象
  • └ status
  • Boolean
  • true
  • 成功状态
  • └ start_time
  • Date
  • 2021-09-08 00:00:00
  • 开始时间
  • └ end_time
  • Date
  • 2021-10-01 00:00:00
  • 结束时间
  • └ map
  • String
  • {}
  • 其他数据
ret_code Number "1000" 错误码
ret_msg String "异常" 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAiContentBusinessSendPlanReceiveRequest req = new AlibabaAiContentBusinessSendPlanReceiveRequest();
AlibabaAiContentBusinessSendPlanReceiveRequest.PurchaseForOuterDTO obj1 = new AlibabaAiContentBusinessSendPlanReceiveRequest.PurchaseForOuterDTO();
obj1.setIsvUserInfoMap("{}");
AlibabaAiContentBusinessSendPlanReceiveRequest.PurchaseCircleInfoForOuterDTO obj2 = new AlibabaAiContentBusinessSendPlanReceiveRequest.PurchaseCircleInfoForOuterDTO();
obj2.setCircleContent("aasasa");
obj2.setCircleId(1L);
obj1.setCircleInfo(obj2);
obj1.setIsvId(1L);
obj1.setSendPlanId(1L);
req.setParam0(obj1);
AlibabaAiContentBusinessSendPlanReceiveResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ai_content_business_send_plan_receive_response>
    <ret_value>
        <status>true</status>
        <start_time>2021-09-08 00:00:00</start_time>
        <end_time>2021-10-01 00:00:00</end_time>
        <map>{}</map>
    </ret_value>
    <ret_code>&quot;1000&quot;</ret_code>
    <ret_msg>&quot;异常&quot;</ret_msg>
</alibaba_ai_content_business_send_plan_receive_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

返回
顶部