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

cainiao.station.partner.express.identity.register ("快递方"绑定“驿站”身份注册)

"快递方"绑定“驿站”身份注册

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
session_code String 必须 738hdsahfjkdsafh 状态token
express_registration ExpressRegistration 必须 注册信息
  • └ lg_company_id
  • Number
  • 必须
  • 12321
  • 快递公司ID
  • └ alipay_id
  • String
  • 必须
  • 123@126.com
  • 支付宝账号
  • └ area_code
  • String
  • 可选
  • 1231
  • 区号
  • └ province_code
  • String
  • 必须
  • 12
  • 省号
  • └ city_code
  • String
  • 必须
  • 12
  • 市号
  • └ express_type
  • byte
  • 必须
  • 1
  • 承包区类型
  • └ town_code
  • String
  • 可选
  • 12
  • 街道编码
  • └ address
  • String
  • 可选
  • XX街道
  • 自填地址
  • └ nick_name
  • String
  • 可选
  • CHRIS
  • 昵称
  • └ contact_name
  • String
  • 必须
  • 张明
  • 联系人名
  • └ user_id
  • Number
  • 可选
  • 123
  • 用户ID
  • └ express_name
  • String
  • 必须
  • XXX网点
  • 承包区名称
  • └ contact_mobile
  • String
  • 必须
  • 15722223333
  • 联系方式

响应参数

名称 类型 示例值 描述
data Number 1234 data
status_code String null errCode
status_message String "参数错误" errorMsg
is_success Boolean false success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoStationPartnerExpressIdentityRegisterRequest req = new CainiaoStationPartnerExpressIdentityRegisterRequest();
req.setSessionCode("738hdsahfjkdsafh");
CainiaoStationPartnerExpressIdentityRegisterRequest.ExpressRegistration obj1 = new CainiaoStationPartnerExpressIdentityRegisterRequest.ExpressRegistration();
obj1.setLgCompanyId(12321L);
obj1.setAlipayId("123@126.com");
obj1.setAreaCode("1231");
obj1.setProvinceCode("12");
obj1.setCityCode("12");
obj1.setExpressType("1");
obj1.setTownCode("12");
obj1.setAddress("XX街道");
obj1.setNickName("CHRIS");
obj1.setContactName("张明");
obj1.setUserId(123L);
obj1.setExpressName("XXX网点");
obj1.setContactMobile("15722223333");
req.setExpressRegistration(obj1);
CainiaoStationPartnerExpressIdentityRegisterResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_station_partner_express_identity_register_response>
    <data>1234</data>
    <status_code>null</status_code>
    <status_message>&quot;参数错误&quot;</status_message>
    <is_success>false</is_success>
</cainiao_station_partner_express_identity_register_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

返回
顶部