dingtalk.oapi.rhino.mos.exec.clothes.scrap (报废衣服)

报废衣服

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
entity_ids Number [] 必须 1,2
  • 最大列表长度:500
  • 衣服ID列表
    tenant_id String 必须 1 租户ID
    userid String 可选 1 业务参数[这里先预留],这里是用户ID,比如钉钉用户ID
    ext_properties Json 可选 {"scrapSectionCode":"YH"} 扩展属性
    order_id Number 可选 1 订单ID

    响应参数

    名称 类型 示例值 描述
    errmsg String 创建衣服异常 错误信息
    model Boolean true 执行结果
    success Boolean true 是否成功
    errcode Number 0 钉钉错误码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/rhino/mos/exec/clothes/scrap");
    OapiRhinoMosExecClothesScrapRequest req = new OapiRhinoMosExecClothesScrapRequest();
    req.setEntityIds("1,2");
    req.setTenantId("1");
    req.setUserid("1");
    req.setExtPropertiesString("{\"scrapSectionCode\":\"YH\"}");
    req.setOrderId(1L);
    OapiRhinoMosExecClothesScrapResponse rsp = client.execute(req, access_token);
    System.out.println(rsp.getBody());

    响应示例

    • JSON示例
    {
        "errmsg":"创建衣服异常",
        "model":true,
        "success":true,
        "errcode":0
    }

    异常示例

    • JSON示例
    {
    	"errcode":88,
    	"errmsg":"ding talk error"
    }

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部