文档中心 > API类目 > 菜鸟无线API

cainiao.guoguo.gui.applyauthcode.new (获取提货码)

驿马获取提货码

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
order_id String 可选 订单ID 订单ID
user_id String 可选 小件员id 小件员id
session_code String 可选 会话session状态码 会话session状态码
role String 可选 COURIER 申请人角色:POSTER:寄件人,COURIER:小件员
action String 可选 poster_reject_poster_get 码对应的action:poster_post,poster_cancel_get,courier_get,courier_reject_post,poster_reject_poster_get

响应参数

名称 类型 示例值 描述
status_message String xxx errorMessage
status_code String "isv.invalid-parameter" errorCode
data GuiKeyInfoDo 1234 data
  • └ status_desc
  • String
  • xxx
  • statusDesc
  • └ status_code
  • Number
  • xxx
  • statusCode
  • └ key_code
  • String
  • xxx
  • keyCode
is_success Boolean false success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoGuoguoGuiApplyauthcodeNewRequest req = new CainiaoGuoguoGuiApplyauthcodeNewRequest();
req.setOrderId("订单ID");
req.setUserId("小件员id");
req.setSessionCode("会话session状态码");
req.setRole("COURIER");
req.setAction("poster_reject_poster_get");
CainiaoGuoguoGuiApplyauthcodeNewResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_guoguo_gui_applyauthcode_new_response>
    <status_message>xxx</status_message>
    <status_code>&quot;isv.invalid-parameter&quot;</status_code>
    <data>
        <status_desc>xxx</status_desc>
        <status_code>xxx</status_code>
        <key_code>xxx</key_code>
    </data>
    <is_success>false</is_success>
</cainiao_guoguo_gui_applyauthcode_new_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

返回
顶部