文档中心 > API类目 > 驿马前台api

cainiao.yima.locker.appoitment.appointmulticells (小件员约柜接口)

小件员约柜下单

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
appoint_request AppointMultiCellsRequest 可选 约柜请求
  • └ expected_station_id
  • Number
  • 可选
  • 12
  • 预约柜子站点ID
  • └ user_id
  • Number
  • 可选
  • 123
  • 用户id
  • appointment_cells
  • AppointmentCellsInfo
  • 可选
  • 预约格口数量
  • └ small
  • Number
  • 可选
  • 1
  • └ middle
  • Number
  • 可选
  • 1
  • └ large
  • Number
  • 可选
  • 1
  • └ user_phone
  • String
  • 可选
  • 123213123122
  • 用户手机号

响应参数

名称 类型 示例值 描述
status_message String 成功 errorDesc
status_code String 200 errorCode
is_success Boolean success success
data AppointmentInfo AppointmentInfo 预约单信息
  • └ appointment_id
  • Number
  • 12
  • appointmentId
  • └ station_id
  • Number
  • 11
  • stationId

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoYimaLockerAppoitmentAppointmulticellsRequest req = new CainiaoYimaLockerAppoitmentAppointmulticellsRequest();
CainiaoYimaLockerAppoitmentAppointmulticellsRequest.AppointMultiCellsRequest obj1 = new CainiaoYimaLockerAppoitmentAppointmulticellsRequest.AppointMultiCellsRequest();
obj1.setExpectedStationId(12L);
obj1.setUserId(123L);
CainiaoYimaLockerAppoitmentAppointmulticellsRequest.AppointmentCellsInfo obj2 = new CainiaoYimaLockerAppoitmentAppointmulticellsRequest.AppointmentCellsInfo();
obj2.setSmall(1L);
obj2.setMiddle(1L);
obj2.setLarge(1L);
obj1.setAppointmentCells(obj2);
obj1.setUserPhone("123213123122");
req.setAppointRequest(obj1);
CainiaoYimaLockerAppoitmentAppointmulticellsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
<cainiao_yima_locker_appoitment_appointmulticells_response>
    <status_message>成功</status_message>
    <status_code>200</status_code>
    <is_success>success</is_success>
    <data>
        <appointment_id>12</appointment_id>
        <station_id>11</station_id>
    </data>
</cainiao_yima_locker_appoitment_appointmulticells_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部