注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康API

alibaba.alihealth.brand.outbound.query.all (对外数据开放出库信息查询)

鹿透社对外数据开放出库信息查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param BrandOrderExternalPrescriptionReq 必须 系统自动生成
  • └ brand_ids
  • String []
  • 可选
  • ["123","234"]
  • 品牌id列表(品牌id、叶子类目id、商品id必须填写一个)
  • └ cate_ids
  • String []
  • 可选
  • ["123","234"]
  • 叶子类目id列表
  • └ item_ids
  • String []
  • 可选
  • ["123","234"]
  • 货品id列表
  • └ order_type
  • Number
  • 必须
  • 4
  • 调拨出库:4,销售出库:5
  • └ day
  • String
  • 必须
  • 20210823
  • 出库时间
  • └ page_num
  • Number
  • 必须
  • 1
  • 页号
  • └ page_size
  • Number
  • 必须
  • 20
  • 页面大小

响应参数

名称 类型 示例值 描述
result PagedResult 返回的翻页信息
  • └ error_detail_msg
  • String
  • error
  • 错误详细信息
  • └ page_size
  • Number
  • 20
  • 每页显示的条数
  • └ current_page
  • Number
  • 1
  • 当前页号
  • └ error_code
  • String
  • 500
  • 错误码
  • └ total_page
  • Number
  • 1
  • 总页数
  • └ page_index
  • Number
  • 1
  • 页号
  • └ total_count
  • Number
  • 12
  • 总数
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_message
  • String
  • error msg
  • 错误信息
  • data_list
  • BrandOutboundOrderPrescriptionRes []
  • 数据列表
  • └ order_id
  • String
  • 1234214123(加密)
  • 销售单号/调拨出库单号
  • └ order_status
  • Number
  • 0
  • 调拨出库: 0-初始化 100-已下发 210-部分出 215-部分出部分入 220-全部出未入 221-全部出全部收货未入 222-理货报告上传(国际) 223-理货报告驳回(国际) 224-理货确认(国际) 225-全部出部分入 226-全部出全部收货部分入 230-全出全入 -1-已取消 120为19年数据可以忽略;销售出库:已删除=-4 取消=-1 新建=0 拆单=10 合单=20 下发履行处理中=50 下发仓生产中=100 仓库生产完毕=200 配送中=300'
  • └ sc_item_id
  • String
  • 1234
  • 货品id
  • └ sc_item_name
  • String
  • 仁和可立克
  • 货品名称
  • └ brand_id
  • String
  • 1234
  • 品牌ID
  • └ brand_name
  • String
  • 仁和
  • 品牌名称
  • └ store_code
  • String
  • 1234
  • 仓库ID
  • └ store_name
  • String
  • 华北仓
  • 仓库名称
  • └ sc_item_spec
  • String
  • 50ug#3B250ug*60泡\/盒
  • 货品规格
  • └ quantity
  • Number
  • 2
  • 销售数量/调拨数量
  • └ outbound_cnt
  • Number
  • 100
  • 调拨出库:调拨出库数量(其他单据无该信息)
  • └ seller_nick
  • String
  • 阿里健康大药房
  • 销售出库:销售店铺名称(其他单据无该信息)
  • └ pay_amount
  • String
  • 20
  • 销售出库:支付金额(其他单据无该信息)
  • └ receiver_name
  • String
  • 小明(加密)
  • 销售出库:收货昵称(其他单据无该信息)
  • └ receiver_city
  • String
  • 杭州
  • 销售出库:收货城市(其他单据无该信息)
  • └ order_type
  • String
  • 淘宝
  • 销售出库:订单类型,淘特、淘宝、饿了么、天猫(其他单据无该信息)
  • └ boxes
  • Number
  • 5
  • 销售出库:盒数信息(其他单据无该信息)
  • └ sub_order_id
  • String
  • 1234
  • 调拨出库:调拨子单号(其他单据无该信息)
  • └ outbound_time
  • String
  • 20210823
  • 出库时间
  • └ sku_id
  • Number
  • 1234
  • 货品最细粒度ID
  • └ sub_trade_id
  • String
  • 123434
  • 交易明细id
  • └ hospital_name
  • String
  • 医院
  • 医院名称
  • └ prescribed_time
  • String
  • 2022-01-11 12:05:01
  • 处方时间
  • └ company_name
  • String
  • 阿里健康大药房
  • 健康主体公司名称
  • └ receiver_province
  • String
  • 浙江省
  • 收货省份
  • └ hosp_province
  • String
  • 浙江省
  • 医院所在省份
  • └ hosp_city
  • String
  • 杭州市
  • 医院所在城市

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthBrandOutboundQueryAllRequest req = new AlibabaAlihealthBrandOutboundQueryAllRequest();
AlibabaAlihealthBrandOutboundQueryAllRequest.BrandOrderExternalPrescriptionReq obj1 = new AlibabaAlihealthBrandOutboundQueryAllRequest.BrandOrderExternalPrescriptionReq();
obj1.setBrandIds(""123","234"");
obj1.setCateIds(""123","234"");
obj1.setItemIds(""123","234"");
obj1.setOrderType(4L);
obj1.setDay("20210823");
obj1.setPageNum(1L);
obj1.setPageSize(20L);
req.setParam(obj1);
AlibabaAlihealthBrandOutboundQueryAllResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_brand_outbound_query_all_response>
    <result>
        <error_detail_msg>error</error_detail_msg>
        <page_size>20</page_size>
        <current_page>1</current_page>
        <error_code>500</error_code>
        <total_page>1</total_page>
        <page_index>1</page_index>
        <total_count>12</total_count>
        <success>true</success>
        <error_message>error msg</error_message>
        <data_list>
            <brand_outbound_order_prescription_res>
                <order_id>1234214123(加密)</order_id>
                <order_status>0</order_status>
                <sc_item_id>1234</sc_item_id>
                <sc_item_name>仁和可立克</sc_item_name>
                <brand_id>1234</brand_id>
                <brand_name>仁和</brand_name>
                <store_code>1234</store_code>
                <store_name>华北仓</store_name>
                <sc_item_spec>50ug#3B250ug*60泡\/盒</sc_item_spec>
                <quantity>2</quantity>
                <outbound_cnt>100</outbound_cnt>
                <seller_nick>阿里健康大药房</seller_nick>
                <pay_amount>20</pay_amount>
                <receiver_name>小明(加密)</receiver_name>
                <receiver_city>杭州</receiver_city>
                <order_type>淘宝</order_type>
                <boxes>5</boxes>
                <sub_order_id>1234</sub_order_id>
                <outbound_time>20210823</outbound_time>
                <sku_id>1234</sku_id>
                <sub_trade_id>123434</sub_trade_id>
                <hospital_name>医院</hospital_name>
                <prescribed_time>2022-01-11 12:05:01</prescribed_time>
                <company_name>阿里健康大药房</company_name>
                <receiver_province>浙江省</receiver_province>
                <hosp_province>浙江省</hosp_province>
                <hosp_city>杭州市</hosp_city>
            </brand_outbound_order_prescription_res>
        </data_list>
    </result>
</alibaba_alihealth_brand_outbound_query_all_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

返回
顶部