cainiao.cboss.workplatform.logistics.iscainiaoorder (根据交易单号判断是否为菜鸟发货订单)

根据交易单号判断是否为菜鸟发货订单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
trade_id String 可选 194122355984115
  • 默认值:null
  • 交易单号

    响应参数

    名称 类型 示例值 描述
    is_cainiao_order Boolean true isCainiaoOrder
    res_success Boolean false success
    res_error_code String "isv.invalid-parameter" errorCode
    res_error_msg String "参数错误" errorMsg

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest req = new CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest();
    req.setTradeId("194122355984115");
    CainiaoCbossWorkplatformLogisticsIscainiaoorderResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <cainiao_cboss_workplatform_logistics_iscainiaoorder_response>
        <is_cainiao_order>true</is_cainiao_order>
        <res_success>false</res_success>
        <res_error_code>&quot;isv.invalid-parameter&quot;</res_error_code>
        <res_error_msg>&quot;参数错误&quot;</res_error_msg>
    </cainiao_cboss_workplatform_logistics_iscainiaoorder_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

    返回
    顶部