文档中心 > API类目 > 五道口API

taobao.com.wdk.rt.parrot.space.service.storage.space.location.read (室内定位库位坐标接口)

室内定位库位坐标接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
merchant_code String 可选 HM 商家编码
fu_code String 可选 8086 门店编码
sl_codes String 可选 库位编码list
need_geometry_point_locations Boolean 可选 true 是否需要返回坐标信息,true-返回,false-不返回

响应参数

名称 类型 示例值 描述
total Number 1 总数
data StorageLocationDTO [] 返回数据集合
  • space_location_dto
  • StorageLocationDTO
  • 空间信息
  • └ layer_id
  • Number
  • 3
  • 图层Id
  • └ geo_id
  • String
  • ddxxxxx
  • 空间点位geoId
  • geometry_point_locations
  • Space3DDTO []
  • 图元素几何图形顶点坐标
  • └ x
  • BigDecimal
  • 0.212
  • x
  • └ y
  • BigDecimal
  • 0.343
  • y
  • └ z
  • BigDecimal
  • 0.334
  • z
  • └ space_type
  • String
  • FRONT
  • 空间类型
  • └ merchant_code
  • String
  • HM
  • 商家编码
  • └ fu_code
  • String
  • 8086
  • 门店编码
  • └ storage_location_code
  • String
  • PE16052
  • storageLocationCode
  • └ storage_location_type
  • String
  • PENDING
  • 库位类型
  • └ location_type
  • Number
  • 1
  • 前后场类型,0前场,1后场
  • └ depth_no
  • Number
  • 1
  • 正视图,在设备上的深编号,依赖设备类型,立柜为空 。
  • └ width_no
  • Number
  • 1
  • 正视图,在设备上的宽编号
  • └ height_no
  • Number
  • 1
  • 正视图,在设备上的高编号,依赖设备类型,卧柜为空。
  • └ depth
  • Number
  • 5.0
  • 深 依赖设备类型,立柜为空
  • └ width
  • Number
  • 10.0
  • * 宽
  • └ status
  • Number
  • 1
  • 状态
  • └ height
  • Number
  • 10.0
  • 高 依赖设备类型,卧柜为空
res_err_code Number 1 返回错误码
res_success Boolean true 错误是否成功
res_err_msg String ok 错误消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ComWdkRtParrotSpaceServiceStorageSpaceLocationReadRequest req = new ComWdkRtParrotSpaceServiceStorageSpaceLocationReadRequest();
req.setMerchantCode("HM");
req.setFuCode("8086");
req.setSlCodes("");
req.setNeedGeometryPointLocations(true);
ComWdkRtParrotSpaceServiceStorageSpaceLocationReadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<com_wdk_rt_parrot_space_service_storage_space_location_read_response>
    <total>1</total>
    <data>
        <storage_location_d_t_o>
            <space_location_dto>
                <layer_id>3</layer_id>
                <geo_id>ddxxxxx</geo_id>
                <geometry_point_locations>
                    <space3_d_d_t_o>
                        <x>0.212</x>
                        <y>0.343</y>
                        <z>0.334</z>
                    </space3_d_d_t_o>
                </geometry_point_locations>
                <space_type>FRONT</space_type>
            </space_location_dto>
            <merchant_code>HM</merchant_code>
            <fu_code>8086</fu_code>
            <storage_location_code>PE16052</storage_location_code>
            <storage_location_type>PENDING</storage_location_type>
            <location_type>1</location_type>
            <depth_no>1</depth_no>
            <width_no>1</width_no>
            <height_no>1</height_no>
            <depth>5.0</depth>
            <width>10.0</width>
            <status>1</status>
            <height>10.0</height>
        </storage_location_d_t_o>
    </data>
    <res_err_code>1</res_err_code>
    <res_success>true</res_success>
    <res_err_msg>ok</res_err_msg>
</com_wdk_rt_parrot_space_service_storage_space_location_read_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

返回
顶部